Giter Site home page Giter Site logo

mraniki / dxsp Goto Github PK

View Code? Open in Web Editor NEW
13.0 1.0 5.0 2.7 MB

A python defi swap package (DeX SwaP)

Home Page: https://talky.readthedocs.io

License: MIT License

Python 99.77% Dockerfile 0.23%
defi pypi-package swap uniswap 0x dex web3py dxsp bitcoin blockchain

dxsp's Introduction

πŸ‘€ interested in algotrading,defi, continous integration and devops
πŸ“« Reach out on mastodon

Metrics

πŸ“ˆ More Stats

Metrics

dxsp's People

Contributors

actions-user avatar dependabot[bot] avatar github-actions[bot] avatar mergify[bot] avatar mraniki avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

dxsp's Issues

✨ Implement Apollo V2 Futures

apollo finance

  async def get_ping_apollo(self,):
      ping_url = (
          settings.dex_apollo_url
          + "fapi/v1/ping"
          )
      ping_response = await self._get(
          url=ping_url,
          params=None,
          headers=settings.headers
          )
      self.logger.debug("get_ping_apollo %s", ping_response)

  async def get_quote_apollo(self,):
      quote_url = (
          settings.dex_apollo_url
          + "/fapi/v1/ticker/price"
          )
      quote_response = await self._get(
          url=quote_url,
          params=None,
          headers=settings.headers
          )
      self.logger.debug("get_quote_apollo %s", quote_response)
      quote = quote_response['price']
      return quote

  async def get_swap_apollo(self):
      self.logger.warning("Not available")
  # $ curl -H "X-MBX-APIKEY: dsdfsdf" -X POST
  # 'https://fapi/apollox.finance/fapi/v1/order?symbol=BTCUSDT&side=BUY&
  # type=LIMIT&quantity=1&price=9000&timeInForce=GTC&recvWindow=5000&timestamp=1591702613943&
  # signature= 3c661234138461fcc7a7d8746c6558c9
  # 842d4e10870d2ecbedf7777cad694af9'
      return

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Location: .github/renovate.json
Error type: Invalid JSON (parsing failed)
Message: JSON.parse error: JSON5: invalid end of input at 14:1

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

This repository currently has no open or pending branches.

Detected dependencies

dockerfile
.registry/Dockerfile
  • python 3.11
github-actions
.github/workflows/πŸ‘·Flow.yml
pip_requirements
.requirements/requirements.txt
  • fastapi >=0.95.1
  • uvicorn >=0.21.0
  • dxsp >=2.2.16
poetry
pyproject.toml
  • dynaconf ^3.1.12
  • web3 ^6.4.0
  • pycoingecko ^3.1.0
  • uniswap-python ^0.7.0
  • python-semantic-release ^8.0.0
  • pytest ^7.0
  • pytest-cov ^4.1
  • pytest-asyncio ^0.21.0
  • pytest-mock ^3.11.1
  • eth_tester ^0.9.0b2
  • sphinx ^7.0.0
  • sphinx_bootstrap_theme ^0.8.1
  • sphinx-autoapi ^2.1.1
  • sphinx-copybutton ^0.5.2
  • myst-parser ^2.0.0
  • sphinx-notfound-page ^0.8.3
  • sphinxext-remoteliteralinclude ^0.4.0
  • sphinx-togglebutton *

  • Check this box to trigger a request for Renovate to run again on this repository

Support 1inch Fusion

@mraniki fantastic helper library in active current development unlike others! πŸ‘
Based on everything happening with CEX users do need DEX :shipit:

Please see 1inch Fusion + Fusion SDK only 18 lines of code.

  • Auto Routing
  • Liquidity Aggregation
  • Zero gas fees
  • Check slippage e.g < -2%
  • Check price impact e.g < -1%
  • Split % Order Amount into e.g 3 chunks to get best price
  • Logging for BUY / SELL = % Profits (PnL) πŸŽ‰

Using Tradingview alert Webhook to DiFi bot to execute DEX trades.

Review the get method

Update utils.utils.get

  1. Make it fully async
  2. review approach to reduce memory impact for large list
Checklist
  • dxsp/main.py

Modify the get method to make it fully asynchronous and review the approach to reduce memory impact for large lists.

Checklist
  • dxsp/utils/utils.py

Modify the get method to make it fully asynchronous and review the approach to reduce memory impact for large lists.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.