Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

order_book depth limit is stricter in API than in the actual API #158

Open
gezabohus opened this issue Jan 26, 2024 · 0 comments
Open

order_book depth limit is stricter in API than in the actual API #158

gezabohus opened this issue Jan 26, 2024 · 0 comments

Comments

@gezabohus
Copy link

Hi all,

In futures_api.py we have

if ( self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] > 50 ): # noqa: E501 raise ApiValueError( "Invalid value for parameterlimitwhen callinglist_futures_order_book, must be a value less than or equal to 50" ) # noqa: E501
Notice the limit is 50.

TLDR: the actual limit is 300, so the python API should not throttle this to 50.

The gateIO API docs don't say anything about the limit, so I tried it with 5000 and got the error message

GateApiException('TOO_BIG', 'limit 300', None, ApiException())

I have then tested with 300 and it worked.

Thanks for listening.

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

No branches or pull requests

1 participant