mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-13 23:16:45 +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:
@@ -55,6 +55,9 @@ func (g *Gateio) SetDefaults() {
|
||||
}
|
||||
|
||||
g.Features = exchange.Features{
|
||||
CurrencyTranslations: currency.NewTranslations(map[currency.Code]currency.Code{
|
||||
currency.NewCode("MBABYDOGE"): currency.BABYDOGE,
|
||||
}),
|
||||
TradingRequirements: protocol.TradingRequirements{
|
||||
SpotMarketOrderAmountPurchaseQuotationOnly: true,
|
||||
SpotMarketOrderAmountSellBaseOnly: true,
|
||||
|
||||
Reference in New Issue
Block a user