amir-the-h / okex

Golang API wrapper of OkEX
Apache License 2.0
100 stars 102 forks source link

When the method is post, the data can definitely be passed in #14

Closed LINJINTIANDE closed 2 years ago

LINJINTIANDE commented 2 years ago

If it is an array, this can only go back to the first data(https://github.com/amir-the-h/okex/blob/eb593335af79923723db716bf2d76b92ba4fdcf6/api/rest/client.go#L81) If it is an array, okex.S2M(req) will also be empty when parsing

github-actions[bot] commented 2 years ago

Message that will be displayed on users first issue

amir-the-h commented 2 years ago

Is it an assumption or a fact? Do you have any failures? If yes please provide. Hence I'll close the issue and you can re-open it when you had more information or a solution.

LINJINTIANDE commented 2 years ago

Run this method, the api provides an array and you provide a structure, resulting in an error(https://github.com/amir-the-h/okex/blob/eb593335af79923723db716bf2d76b92ba4fdcf6/api/rest/trade.go#L287

amir-the-h commented 2 years ago

As I replied earlier I would really appreciate it if you can provide some examples of run time and errors. Otherwise, I can not follow up on this issue by providing theories.