Skip to content

fix(quote): default order book depth level to 15 - #17

Open
takinanton wants to merge 1 commit into
edgex-Tech:mainfrom
takinanton:depth-default-level
Open

takinanton wants to merge 1 commit into
edgex-Tech:mainfrom
takinanton:depth-default-level

Conversation

@takinanton

Copy link
Copy Markdown

GetOrderBookDepthParams defaults limit to 50 but getDepth only takes 15 or 200. Calling get_order_book_depth with the default on BTCUSDC fails with a 400 and INVALID_DEPTH_LEVEL.

Changed the default to 15 which is what subscribe_depth already uses. After that the same call returns 15 asks and 15 bids. Added a request test for the default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant