forked from thrasher-corp/gocryptotrader
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Binance/proxy: Several fixes (thrasher-corp#678)
* Binance: REST respect proxy variable * Binance: add rest API functionality * margin account * move accountInfo to authenticated endpoints * myTrades endpoint (not yet implemented) * add BUSD (available in Binance) to currencies enumeration * Binance: websocket fix * like REST, websocket dialer respects HTTP(S)_PROXY env vars * handle situation when orderbook buffers websocket depth updates, the check on FastUpdateID and FirstUpdateID is done right before WebsocketDepthStream gets staged in orderbook manager's buffer channel. The assertion is this depth's FirstUpdateID should equal (last depth's LastUpdateID + 1) * Binance: add Margin account test case * Binance: fix typo in MarginAccount, add more fields * Binance: margin account holdings bookkeeping * Binance: add rest API functionality * spot historical trades (public), needs API key in header * change how margin account holdings are accounted in accordance with the PR * Binance: use websocket message timestamp as orderbook update time * Binance: * fix mock test TestGetHistoricalTrades * comment exported types * Binance: fix linter issue * Binance: add a lock to prevent orderbook test race
- Loading branch information
1 parent
a75d7f8
commit 0e7d530
Showing
7 changed files
with
199 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1660,4 +1660,5 @@ var ( | |
SNX = NewCode("SNX") | ||
CRV = NewCode("CRV") | ||
OXT = NewCode("OXT") | ||
BUSD = NewCode("BUSD") | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.