mango-client-ts's People
Forkers
teamchong kevlubkcm lagzda eym55 mikostel safetoshi feierabend654 dboures didobagi cpp-guru dbolnick microwavedcola1 rc12000 sethdford cdcrypto brown2243mango-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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.