mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-05 15:10:59 +00:00
currency/exchanges: Add bespoke exchange translator and pair matching helper (#1556)
* currency: translation and matching pairs * Update exchanges/exchange_types.go Co-authored-by: Scott <gloriousCode@users.noreply.github.com> * glorious: nits * linter: fix? * translation * fix cherry pick * gateio: translation for mbabydoge with 1e6 divisor * okx: add translation * cherry-pick: fix * glorious: todos * thrasher: nits --------- Co-authored-by: Ryan O'Hara-Reid <ryan.oharareid@thrasher.io> Co-authored-by: Scott <gloriousCode@users.noreply.github.com>
This commit is contained in:
@@ -65,6 +65,12 @@ func (ku *Kucoin) SetDefaults() {
|
||||
log.Errorln(log.ExchangeSys, err)
|
||||
}
|
||||
ku.Features = exchange.Features{
|
||||
CurrencyTranslations: currency.NewTranslations(map[currency.Code]currency.Code{
|
||||
currency.XBT: currency.BTC,
|
||||
currency.USDTM: currency.USDT,
|
||||
currency.USDM: currency.USD,
|
||||
currency.USDCM: currency.USDC,
|
||||
}),
|
||||
TradingRequirements: protocol.TradingRequirements{
|
||||
ClientOrderID: true,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user