mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 06:53:52 +00:00
Update adding-new-exchange.md
This commit is contained in:
parent
35375c84c1
commit
9414b02fba
|
@ -69,6 +69,12 @@ Exchange Factory
|
||||||
- [ ] Add the exchange constructor to the exchange instance factory function.
|
- [ ] Add the exchange constructor to the exchange instance factory function.
|
||||||
- [ ] Add extended fields to the ExchangeSession struct. (optional)
|
- [ ] Add extended fields to the ExchangeSession struct. (optional)
|
||||||
|
|
||||||
|
# Tools
|
||||||
|
|
||||||
|
- Use a tool to convert JSON response to Go struct <https://mholt.github.io/json-to-go/>
|
||||||
|
- Use requestgen to generate request builders <https://github.com/c9s/requestgen>
|
||||||
|
- Use callbackgen to generate callbacks <https://github.com/c9s/callbackgen>
|
||||||
|
|
||||||
# Implementation
|
# Implementation
|
||||||
|
|
||||||
Go to `pkg/types/exchange.go` and add your exchange type:
|
Go to `pkg/types/exchange.go` and add your exchange type:
|
||||||
|
@ -79,8 +85,8 @@ const (
|
||||||
ExchangeBinance = ExchangeName("binance")
|
ExchangeBinance = ExchangeName("binance")
|
||||||
ExchangeFTX = ExchangeName("ftx")
|
ExchangeFTX = ExchangeName("ftx")
|
||||||
ExchangeOKEx = ExchangeName("okex")
|
ExchangeOKEx = ExchangeName("okex")
|
||||||
ExchangeKucoin = ExchangeName("kucoin")
|
ExchangeKucoin = ExchangeName("kucoin")
|
||||||
ExchangeBacktest = ExchangeName("backtest")
|
ExchangeBacktest = ExchangeName("backtest")
|
||||||
)
|
)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user