okcoin: Remove exchange implementation (#1626)

* okcoin: Remove exchange implementation

* exchanges/order: Rid TradeMode from Submit type
This commit is contained in:
Adrian Gallagher
2024-08-24 12:19:04 +10:00
committed by GitHub
parent 1cabba73b9
commit 74f4df6348
31 changed files with 2 additions and 8846 deletions

View File

@@ -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

View File

@@ -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 }