Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

working example of coins json string #31

Closed
datawithdev opened this issue Jan 25, 2020 · 1 comment
Closed

working example of coins json string #31

datawithdev opened this issue Jan 25, 2020 · 1 comment

Comments

@datawithdev
Copy link

Do you have any working examples of coins parameter in a JSON string..

I tried things following variations but all of them threw some kind of error.

The following threw "json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)"

--coins='{"BTC":{"name":"Bitcoin","withdrawal_address":null,"external_balance":0},"ETH":{"name":"Ethereum","withdrawal_address":null,"external_balance":0},"LTC":{"name":"Litecoin","withdrawal_address":null,"external_balance":0}}'

and the this one threw "TypeError: string indices must be integers"
"""{"BTC":{"name":"Bitcoin","withdrawal_address":null,"external_balance":0},"ETH":{"name":"Ethereum","withdrawal_address":null,"external_balance":0},"LTC":{"name":"Litecoin","withdrawal_address":null,"external_balance":0}}"""

@brndnmtthws
Copy link
Owner

Try removing the equal sign (=). Like this:

--coins '{"BTC":{"name":"Bitcoin","withdrawal_address":null,"external_balance":0},"ETH":{"name":"Ethereum","withdrawal_address":null,"external_balance":0},"LTC":{"name":"Litecoin","withdrawal_address":null,"external_balance":0}}'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants