2021-12-09 04:13:35 +00:00
|
|
|
# Adding New Exchange
|
|
|
|
|
2021-12-09 04:17:56 +00:00
|
|
|
Open an issue and paste the following checklist to that issue.
|
|
|
|
|
|
|
|
You should send multiple small pull request to implement them.
|
2021-12-09 04:13:35 +00:00
|
|
|
|
|
|
|
**Please avoid sending a pull request with huge changes**
|
|
|
|
|
|
|
|
## Checklist
|
|
|
|
|
|
|
|
Exchange Interface (minimum)
|
|
|
|
|
|
|
|
- [ ] QueryMarkets
|
|
|
|
- [ ] QueryKLines
|
|
|
|
- [ ] QueryTickers
|
|
|
|
- [ ] QueryOrders
|
|
|
|
- [ ] QueryTrades
|
|
|
|
- [ ] SubmitOrders
|
|
|
|
|
|
|
|
Convert functions:
|
|
|
|
|
|
|
|
- [ ] MarketData convert functions
|
|
|
|
- [ ] toGlobalMarket
|
|
|
|
- [ ] toGlobalTicker
|
|
|
|
- [ ] toGlobalKLine
|
|
|
|
- [ ] UserData convert functions
|
|
|
|
- [ ] toGlobalOrder
|
|
|
|
- [ ] toGlobalTrade
|
|
|
|
- [ ] toGlobalAccount
|
2021-12-09 04:17:05 +00:00
|
|
|
- [ ] toGlobalBalance
|
2021-12-09 04:13:35 +00:00
|
|
|
|
|
|
|
Stream
|
|
|
|
|
|
|
|
- [ ] UserDataStream
|
|
|
|
- [ ] Trade message parser
|
|
|
|
- [ ] Order message parser
|
|
|
|
- [ ] Account message parser
|
|
|
|
- [ ] Balance message parser
|
|
|
|
- [ ] MarketDataStream
|
|
|
|
- [ ] OrderBook message parser (or depth)
|
2021-12-09 04:16:47 +00:00
|
|
|
- [ ] KLine message parser (required for backtesting)
|
|
|
|
- [ ] Public trade message parser (optional)
|
|
|
|
- [ ] Ticker message parser (optional)
|
2021-12-09 04:18:44 +00:00
|
|
|
- [ ] ping/pong handling.
|
|
|
|
- [ ] heart-beat hanlding or keep-alive handling.
|
2021-12-09 04:13:35 +00:00
|
|
|
- [ ] handling reconnect
|
|
|
|
|
2021-12-09 04:16:47 +00:00
|
|
|
Database
|
|
|
|
|
|
|
|
- [ ] Add a new kline table for the exchange (this is required for back-testing)
|
|
|
|
- [ ] Add MySQL migration SQL
|
|
|
|
- [ ] Add SQLite migration SQL
|
|
|
|
|
2021-12-09 04:13:35 +00:00
|
|
|
Exchange Factory
|
|
|
|
|
|
|
|
- [ ] Add the exchange constructor to the exchange instance factory function.
|
|
|
|
- [ ] Add extended fields to the ExchangeSession struct. (optional)
|