File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/ExchangeSharp/API/Exchanges/BinanceGroup Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -557,6 +557,7 @@ protected override async Task<ExchangeOrderResult> OnPlaceOrderAsync(ExchangeOrd
557
557
{
558
558
Dictionary < string , object > payload = await GetNoncePayloadAsync ( ) ;
559
559
payload [ "symbol" ] = order . MarketSymbol ;
560
+ payload [ "newClientOrderId" ] = order . ClientOrderId ;
560
561
payload [ "side" ] = order . IsBuy ? "BUY" : "SELL" ;
561
562
if ( order . OrderType == OrderType . Stop )
562
563
payload [ "type" ] = "STOP_LOSS" ; //if order type is stop loss/limit, then binance expect word 'STOP_LOSS' inestead of 'STOP'
@@ -934,7 +935,8 @@ private ExchangeOrderResult ParseOrder(JToken token)
934
935
IsBuy = token [ "side" ] . ToStringInvariant ( ) == "BUY" ,
935
936
OrderDate = CryptoUtility . UnixTimeStampToDateTimeMilliseconds ( token [ "time" ] . ConvertInvariant < long > ( token [ "transactTime" ] . ConvertInvariant < long > ( ) ) ) ,
936
937
OrderId = token [ "orderId" ] . ToStringInvariant ( ) ,
937
- MarketSymbol = token [ "symbol" ] . ToStringInvariant ( )
938
+ MarketSymbol = token [ "symbol" ] . ToStringInvariant ( ) ,
939
+ ClientOrderId = token [ "clientOrderId" ] . ToStringInvariant ( )
938
940
} ;
939
941
940
942
switch ( token [ "status" ] . ToStringInvariant ( ) )
You can’t perform that action at this time.
0 commit comments