Skip to content

Commit

Permalink
Update README_CN.md
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouaini528 authored Mar 26, 2019
1 parent e33b0d5 commit 5cb47ca
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,20 @@

所有的接口方式初始化与bitmex提供的接口方式一样,详细请看src/api

行情数据初始化
行情数据初始化[More](https://github.com/zhouaini528/bitmex-php/blob/master/tests/position.php)
```php
//$host 可以不传入,默认正式服务器访问;
$order=new \Lin\Bitmex\Api\OrderBook();
$rlt=$order->get();
print_r($rlt);
//功能多API请查看API
//Get market data
//Market parameters can not key and secret
try {
$bitmex=new Bitmex();
$result=$bitmex->orderBook()->get([
'symbol'=>'ETHUSD',
'depth'=>20
]);
print_r($result);
}catch (\Exception $e){
print_r(json_decode($e->getMessage(),true));
}
```

订单类的初始化
Expand Down

0 comments on commit 5cb47ca

Please sign in to comment.