slazarov / python-bittrex-websocket

Python websocket for Bittrex (non async).
http://python-bittrex-websocket-docs.readthedocs.io/en/latest/index.html
MIT License
103 stars 38 forks source link

QueryExchangeState Market Name is None. #68

Open caiyundong opened 6 years ago

caiyundong commented 6 years ago

When i fetch the snapshot with QueryExchangeState, I get the market name with value of None.

{'M': None, 'N': 23454, 'Z': [{'Q': 0.58308359, 'R': 0.0709}, ....

Anyone can help on this issue? Thanks.

slazarov commented 6 years ago

It’s not enabled on the main endpoint. I have added a custom tag to the payload which identifies the market.

On Jun 22, 2018 at 9:34 am, <Cai Yundong (mailto:notifications@github.com)> wrote:

When i fetch the snapshot with QueryExchangeState, I get the market name with value of None.

{'M': None, 'N': 23454, 'Z': [{'Q': 0.58308359, 'R': 0.0709}, ....

Anyone can help on this issue? Thanks.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub (https://github.com/slazarov/python-bittrex-websocket/issues/68), or mute the thread (https://github.com/notifications/unsubscribe-auth/AbVUG5dmz__jWk_rtzb3s_otPzPGpPJnks5t_I_bgaJpZM4UzN5B).

caiyundong commented 6 years ago

@slazarov hi slazarov, can you please explain a bit more how i can get the custom tag? Thank you.

slazarov commented 6 years ago

If you are using an IDE, you can set a breakpoint on the payload and inspect it upon debuging.

On Jun 22, 2018 at 12:28 pm, <Cai Yundong (mailto:notifications@github.com)> wrote:

@slazarov (https://github.com/slazarov) hi slazarov, can you please explain a bit more how i can get the custom tag? Thank you.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub (https://github.com/slazarov/python-bittrex-websocket/issues/68#issuecomment-399382091), or mute the thread (https://github.com/notifications/unsubscribe-auth/AbVUGz45WcJEqRC5mUpKcrt0Z0_5-yn8ks5t_LirgaJpZM4UzN5B).

caiyundong commented 6 years ago

hi, I am not using any IDE. I am using the websocket to fetch the information based on your documentation (https://github.com/Bittrex/bittrex.github.io). It says QueryExchangeState gives MarketName, but now it gives None. Thus I am not able to get the first snapshot of the orderbooks. Can you advise how I can fetch the payload in the websocket implementation?

slazarov commented 6 years ago

As I said it’s not enabled on the main endpoint. My advice is to use an IDE (usually you should use one when developing) and inspect the payload so that you could see the custom tag next to MarketName. I don’t have PC access right now so I can’t name the specific tag.

On Jun 22, 2018 at 12:44 pm, <Cai Yundong (mailto:notifications@github.com)> wrote:

hi, I am not using any IDE. I am using the websocket to fetch the information based on your documentation (https://github.com/Bittrex/bittrex.github.io). It says QueryExchangeState gives MarketName, but now it gives None. Thus I am not able to get the first snapshot of the orderbooks. Can you advise how I can fetch the payload in the websocket implementation?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub (https://github.com/slazarov/python-bittrex-websocket/issues/68#issuecomment-399386665), or mute the thread (https://github.com/notifications/unsubscribe-auth/AbVUG0PF46Zx_-zwj0qgPhOSgGX5m6sIks5t_LxggaJpZM4UzN5B).

caiyundong commented 6 years ago

sc1

hi, I can't find the tag, can you please kindly advise?

slazarov commented 6 years ago

Hi, the function I was talking about was in the 1.0.6.1 branch thats why it wasnt working for you. Please update and you would see it. pip install git+https://github.com/slazarov/python-bittrex-websocket.git

caiyundong commented 6 years ago

@slazarov Thanks for your msg, I can get via "ticker". Just a bit curious, why not use the "M" to store the market name?

slazarov commented 6 years ago

“M” is used by Bittrex so I don’t want to overwrite it. As a matter of fact it was fixed in the beta endpoint and it didn’t return “None” as per https://github.com/Bittrex/beta/issues/6. However, they haven’t pushed the change to main the endpoint or at least i haven’t been notified.

I created the custom tag because it’s a workaround and not the official one.