-
Notifications
You must be signed in to change notification settings - Fork 50
Added more information for a orderbook #136
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -451,6 +451,13 @@ def get_order_books(self, order_book_ids: Sequence[str]) -> List[OrderBook]: | |||||
HttpMethod.GET, | ||||||
Route.ORDERBOOK_LIST_PATH.value.format(",".join(order_book_ids)), | ||||||
) | ||||||
|
||||||
def get_orderbook(self, order_book_id: str ): | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also please consider adding return type as in other functions e.g. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You (@Unt3r) mentioned that among other things the tick size is also returned. Does the other things in the response correspond to the existing Orderbook model? Easiest way to validate that is to write a test for the method, it will then say what fields (if any) are missing or has invalid values. |
||||||
|
||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could you please add a function description? Similar to on line 448 |
||||||
return self.__call( | ||||||
HttpMethod.GET, | ||||||
Route.ORDERBOOK_PATH.value.format(order_book_id) | ||||||
) | ||||||
|
||||||
def get_insights_report( | ||||||
self, account_id: str, time_period: InsightsReportTimePeriod | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Additionally this might be a question for @Qluxzz, do we want to name it
get_orderbook
orget_order_book
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since order book is two words it should be
get_order_book