Skip to content

Commit

Permalink
Version settings are supported
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouaini528 committed Aug 3, 2023
1 parent 4330335 commit 21dbb55
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,11 @@ try {
'symbol'=>'BTCUSDT',
'limit'=>'20',
]);
//You can set the version by passing parameters
$result=$binance->system()->getDepth([
'symbol'=>'BTCUSDT',
'limit'=>'20',
],'v2');
print_r($result);
}catch (\Exception $e){
print_r($e->getMessage());
Expand Down
5 changes: 5 additions & 0 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,11 @@ try {
'symbol'=>'BTCUSDT',
'limit'=>'20',
]);
//也可以传参设置版本
$result=$binance->system()->getDepth([
'symbol'=>'BTCUSDT',
'limit'=>'20',
],'v2');
print_r($result);
}catch (\Exception $e){
print_r($e->getMessage());
Expand Down

0 comments on commit 21dbb55

Please sign in to comment.