Skip to content

Commit

Permalink
an older user-agent for huobi.pro
Browse files Browse the repository at this point in the history
  • Loading branch information
kroitor committed Dec 19, 2017
1 parent 354e999 commit f808db1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions js/base/Exchange.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ module.exports = class Exchange {

this.userAgents = {
'chrome': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36',
'chrome39': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36',
}

this.headers = {}
Expand Down
1 change: 1 addition & 0 deletions js/huobipro.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ module.exports = class huobipro extends Exchange {
'name': 'Huobi Pro',
'countries': 'CN',
'rateLimit': 2000,
'userAgent': this.userAgents['chrome39'],
'version': 'v1',
'accounts': undefined,
'accountsById': undefined,
Expand Down
1 change: 1 addition & 0 deletions php/Exchange.php
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,7 @@ public function __construct ($options = array ()) {
$this->userAgent = null; // 'ccxt/' . $version . ' (+https://github.com/ccxt/ccxt) PHP/' . PHP_VERSION;
$this->userAgents = array (
'chrome' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36',
'chrome39' => 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36',
);
$this->substituteCommonCurrencyCodes = true;
$this->timeframes = null;
Expand Down
1 change: 1 addition & 0 deletions python/ccxt/base/exchange.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ class Exchange(object):
userAgent = None
userAgents = {
'chrome': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36',
'chrome39': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36',
}
verbose = False
markets = None
Expand Down

0 comments on commit f808db1

Please sign in to comment.