mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-17 23:16:52 +00:00
Tests: Use currency.NewBTCUSD and NewBTCUSDT (#1895)
* Tests: Use currency.NewUSD and NewUSDT Simple refactor to use the provided shortcut methods * Github: Add CI check to ensure NewPair not used Add a step to ensure NewPair(BTC, USD*) isn't used
This commit is contained in:
@@ -40,7 +40,7 @@ supplied meet the requirements to make an authenticated request.
|
||||
```go
|
||||
var b bitstamp.Bitstamp
|
||||
b.SetDefaults()
|
||||
ticker, err := b.GetCachedTicker(context.Background(), currency.NewPair(currency.BTC, currency.USD), asset.Spot)
|
||||
ticker, err := b.GetCachedTicker(context.Background(), currency.NewBTCUSD(), asset.Spot)
|
||||
if err != nil {
|
||||
// Handle error
|
||||
}
|
||||
@@ -76,7 +76,7 @@ supplied meet the requirements to make an authenticated request.
|
||||
|
||||
o := &order.Submit{
|
||||
Exchange: b.Name, // or method GetName() if exchange.IBotInterface
|
||||
Pair: currency.NewPair(currency.BTC, currency.USD),
|
||||
Pair: currency.NewBTCUSD(),
|
||||
Side: order.Sell,
|
||||
Type: order.Limit,
|
||||
Price: 1000000,
|
||||
|
||||
Reference in New Issue
Block a user