bb8592116c
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com> |
||
---|---|---|
mango-service-v3 | ||
py | ||
.gitignore | ||
README.md |
README.md
Introduction
REST API Service for mango markets version 3, and some simple clients and examples.
Aim
Aimed to follow spec as close as possible to popular exchanges like ftx, etc.
Motivation
Traders should be able to bring their existing tools to mango markets.
Note
REST Service requires user to run a local copy with his/her own private key. An alternative approach which is known and was not taken is to prepare solana transactions in a centrally hosted REST API Service and send back to client for signing with his wallet.
Documentation
See https://microwavedcola1.github.io/mango-service-v3/#tag/default
Directory structure
.
├── README.md
├── mango-service-v3 - REST API Service for mango markets version 3
└── py - python3 client for above REST API Service
Contributing
See Todos
Todos
Small
losely sorted in order of importance/priority
- cache various mango related things which change infrequently like e.g. spot+perp markets, placed orders for user, etc.
- combine instructions e.g. cancel+place-> modify, cancel many
- order types e.g. stop loss, market orders
- missing endpoints
- funding rates?
- maker taker fees
- populate still undefined fields in various endpoints
- identify which endpoints are still slow
- todos sprinkled over code
- when null vs when undefined as return field value,- doublecheck for every endpoint/dto
- how often to load/reload certain mango things e.g. account, cache, rootbanks, etc.?
- technical debt
- cleanup tsconfig.json
- add pre commit tools e.g. husky/pre-commit for code formatting and linting
Large
- integration with freqtrade and/or ccxt https://github.com/ccxt/ccxt/blob/master/js/ftx.js
- integration with tradingview or https://github.com/thibaultyou/tradingview-alerts-processor/blob/master/docs/2_Alerts.md & https://www.tradingview.com/support/solutions/43000529348-about-webhooks/