Skip to content

Commit

Permalink
order get
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouaini528 committed May 29, 2019
1 parent 540b505 commit be655da
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Api/Spot/Orders.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,12 @@ public function getPending(array $data){
client_oid string [ required ] The client_oid type should be comprised of alphabets + numbers or only alphabets within 1 – 32 characters, both uppercase and lowercase letters are supported
* */
public function get(array $data){
$id=$data['order_id'] ?? $data['client_oid'];
$id=$data['order_id'] ?? ($data['client_oid'] ?? '');
unset($data['order_id']);
unset($data['client_oid']);

if(empty($id)) $data['state']=2;

$this->type='GET';
$this->path='/api/spot/v3/orders/'.$id;

Expand Down

0 comments on commit be655da

Please sign in to comment.