-
Notifications
You must be signed in to change notification settings - Fork 517
More typings #55
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
More typings #55
Conversation
|
@bennyn Looks good to you? |
| isBuyerMaker: boolean; | ||
| } | ||
|
|
||
| interface MyTrade { |
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.
Please rename it to Trade to match the naming schema of: https://github.com/binance-exchange/binance-java-api/blob/master/src/main/java/com/binance/api/client/domain/account/Trade.java
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.
The name Trade is already used for websocket trade events.
index.d.ts
Outdated
| price: string; | ||
| origQty: string; | ||
| executedQty: string; | ||
| status: string; |
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.
status: string -> status: OrderStatus
| isBestMatch: boolean; | ||
| } | ||
|
|
||
| interface QueryOrderResult { |
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.
Can interface QueryOrderResult and interface Order be merged?
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.
No. Order uses transactTime instead of time and provides some additional fields.
| isWorking: boolean; | ||
| } | ||
|
|
||
| interface CancelOrderResult { |
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.
Is that a Result? To me it looks like a Request because it is created when calling cancelOrder.
The Java API also names it CancelOrderRequest:
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.
Yes, it is a Result.
|
Thanks for clarification, @mstijak. Approved! |
PR for #47