8000 Coinex requires a small fix · Issue #3266 · ccxt/ccxt · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Coinex requires a small fix #3266
Closed
Closed
@Cleric334

Description

@Cleric334

Hello.

From yesterday, Coinex started to give "Invalid argument" error when fetching order book.
Looks like they have made some minor changes to their API, and it was enough to break the ccxt file.

https://github.com/coinexcom/coinex_exchange_api/wiki/022depth/_compare/3666b73f511ea66de08008c0f4d430ee6fd013cb...8d77ad792c4cfadcc4070869e9fcfcfa82ad3830

We have made a quick fix in the ccxt file and the problem was gone

async fetchOrderBook (symbol, params = {}) {
await this.loadMarkets ();
let response = await this.publicGetMarketDepth (this.extend ({
'market': this.marketId (symbol),
'merge': '0.00000001',
'limit': '5'
}, params));
return this.parseOrderBook (response['data']);

In this fix, we have only added this line

'limit': '5'

Hope it helps.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0