Skip to content

Commit

Permalink
change pos
Browse files Browse the repository at this point in the history
  • Loading branch information
eskrano committed Feb 8, 2020
1 parent 684e891 commit cbb213d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
10 changes: 1 addition & 9 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,5 @@

//$pos = $bitmex->orderBook()->get(['symbol' => 'XBTUSD', 'depth' => 1]);

$pos = $bitmex->order()->get([
'symbol' => 'XBTUSD',
'count' => 100,
'reverse' => true,
'filter' => json_encode([
'ordType' => 'StopLimit',
'ordStatus' => 'Filled',
]),
]);
$pos = $bitmex->position()->get(['symbol' => '']);
var_dump($pos);
2 changes: 1 addition & 1 deletion src/Api/Position.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class Position extends Request
{
public function get(array $data){
$this->type='GET';
$this->path='/api/v1/position?symbol='.$data['symbol'] ?? 'XBTUSD';
$this->path='/api/v1/position?'.http_build_query($data);
//$this->data=$data;

return $this->exec();
Expand Down

0 comments on commit cbb213d

Please sign in to comment.