From 9414b02fba2a4ac2f59857b08c849a8a5a5ed905 Mon Sep 17 00:00:00 2001 From: Yo-An Lin Date: Mon, 23 May 2022 15:05:55 +0800 Subject: [PATCH] Update adding-new-exchange.md --- doc/development/adding-new-exchange.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/doc/development/adding-new-exchange.md b/doc/development/adding-new-exchange.md index d3299d92d..ea79eaae9 100644 --- a/doc/development/adding-new-exchange.md +++ b/doc/development/adding-new-exchange.md @@ -69,6 +69,12 @@ Exchange Factory - [ ] Add the exchange constructor to the exchange instance factory function. - [ ] Add extended fields to the ExchangeSession struct. (optional) +# Tools + +- Use a tool to convert JSON response to Go struct +- Use requestgen to generate request builders +- Use callbackgen to generate callbacks + # Implementation Go to `pkg/types/exchange.go` and add your exchange type: @@ -79,8 +85,8 @@ const ( ExchangeBinance = ExchangeName("binance") ExchangeFTX = ExchangeName("ftx") ExchangeOKEx = ExchangeName("okex") - ExchangeKucoin = ExchangeName("kucoin") - ExchangeBacktest = ExchangeName("backtest") + ExchangeKucoin = ExchangeName("kucoin") + ExchangeBacktest = ExchangeName("backtest") ) ```