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

Ping not working #1

Open
npomfret opened this issue Nov 6, 2019 · 4 comments
Open

Ping not working #1

npomfret opened this issue Nov 6, 2019 · 4 comments

Comments

@npomfret
Copy link

npomfret commented Nov 6, 2019

I have a ping timer (copied from your example JS project), but I get an error "method missing" back if I don't specify a method in the request. Is this correct behaviour?

_self.request({ }, null);

@kamilbolka
Copy link

kamilbolka commented Nov 6, 2019

Do you pass anything within the request block?

For example, the following request block snippet is used to retrieve your current balance.
{ "tag": <integer>, "method": "GetBalances" }

Please refer to WebSocket documentation for further information in regards to the request block: https://github.com/coinfloor/API/blob/master/WEBSOCKET-README.md

@npomfret
Copy link
Author

npomfret commented Nov 6, 2019

I followed the example which passes an empty request. I can pass GetBalances as you point out, but if that's the case can you please fix the example and update the documentation?

Do you have to be logged in to use the websocket feed? If I just want orderbook data it would be nice not need my API keys. And if so, then using GetBalances in a ping will not work.

@kamilbolka
Copy link

kamilbolka commented Nov 6, 2019

You don't have to be logged in to use the order book API call. It's available for you under this URL: https://webapi.coinfloor.co.uk/bist/XBT/GBP/order_book/

However, to GetBalances you will need to have your API key.

@npomfret
Copy link
Author

npomfret commented Nov 6, 2019

I used the websocket feed to get the order books. Do I have to be authenticated to get market data (like the orderbook feed)? And if not, how do I ping?

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