Skip to content

Commit

Permalink
Add Request Options
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouaini528 committed Aug 22, 2019
1 parent 5a30ebd commit 7d5a811
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ Local development sets the proxy [More](https://github.com/zhouaini528/binance-p
```php
$binance=new Binance($key,$secret);

//You can set special needs
$binance->setOptions([
//Set the request timeout to 60 seconds by default
'timeout'=>10,
Expand Down
3 changes: 2 additions & 1 deletion README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ composer require "linwj/binance dev-master"
```php
$binance=new Binance($key,$secret);

//You can set special needs
$binance->setOptions([
//Set the request timeout to 60 seconds by default
'timeout'=>10,
Expand All @@ -43,7 +44,7 @@ $binance->setOptions([
'https' => 'http://127.0.0.1:12333',
'no' => ['.cn']
],

//Close the certificate
'verify'=>false,
]);
Expand Down

0 comments on commit 7d5a811

Please sign in to comment.