Giter Club home page Giter Club logo

mango-client-ts's People

Contributors

dafyddd avatar dboures avatar feierabend654 avatar lagzda avatar mschneider avatar riordanp avatar tlrjs avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

mango-client-ts's Issues

Client API with a more CEX feel

Here is an example proposal to kick start this card, I would appreciate addition/removal/modification/reordering of various items here

  • offer an API more aligned with various clients within ccxt (library which supports many popular exhanges), I would choose the binance , and, ftx python clients as example for any/existing mango TS client
  • work item 1 - offer following basic client methods, for args and response structures I would stick with as much as possible to above clients wherever possible
    • fetch markets
    • fetch balance
    • fetch tickers, fetch ticker
    • fetch orders, fetch order
    • fetch open orders
    • cancel orders, cancel order
    • cancel all orders
  • work item 2 - offer following more low level methods from ccxt/binance api
    • <placeholder>
  • work item 3 - offer more mango/serum/dex specific methods e.g. support for configuring margin/leverage, borrowing/lending, etc., note: these are not really obvious to me at the moment, I am currently still reading up on the existing client

misc

  • should the current client be fully replaced? or would something like MangoClientV2 (or another better name more sense?)
  • could we author tests against testnet or devnet? do we have some existing boilerplate code for bootstrapping mango markets on testnet/devnet?

more future work

  • offer integration into ccxt?

My motivation for working on this - currently, I have following very basic non-open source python scripts for trading on binance, and I would like to trade similarly on mango/serum

  • book profits - book partial profits on positions where I am more than 10% up
  • set orders for buying dips - I run this for replacing open orders on a ticker/tickers
  • set orders for selling rips - I run this for replacing open orders on a ticker/tickers
  • remove all open long orders - helps me close all in one run
  • remove all open short orders - helps me close all in one run
  • get overview of my balance, open positions and open orders, also how much leverage I am already using, how many not-yet-deployed capital I have

Of course, I would appreciate some more input/inspiration on how others trade programmatically

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.