mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-29 23:16:51 +00:00
Exchanges: Add config variable to set bypassing of orderbook verification by exchange (#614)
* Exchanges: Add config variable to set bypassing of orderbook verification * Exchanges: Consolidate orderbook variables into config struct * Exchanges: Addr nit; set verification bypass on websocket book implementations
This commit is contained in:
@@ -235,7 +235,12 @@ func (e *EXMO) FetchOrderbook(p currency.Pair, assetType asset.Item) (*orderbook
|
||||
|
||||
// UpdateOrderbook updates and returns the orderbook for a currency pair
|
||||
func (e *EXMO) UpdateOrderbook(p currency.Pair, assetType asset.Item) (*orderbook.Base, error) {
|
||||
callingBook := &orderbook.Base{ExchangeName: e.Name, Pair: p, AssetType: assetType}
|
||||
callingBook := &orderbook.Base{
|
||||
ExchangeName: e.Name,
|
||||
Pair: p,
|
||||
AssetType: assetType,
|
||||
VerificationBypass: e.OrderbookVerificationBypass,
|
||||
}
|
||||
enabledPairs, err := e.GetEnabledPairs(assetType)
|
||||
if err != nil {
|
||||
return callingBook, err
|
||||
@@ -253,9 +258,11 @@ func (e *EXMO) UpdateOrderbook(p currency.Pair, assetType asset.Item) (*orderboo
|
||||
|
||||
for i := range enabledPairs {
|
||||
book := &orderbook.Base{
|
||||
ExchangeName: e.Name,
|
||||
Pair: enabledPairs[i],
|
||||
AssetType: assetType}
|
||||
ExchangeName: e.Name,
|
||||
Pair: enabledPairs[i],
|
||||
AssetType: assetType,
|
||||
VerificationBypass: e.OrderbookVerificationBypass,
|
||||
}
|
||||
|
||||
curr, err := e.FormatExchangeCurrency(enabledPairs[i], assetType)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user