mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-31 07:26:44 +00:00
currency: Adds matching lookup table built from available pairs (#1312)
* currency: Add pair matching update (cherry-pick) * exchange/currency: Add tests and update func * linter fix, also if using json unmarshal functionality stop usage of string conversion without delimiter * gemini: fix test * currency/manager: potential optimisation * exchanges: purge derive from wrapper cases and add warning comment * glorious: nits * glorious: nits * linter: fix * glorious: nits * whoops * whoops * glorious: nits continued * glorious: diff THANKS! * hitbtc: fix update tradable pairs strings splitting. continue if not enabled tickers update pair. * glorious: nits * linter: fix * Update exchanges/exmo/exmo_wrapper.go Co-authored-by: Scott <gloriousCode@users.noreply.github.com> * bitstamp: fix test when 32 biterinos architecturinos * capture more strings for speed * swapsies because whos running 32bit \0/? --------- 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:
@@ -2042,7 +2042,7 @@ func TestUpdateTicker(t *testing.T) {
|
||||
var pairs currency.Pairs
|
||||
if mockTests {
|
||||
var pair2 currency.Pair
|
||||
pair2, err = currency.NewPairFromString("BTCUSD-U23")
|
||||
pair2, err = currency.NewPairFromString("BTCUSD-Z23")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
@@ -2230,7 +2230,7 @@ func TestGetHistoricCandles(t *testing.T) {
|
||||
}
|
||||
var pair2 currency.Pair
|
||||
if mockTests {
|
||||
pair2, err = currency.NewPairFromString("BTCUSD-U23")
|
||||
pair2, err = currency.NewPairFromString("BTCUSD-Z23")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
@@ -2292,7 +2292,7 @@ func TestGetHistoricCandlesExtended(t *testing.T) {
|
||||
}
|
||||
var pair2 currency.Pair
|
||||
if mockTests {
|
||||
pair2, err = currency.NewPairFromString("BTCUSD-U23")
|
||||
pair2, err = currency.NewPairFromString("BTCUSD-Z23")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user