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

kline query return invalid argument #99

Open
fireghostea opened this issue Aug 18, 2021 · 2 comments
Open

kline query return invalid argument #99

fireghostea opened this issue Aug 18, 2021 · 2 comments

Comments

@fireghostea
Copy link

i use this json object
{"method":"kline.query","params":["BTCUSDT",60],"id": 15}
but the server response is
{"error": {"code": 3001, "message": "invalid argument"}, "result": null, "id": 15}
why?
other methods seems to work correctly

@Irantechs
Copy link

having the same issue

@Rayan1392
Copy link

Rayan1392 commented Aug 21, 2021

I have the same issue
I set subscription json parameter like this:
async def subscribe_kline(self, conn):
param = {
"id" : 1,
"method": "kline.query",
"params": ['BTCUSDT', "5m"]
}
await conn.send(json.dumps(param))
res = await conn.recv()
print(json.loads(res))

I get this message:
{'error': {'code': 1, 'message': 'invalid argument'}, 'result': None, 'id': 1}

I don't have any problem with "depth.subscribe" method and it works good.

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

3 participants