mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-03 07:26:45 +00:00
okcoin: Remove exchange implementation (#1626)
* okcoin: Remove exchange implementation * exchanges/order: Rid TradeMode from Submit type
This commit is contained in:
@@ -846,8 +846,6 @@ func (c *Config) CheckExchangeConfigValues() error {
|
||||
for i := range c.Exchanges {
|
||||
if strings.EqualFold(c.Exchanges[i].Name, "GDAX") {
|
||||
c.Exchanges[i].Name = "CoinbasePro"
|
||||
} else if strings.EqualFold(c.Exchanges[i].Name, "OKCOIN International") {
|
||||
c.Exchanges[i].Name = "Okcoin"
|
||||
}
|
||||
|
||||
// Check to see if the old API storage format is used
|
||||
|
||||
@@ -1317,15 +1317,6 @@ func TestCheckExchangeConfigValues(t *testing.T) {
|
||||
t.Error("exchange name should have been updated from GDAX to CoinbasePRo")
|
||||
}
|
||||
|
||||
cfg.Exchanges[0].Name = "OKCOIN International"
|
||||
err = cfg.CheckExchangeConfigValues()
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
}
|
||||
if cfg.Exchanges[0].Name != "Okcoin" {
|
||||
t.Error("exchange name should have been updated from 'OKCOIN International' to 'Okcoin'")
|
||||
}
|
||||
|
||||
// Test API settings migration
|
||||
sptr := func(s string) *string { return &s }
|
||||
int64ptr := func(i int64) *int64 { return &i }
|
||||
|
||||
Reference in New Issue
Block a user