Skip to content

Commit

Permalink
Update okx_wrapper.go
Browse files Browse the repository at this point in the history
  • Loading branch information
aaabigfish committed Jun 7, 2024
1 parent 8d5b23c commit f1069e9
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions exchanges/okx/okx_wrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -441,9 +441,6 @@ func (ok *Okx) UpdateOrderbook(ctx context.Context, pair currency.Pair, assetTyp
if pair.IsEmpty() {
return nil, currency.ErrCurrencyPairEmpty
}
if err := ok.CurrencyPairs.IsAssetEnabled(assetType); err != nil {
return nil, err
}
book := &orderbook.Base{
Exchange: ok.Name,
Pair: pair,
Expand All @@ -452,10 +449,6 @@ func (ok *Okx) UpdateOrderbook(ctx context.Context, pair currency.Pair, assetTyp
}
var orderbookNew *OrderBookResponse
var err error
err = ok.CurrencyPairs.IsAssetEnabled(assetType)
if err != nil {
return nil, err
}
var instrumentID string
pairFormat, err := ok.GetPairFormat(assetType, true)
if err != nil {
Expand Down

0 comments on commit f1069e9

Please sign in to comment.