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

Can't get ticket's price #16

Open
justmike1 opened this issue Nov 2, 2021 · 1 comment
Open

Can't get ticket's price #16

justmike1 opened this issue Nov 2, 2021 · 1 comment

Comments

@justmike1
Copy link

justmike1 commented Nov 2, 2021

I am trying to get pair BTC USDT and SHX USDT from API
https://www.bitrue.com/api/v1/ticket/price, replaced ticket with BTCUSDT and few other variations without success, can someone forward me a full example of an API with tocken price?

edit: my bad the syntax was wrong I am new to this (needed to add ?symbol=xxx)

@Yoruichi
Copy link
Contributor

Yoruichi commented Mar 1, 2022

try to use domain: https://openapi.bitrue.com and you should get data like :
[
{
"symbol": "BTCUSDT",
"priceChange": "5428.39",
"priceChangePercent": "14.2600",
"weightedAvgPrice": null,
"prevClosePrice": null,
"lastPrice": "43469.82",
"lastQty": null,
"bidPrice": "43465.17",
"askPrice": "43475.20",
"openPrice": "38041.43",
"highPrice": "44213.42",
"lowPrice": "37903.29",
"volume": "377569610.01545300000000000000000000000000",
"quoteVolume": "377569610.01545300000000000000000000000000",
"openTime": 0,
"closeTime": 0,
"firstId": 0,
"lastId": 0,
"count": 377569610.01545300000000000000000000000000
}
]

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