tsu-nera / bakuchi

仮想通貨Botトレード開発
https://github.com/tsu-nera/bakuchi_analysis
2 stars 3 forks source link

liquidのddosProtectioinのエラー対応 #121

Closed tsu-nera closed 4 years ago

tsu-nera commented 4 years ago
    raise DDoSProtection(self.id + ' ' + body)                                                                                      
ccxt.base.errors.DDoSProtection: liquid API rate limit exceeded. Please retry after 300s                                            
[ERROR:2020-03-17 19:49:33,367] error occourd                                                                                       
[ERROR:2020-03-17 19:49:33,367] (liquid) can't get tick                                                                             
[INFO:2020-03-17 19:49:33,384] tick bid=569652.0 ask=569986.0 (coincheck:BTC/JPY)                                                   
[ERROR:2020-03-17 19:49:34,427] liquid API rate limit exceeded. Please retry after 300s                                             
Traceback (most recent call last):                                                                                                  
  File "/home/tsu-nera/miniconda3/envs/bakuchi/lib/python3.7/site-packages/ccxt/base/exchange.py", line 554, in fetch               
    response.raise_for_status()                                                                                                     
  File "/home/tsu-nera/miniconda3/envs/bakuchi/lib/python3.7/site-packages/requests/models.py", line 941, in raise_for_status       
    raise HTTPError(http_error_msg, response=self)                                                                                  
requests.exceptions.HTTPError: 429 Client Error: Too Many Requests for url: https://api.liquid.com/products/5      
tsu-nera commented 4 years ago

can't get tickのエラー対応も合わせて

./data/historicals/2003171306/ccxt.log:[ERROR:2020-03-17 19:49:56,274] error occourd
./data/historicals/2003171306/ccxt.log:[ERROR:2020-03-17 19:49:56,274] (liquid) can't get tick
./data/historicals/2003171306/ccxt.log:[ERROR:2020-03-17 19:49:57,366] liquid API rate limit exceeded. Please retry after 300s
./data/historicals/2003171306/ccxt.log:[ERROR:2020-03-17 19:49:57,366] error occourd
./data/historicals/2003171306/ccxt.log:[ERROR:2020-03-17 19:49:57,367] (liquid) can't get tick
./data/historicals/2003171306/ccxt.log:[ERROR:2020-03-17 19:49:58,536] liquid API rate limit exceeded. Please retry after 300s
./data/historicals/2003171306/ccxt.log:[ERROR:2020-03-17 19:49:58,536] error occourd
./data/historicals/2003171306/ccxt.log:[ERROR:2020-03-17 19:49:58,536] (liquid) can't get tick
./data/historicals/2003171306/ccxt.log:[ERROR:2020-03-17 19:49:59,762] liquid API rate limit exceeded. Please retry after 300s
./data/historicals/2003171306/ccxt.log:[ERROR:2020-03-17 19:49:59,763] error occourd
./data/historicals/2003171306/ccxt.log:[ERROR:2020-03-17 19:49:59,763] (liquid) can't get tick
./data/historicals/2003180312/ccxt.log:[ERROR:2020-03-18 03:13:25,494] GET https://coincheck.com/api/ticker
./data/historicals/2003180312/ccxt.log:[ERROR:2020-03-18 03:13:25,501] error occourd
./data/historicals/2003180312/ccxt.log:[ERROR:2020-03-18 03:13:25,502] (coincheck) can't get tick
./data/historicals/2003180312/ccxt.log:[ERROR:2020-03-18 03:35:42,302] GET https://coincheck.com/api/ticker
./data/historicals/2003180312/ccxt.log:[ERROR:2020-03-18 03:35:42,303] error occourd
./data/historicals/2003180312/ccxt.log:[ERROR:2020-03-18 03:35:42,303] (coincheck) can't get tick
./data/historicals/2003180312/ccxt.log:[ERROR:2020-03-18 04:04:26,396] GET https://coincheck.com/api/ticker
./data/historicals/2003180312/ccxt.log:[ERROR:2020-03-18 04:04:26,398] error occourd
./data/historicals/2003180312/ccxt.log:[ERROR:2020-03-18 04:04:26,398] (coincheck) can't get tick
./data/historicals/2003180312/ccxt.log:[ERROR:2020-03-18 07:52:45,593] GET https://coincheck.com/api/ticker
./data/historicals/2003180312/ccxt.log:[ERROR:2020-03-18 07:52:45,593] error occourd
./data/historicals/2003180312/ccxt.log:[ERROR:2020-03-18 07:52:45,593] (coincheck) can't get tick
./data/historicals/2003180312/ccxt.log:[ERROR:2020-03-18 08:00:10,006] GET https://coincheck.com/api/ticker
./data/historicals/2003180312/ccxt.log:[ERROR:2020-03-18 08:00:10,006] error occourd
./data/historicals/2003180312/ccxt.log:[ERROR:2020-03-18 08:00:10,006] (coincheck) can't get tick