Merge pull request #2505 from freqtrade/bittrex_restricted_markets

Add restricted markets snippet to documentation
This commit is contained in:
hroff-1902 2019-11-11 11:13:47 +03:00 committed by GitHub
commit c5ed004c9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 31 additions and 6 deletions

View File

@ -20,7 +20,7 @@ Binance has been split into 3, and users must use the correct ccxt exchange ID f
* [binance.us](https://www.binance.us/) US based users- ccxt id: `binanceus` * [binance.us](https://www.binance.us/) US based users- ccxt id: `binanceus`
* [binance.je](https://www.binance.je/) Trading FIAT currencies - ccxt id: `binanceje` * [binance.je](https://www.binance.je/) Trading FIAT currencies - ccxt id: `binanceje`
### Kraken ## Kraken
### Historic Kraken data ### Historic Kraken data
@ -33,3 +33,32 @@ To download data for the Kraken exchange, using `--dl-trades` is mandatory, othe
```shell ```shell
$ pip3 install web3 $ pip3 install web3
``` ```
## Bittrex
### Restricted markets
Bittrex split its exchange into US and International versions.
The International version has more pairs available, however the API always returns all pairs, so there is currently no automated way to detect if you're affected by the restriction.
If you have restricted pairs in your whitelist, you'll get a warning message in the log on FreqTrade startup for each restricted pair.
The warning message will look similar to the following:
``` output
[...] Message: bittrex {"success":false,"message":"RESTRICTED_MARKET","result":null,"explanation":null}"
```
If you're an "International" Customer on the Bittrex exchange, then this warning will probably not impact you.
If you're a US customer, the bot will fail to create orders for these pairs, and you should remove them from your Whitelist.
You can get a list of restricted markets by using the following snipptet:
``` python
import ccxt
ct = ccxt.bittrex()
_ = ct.load_markets()
res = [ f"{x['MarketCurrency']}/{x['BaseCurrency']}" for x in ct.publicGetMarkets()['result'] if x['IsRestricted']]
print(res)
```

View File

@ -48,12 +48,8 @@ You can use the `/forcesell all` command from Telegram.
### I get the message "RESTRICTED_MARKET" ### I get the message "RESTRICTED_MARKET"
Currently known to happen for US Bittrex users. Currently known to happen for US Bittrex users.
Bittrex split its exchange into US and International versions.
The International version has more pairs available, however the API always returns all pairs, so there is currently no automated way to detect if you're affected by the restriction.
If you have restricted pairs in your whitelist, you'll get a warning message in the log on FreqTrade startup for each restricted pair. Read [the Bittrex section about restricted markets](exchanges.md#Restricted markets) for more information.
If you're an "International" Customer on the Bittrex exchange, then this warning will probably not impact you.
If you're a US customer, the bot will fail to create orders for these pairs, and you should remove them from your Whitelist.
### How do I search the bot logs for something? ### How do I search the bot logs for something?