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

Rewrite Binance OnGetUserDataWebSocketAsync() to be multi-exchange friendly #661

Merged
merged 2 commits into from
Sep 25, 2021

Conversation

vslee
Copy link
Collaborator

@vslee vslee commented Sep 24, 2021

this PR contains 3 breaking changes:

  • ExchangeOrderResult.FillDate has been changed to CompletionDate and made nullable. This is because this can represent either the Filled date or the Cancelled, Rejected, or Expired date. And it doesn't necessarily have a value.
  • ExchangeOrderResult.AmountFilled and ExchangeOrderResult.Fees changed to nullable. Not all exchanges provide these values on every call.
  • removed listenKey from GetUserDataWebSocketAsync()

Other changes

  • inlined call to BinanceGroupCommon.GetListenKeyAsync()
  • made parse() methods in BinanceGroupCommon static
  • added ExchangeAPIOrderResultExtensions with Completed enums
  • added ExchangeBalances
  • fixed BinanceGroupCommon.OnGetMarketSymbolsAsync() (updated URL)
  • fixed test compilation error created by [UNTESTED] [Binance] sapi endpoint, cleanup #655

…exchange friendly

- this PR contains 3 breaking changes:
	- ExchangeOrderResult.FillDate has been changed to CompletionDate and made it nullable. This is because this can represent either the Filled date or the Cancelled, Rejected, or Expired date. And it doesn't necessarily have a value.
	-ExchangeOrderResult.AmountFilled changed to nullable. Not all exchanges provide this value on every call.
	-removed listenKey from GetUserDataWebSocketAsync()

Other changes
- inlined call to BinanceGroupCommon.GetListenKeyAsync()
- made parse() methods in BinanceGroupCommon static
- added ExchangeAPIOrderResultExtensions with Completed enums
- added ExchangeBalances
- fixed BinanceGroupCommon.OnGetMarketSymbolsAsync() (updated URL)
@vslee vslee requested a review from jjxtra September 24, 2021 21:33
- not all exchanges provide this on every response
@vslee vslee merged commit bb8a5d5 into DigitalRuby:master Sep 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants