mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-19 07:26:49 +00:00
gRPC/Engine/Exchanges: Implement direct getwithdrawalshistory method (#600)
* GetClosedOrder implemented for Kraken and Binance, fixed Binance MARKET order creaton, added rate, fee and cost fileds on SubmitOrder responce * return Trades on Binance SubmitOrder, new validation methods on Binance and kraken GetClosedOrderInfo * removed the Binance extra method GetClosedOrder * func description corrected * removed price, fee and cost from SimulateOrder response, as we get all necessary info in response to calculate them on client side * GetClosedOrder implementation moved to GetOrderInfo * changed GetOrderInfo params * removed Canceled order.Type used for Kraken * update QueryOrder in gctscript * add missed params to QueryOrder validator (gctscript) * fixed testing issues * GetClosedOrder implemented for Kraken and Binance, fixed Binance MARKET order creaton, added rate, fee and cost fileds on SubmitOrder responce * return Trades on Binance SubmitOrder, new validation methods on Binance and kraken GetClosedOrderInfo * removed the Binance extra method GetClosedOrder * func description corrected * removed price, fee and cost from SimulateOrder response, as we get all necessary info in response to calculate them on client side * GetClosedOrder implementation moved to GetOrderInfo * changed GetOrderInfo params * removed Canceled order.Type used for Kraken * update QueryOrder in gctscript * add missed params to QueryOrder validator (gctscript) * fixed testing issues * pull previous changes * linter issues fix * updated query_order exmple in gctscript, fixed params check * removed orderPair unnecessary conversion * added wsCancelAllOrders, fixed bugs * fixed Kraken wsAddOrder method * cleanup * CancelBatchOrders implementation * changed CancelBatchOrders signature * fixed tests and wrappers * btcmarkets_test fix * cleanup * cleanup * changed CancelBatchOrders signature * fmt * Update configtest.json * Update configtest.json * rollback configtest * refactored Kraken wsHandleData to allow tests * removed unnecessary error test in TestWsAddOrderJSON * dependencies updates * fixed issue with PortfolioSleepDelay set on startup * add GetWithdrawalsHistory method to exchanges interface * param name changes * add extra params for Binance WithdrawStatus method * add Binance TestWithdrawHistory * linter errors fix Co-authored-by: Vazha Bezhanishvili <vazha.bezhanishvili@elegro.eu>
This commit is contained in:
47
testdata/http_mock/binance/binance.json
vendored
47
testdata/http_mock/binance/binance.json
vendored
@@ -93848,6 +93848,51 @@
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"/wapi/v3/withdrawHistory.html": {
|
||||
"GET": [
|
||||
{
|
||||
"data": {
|
||||
"withdrawList": [
|
||||
{
|
||||
"id":"7213fea8e94b4a5593d507237e5a555b",
|
||||
"withdrawOrderId": "None",
|
||||
"amount": 0.99,
|
||||
"transactionFee": 0.01,
|
||||
"address": "0x6915f16f8791d0a1cc2bf47c13a6b2a92000504b",
|
||||
"asset": "ETH",
|
||||
"txId": "0xdf33b22bdb2b28b1f75ccd201a4a4m6e7g83jy5fc5d5a9d1340961598cfcb0a1",
|
||||
"applyTime": 1508198532000,
|
||||
"status": 4
|
||||
},
|
||||
{
|
||||
"id":"7213fea8e94b4a5534ggsd237e5a555b",
|
||||
"withdrawOrderId": "withdrawtest",
|
||||
"amount": 999.9999,
|
||||
"transactionFee": 0.0001,
|
||||
"address": "463tWEBn5XZJSxLU34r6g7h8jtxuNcDbjLSjkn3XAXHCbLrTTErJrBWYgHJQyrCwkNgYvyV3z8zctJLPCZy24jvb3NiTcTJ",
|
||||
"addressTag": "342341222",
|
||||
"txId": "b3c6219639c8ae3f9cf010cdc24fw7f7yt8j1e063f9b4bd1a05cb44c4b6e2509",
|
||||
"asset": "XMR",
|
||||
"applyTime": 1508198532000,
|
||||
"status": 4
|
||||
}
|
||||
],
|
||||
"success": true
|
||||
}
|
||||
,
|
||||
"queryString": "asset=XBT&recvWindow=5000×tamp=1606747517000&signature=495922a57f23874994c9018ce17d9ba31d1d1cdaca24916d88bb7dd26a4c99f2",
|
||||
"bodyParams": "",
|
||||
"headers": {
|
||||
"Key": [
|
||||
""
|
||||
],
|
||||
"X-Mbx-Apikey": [
|
||||
""
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user