Skip to content

Commit

Permalink
okex v5 filled amount
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouaini528 committed Nov 9, 2021
1 parent 1225024 commit 0a0fc83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Map/ResponseTraderMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -457,8 +457,8 @@ function show(array $data){
$map['_client_id']=$data['result']['data'][0]['clOrdId'];
$map['_symbol']=$data['result']['data'][0]['instId'];

$map['_filed_amount']=$data['result']['data'][0]['fillPx'];
$map['_filled_qty']=$data['result']['data'][0]['fillSz'];
$map['_filed_amount']=bcmul(strval($data['result']['data'][0]['accFillSz']),strval($data['result']['data'][0]['avgPx']),16);
$map['_filled_qty']=$data['result']['data'][0]['accFillSz'];
$map['_price_avg']=$data['result']['data'][0]['avgPx'];

$map['_status']=$this->okex_status['v5'][$data['result']['data'][0]['state']];
Expand Down

0 comments on commit 0a0fc83

Please sign in to comment.