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

operation GetRates: decode params: query: "currencies": invalid value #12

Open
FeiFanLiang opened this issue Apr 5, 2024 · 3 comments

Comments

@FeiFanLiang
Copy link

client.rates .getRates({ tokens: ['ton'], currencies: ['ton', 'usd'] }) throw error,

@FeiFanLiang
Copy link
Author

https://tonapi.io/v2/rates?tokens=ton&currencies=ton&currencies=usd&currencies=rub but https://docs.tonconsole.com/tonapi/api-v2
But the url parameters shown in the documentation are https://tonapi.io/v2/rates?tokens=ton&currencies=ton,usd

@Ka7im
Copy link

Ka7im commented Jun 30, 2024

I had the same problem, I tried to do it like this: client.rates.getRates({ tokens: ['ton'], currencies: ['ton,usd'],})

And everything worked for me

@LukasHirt
Copy link

We're facing the same issue but with tokens. If the tokens query array includes more than one token, then the search params adds new &token=... param for every token.

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