Git Product home page Git Product logo

xrpl-trading-bot's People

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

xrpl-trading-bot's Issues

Add sign_trade

  • Release of #15
  • Add a function that signs all path steps of a trading path.

Fund unfunded trading paths

There has to be an algorithm that checks all possible payment paths for all currencies the account holds. So if the source currency for a trading path is not funded another currency can fund that source currency.

Build trading paths

  • Release of #2.
  • Add a function that parses all order books and identifies all possible trading paths.
Basic Spatial Arbitrage Triangular Arbitrage
1. PS: USD.r1 > BTC.r1 1. PS: USD.r1 > BTC.r1
2. PS: BTC.r2 > USD.r2 2. PS: BTC.r2 > ETH.r1
3. PS: ETH.r2 > USD.r2
  • Adjust values.
    • The lowest value is the value to calculate every other value from (also take account balance in account)
  • Calculate profits after fees.
  • Generate a random memo for each trading path with a prefix for each trading type.

Submit transactions

There should be a async function to submit multiple transactions at once.

Support of Tangem

In the future it should only be possible to sign transactions with a Tangem card to massively improve security.
Use the Tangem library to implement this feature.

Add parse_all_order_books

  • Release of #3
  • Add a function that parses all possible order books the account could trade based on the accounts currencies.

Subscribe to balance changes

Add a function that receives all balances of an account once and then subscribes to the account to receive the transactions that affect the account. After every transaction parse the final balances of the account.
The function must be threaded so it is not blocking the program.

Add final order book parser

Add a function that takes both sides of an order book and a transaction.
The function is able to:

  • parse the final order book
  • convert amounts to XRP if wished
  • differentiate between liquid and illiquid markets
    • max spread
    • formula to calc order book depth

Get gateway fees

  • Release of #3
  • Add a function that gets the transfer rates of every gateway using [account_info](https://xrpl.org/account_info.html)

Subscribe to order books

Add a function to continuously parse the new order books every time a transaction affects one.
The function must be threaded so it does not block the program.

Add async client

There should be a client that is able to run multiple requests asynchronous.
To make it easier to enter the uris there should be classes like FullHistoryNodes which have attributes containing the uris.

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.