-
Notifications
You must be signed in to change notification settings - Fork 39
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
Crash with proposed json config #1
Comments
Hi Federico,
What is the error message you are receiving, you should be able to use the
keys.json file without kraken (and with binance) or without binance (and
with kraken) keys?
Are you trading with Kraken or Binance?
If you are trading with Binance please use 'python twitter_binance.py'
If you are trading with Kraken please use 'python twitter_kraken.py' (This
one I have not tested for a while and have received notice that the api was
down today from Kraken support on twitter)
Kind regards,
Jaimin
…On Mon, Feb 22, 2021 at 3:29 PM Federico E. Galli ***@***.***> wrote:
Hi, I am testing your software (successfully with self tweet)
I noticed that python twitter_binance.py crashes if specified (with values
or not) the kraken line.
The keys.json with twitter_binance.py works with this format
{ "twitter_keys":{ "consumer_key":"xxx", "consumer_secret":"xxx",
"access_token_key":"xxx", "access_token_secret":"xxx" }, "binance_keys":{
"api_key":"xxx", "secret_key":"xxx" } }
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<https://urldefense.com/v3/__https://github.com/jaimindp/Twitter_Activated_Crypto_Trading_Bot/issues/1__;!!LIr3w8kk_Xxm!8wtu49A1uw17KS14QwsBxmOBHQmXW0Vu-4gGuoXQ41adKH32dkzYZ3jOtOPdC7w$>,
or unsubscribe
<https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AKKA6Y6EXXYLWJXL5Y2KH6LTALSG7ANCNFSM4YBN5DCQ__;!!LIr3w8kk_Xxm!8wtu49A1uw17KS14QwsBxmOBHQmXW0Vu-4gGuoXQ41adKH32dkzYZ3jOXmvjfd0$>
.
|
Hi, I am trading with binance, I have successfully self tested doge/btc buy sell in a 30s timeline.
it works correctly. If I use the one one on the readme, with the "kraken" like like this i first get an escape error because it says that kraken_keys needs "somekey" (correcty I think) and if I fill the value it gives
I am not trading with kraken, but if someone trade with kraken AND binance, should have 2 separate config files? |
Ah I see if you put double quotes around the "kraken_keys":{"XXXXXXX"} it
should work. It's just an incorrectly formatted json file
…On Mon, Feb 22, 2021 at 4:13 PM Federico E. Galli ***@***.***> wrote:
Hi, I am trading with binance, I have successfully self tested doge/btc
buy sell in a 30s timeline.
If I use this format for the json
{ "twitter_keys":{ "consumer_key":"xxx", "consumer_secret":"xxx",
"access_token_key":"xxx", "access_token_secret":"xxx" }, "binance_keys":{
"api_key":"xxx", "secret_key":"xxx" } }
it works correctly. If I use the one one on the readme, with the "kraken"
like like this
{ "twitter_keys":{ "consumer_key":"XXXXXXXXXXXXXXXXXXXX",
"consumer_secret":"XXXXXXXXXXXXXXXXXXXX",
"access_token_key":"XXXXXXXXXXXXXXXXXXXX",
"access_token_secret":"XXXXXXXXXXXXXXXXXXXX" }, "binance_keys":{
"api_key":"XXXXXXXXXXXXXXXXXXXX", "secret_key":"XXXXXXXXXXXXXXXXXXXX" },
"kraken_keys":{XXXXXX} }
i first get an escape error because it says that kraken_keys needs
"somekey" (correcty I think) and if I fill the value it gives
Traceback (most recent call last): File "twitter_binance.py", line 59, in
<module> api_keys = json.loads(f.read()) File
"/usr/lib64/python3.8/json/__init__.py", line 357, in loads return
_default_decoder.decode(s) File "/usr/lib64/python3.8/json/decoder.py",
line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File
"/usr/lib64/python3.8/json/decoder.py", line 353, in raw_decode obj, end =
self.scan_once(s, idx) json.decoder.JSONDecodeError: Expecting ':'
delimiter: line 12 column 23 (char 545)
I am not trading with kraken, but if someone trade with kraken AND
binance, should have 2 separate config files?
I do understand it's a works in progres, I am just curious. Thanks in
advance.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<https://urldefense.com/v3/__https://github.com/jaimindp/Twitter_Activated_Crypto_Trading_Bot/issues/1*issuecomment-783771395__;Iw!!LIr3w8kk_Xxm!-IPnZ5FRK4QJFPNJL-EcZfqu3oj2KwLRsbMDNnAUeJXPhnsZOVI0gwYm6HmLR_Y$>,
or unsubscribe
<https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AKKA6Y5LFJJAXWE5W56AM33TALXI3ANCNFSM4YBN5DCQ__;!!LIr3w8kk_Xxm!-IPnZ5FRK4QJFPNJL-EcZfqu3oj2KwLRsbMDNnAUeJXPhnsZOVI0gwYm__BOTDg$>
.
|
Not exactly, without the double quote I get this error
and with the double quotes, like "kraken_keys":{"XXXXXXX"} i get this other error
but it just works if I fully remove the kraken line. |
Yeah removing , "kraken_keys" {} should work too. I was just being lazy
with the formatting
…On Mon, Feb 22, 2021 at 4:14 PM Jaimin Patel ***@***.***> wrote:
Ah I see if you put double quotes around the "kraken_keys":{"XXXXXXX"} it
should work. It's just an incorrectly formatted json file
On Mon, Feb 22, 2021 at 4:13 PM Federico E. Galli <
***@***.***> wrote:
> Hi, I am trading with binance, I have successfully self tested doge/btc
> buy sell in a 30s timeline.
> If I use this format for the json
>
> { "twitter_keys":{ "consumer_key":"xxx", "consumer_secret":"xxx",
> "access_token_key":"xxx", "access_token_secret":"xxx" }, "binance_keys":{
> "api_key":"xxx", "secret_key":"xxx" } }
>
> it works correctly. If I use the one one on the readme, with the "kraken"
> like like this
> { "twitter_keys":{ "consumer_key":"XXXXXXXXXXXXXXXXXXXX",
> "consumer_secret":"XXXXXXXXXXXXXXXXXXXX",
> "access_token_key":"XXXXXXXXXXXXXXXXXXXX",
> "access_token_secret":"XXXXXXXXXXXXXXXXXXXX" }, "binance_keys":{
> "api_key":"XXXXXXXXXXXXXXXXXXXX", "secret_key":"XXXXXXXXXXXXXXXXXXXX" },
> "kraken_keys":{XXXXXX} }
>
> i first get an escape error because it says that kraken_keys needs
> "somekey" (correcty I think) and if I fill the value it gives
>
> Traceback (most recent call last): File "twitter_binance.py", line 59, in
> <module> api_keys = json.loads(f.read()) File
> "/usr/lib64/python3.8/json/__init__.py", line 357, in loads return
> _default_decoder.decode(s) File "/usr/lib64/python3.8/json/decoder.py",
> line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File
> "/usr/lib64/python3.8/json/decoder.py", line 353, in raw_decode obj, end =
> self.scan_once(s, idx) json.decoder.JSONDecodeError: Expecting ':'
> delimiter: line 12 column 23 (char 545)
> I am not trading with kraken, but if someone trade with kraken AND
> binance, should have 2 separate config files?
> I do understand it's a works in progres, I am just curious. Thanks in
> advance.
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <https://urldefense.com/v3/__https://github.com/jaimindp/Twitter_Activated_Crypto_Trading_Bot/issues/1*issuecomment-783771395__;Iw!!LIr3w8kk_Xxm!-IPnZ5FRK4QJFPNJL-EcZfqu3oj2KwLRsbMDNnAUeJXPhnsZOVI0gwYm6HmLR_Y$>,
> or unsubscribe
> <https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AKKA6Y5LFJJAXWE5W56AM33TALXI3ANCNFSM4YBN5DCQ__;!!LIr3w8kk_Xxm!-IPnZ5FRK4QJFPNJL-EcZfqu3oj2KwLRsbMDNnAUeJXPhnsZOVI0gwYm__BOTDg$>
> .
>
|
Thanks :-) |
No problem.
…On Mon, Feb 22, 2021 at 4:24 PM Federico E. Galli ***@***.***> wrote:
Thanks :-)
I hope you will implement the "new listed coin feature" :-)
Now I hope to test the real thing soon. Such Moon Much Doge!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<https://urldefense.com/v3/__https://github.com/jaimindp/Twitter_Activated_Crypto_Trading_Bot/issues/1*issuecomment-783776511__;Iw!!LIr3w8kk_Xxm!4ycK0LCQQTt97k4iEtNZFQVXrrE_GhZpaE0xa-dZbyKdjG9W5KzEHfLKa1UTUVo$>,
or unsubscribe
<https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AKKA6Y6HXAENCZ2XUMJIBVLTALYVVANCNFSM4YBN5DCQ__;!!LIr3w8kk_Xxm!4ycK0LCQQTt97k4iEtNZFQVXrrE_GhZpaE0xa-dZbyKdjG9W5KzEHfLK0DDZiO4$>
.
|
Hi, I am testing your software (successfully with self tweet)
I noticed that python twitter_binance.py crashes if specified (with values or not) the kraken line.
The keys.json with twitter_binance.py works with this format
{ "twitter_keys":{ "consumer_key":"xxx", "consumer_secret":"xxx", "access_token_key":"xxx", "access_token_secret":"xxx" }, "binance_keys":{ "api_key":"xxx", "secret_key":"xxx" } }
The text was updated successfully, but these errors were encountered: