Skip to content

Commit ea96550

Browse files
Merge pull request #165 from Divyn/main
Syntax fix
2 parents 3f2b043 + 8fc3ae3 commit ea96550

File tree

1 file changed

+27
-42
lines changed

1 file changed

+27
-42
lines changed

docs/trading/crypto-price-api/introduction.mdx

Lines changed: 27 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -2,34 +2,29 @@
22
title: "Crypto Price API – Real-Time Token Data, Charts & OHLC | Bitquery"
33
description: "Access real-time crypto prices, OHLC, moving averages & volume across EVM, Solana, Tron & more. Ultra-low latency for trading bots, DeFi & charting apps."
44
keywords:
5-
[
6-
"crypto price API",
7-
"cryptocurrency price api",
8-
"crypto prices api",
9-
"free crypto price api",
10-
"cryptocurrency price data",
11-
"real-time price feed",
12-
"OHLC data",
13-
"multi-chain price API",
14-
"blockchain price data",
15-
"trading API",
16-
"DeFi price feed",
17-
"crypto market data",
18-
"price index",
19-
"moving averages",
20-
"volume data",
21-
"trading bots",
22-
"charting API",
23-
"EVM price data",
24-
"Solana price API",
25-
"Tron price data",
26-
"cross-chain prices",
27-
"aggregated price data",
28-
"Co"
29-
"low latency price feed",
30-
]
5+
- "crypto price API"
6+
- "cryptocurrency price data"
7+
- "real-time price feed"
8+
- "OHLC data"
9+
- "multi-chain price API"
10+
- "blockchain price data"
11+
- "trading API"
12+
- "DeFi price feed"
13+
- "crypto market data"
14+
- "price index"
15+
- "moving averages"
16+
- "volume data"
17+
- "trading bots"
18+
- "charting API"
19+
- "EVM price data"
20+
- "Solana price API"
21+
- "Tron price data"
22+
- "cross-chain prices"
23+
- "aggregated price data"
24+
- "low latency price feed"
3125
---
3226

27+
3328
# Crypto Price API – Real-Time Token Data, Charts & OHLC
3429

3530
Bitquery provides **Crypto Price APIs and Streams** via GraphQL and [Kafka](https://github.com/bitquery/streaming_protobuf/blob/feature/trading/market/price_index.proto). This **cryptocurrency price api** delivers comprehensive pricing data across multiple blockchains.
@@ -58,8 +53,6 @@ While you can access the aggregated price for a single trading pair, the Price I
5853
* Tron
5954
* Optimism
6055

61-
62-
6356
## Available Endpoints
6457

6558
- **[Streaming Endpoint](https://ide.bitquery.io/?endpoint=https://streaming.bitquery.io/graphql)**
@@ -71,7 +64,7 @@ While you can access the aggregated price for a single trading pair, the Price I
7164

7265
> Note: A `Volume: {Usd: {gt: 5}}` filter is applied to remove extreme outliers; the price stream already pre-filters outliers—this is an additional check.
7366
74-
```
67+
```graphql
7568
subscription {
7669
Trading {
7770
Tokens(where: {Interval: {Time: {Duration: {eq: 1}}}, Volume: {Usd: {gt: 5}}}) {
@@ -81,7 +74,6 @@ subscription {
8174
IsNative
8275
Name
8376
Network
84-
Name
8577
Symbol
8678
TokenId
8779
}
@@ -211,8 +203,7 @@ Currencies are representation of all tokens on various chains supported in Crypt
211203

212204
> Note: We include `Volume: {Usd: {gt: 5}}` to further remove extreme outliers; the stream already pre-filters outliers—this is an additional check.
213205
214-
```
215-
206+
```graphql
216207
{
217208
Trading {
218209
Currencies(
@@ -239,7 +230,6 @@ Currencies are representation of all tokens on various chains supported in Crypt
239230
WeightedSimpleMoving
240231
SimpleMoving
241232
ExponentialMoving
242-
243233
}
244234
}
245235
Currency {
@@ -256,7 +246,6 @@ Currencies are representation of all tokens on various chains supported in Crypt
256246
Start
257247
End
258248
}
259-
260249
}
261250
}
262251
}
@@ -274,7 +263,7 @@ Let's say you don't want a chain agnostic view, but want to focus on a particula
274263

275264
> Note: We include `Volume: {Usd: {gt: 5}}` to further remove extreme outliers; the stream already pre-filters outliers—this is an additional check.
276265
277-
```
266+
```graphql
278267
{
279268
Trading {
280269
Tokens(
@@ -288,7 +277,6 @@ Let's say you don't want a chain agnostic view, but want to focus on a particula
288277
IsNative
289278
Name
290279
Network
291-
Name
292280
Symbol
293281
TokenId
294282
}
@@ -335,7 +323,7 @@ We filter for specific tokens using the token `Address` and `Network`. If you ne
335323

336324
> Note: We include `Volume: {Usd: {gt: 5}}` to further remove extreme outliers; the stream already pre-filters outliers—this is an additional check.
337325
338-
```
326+
```graphql
339327
subscription {
340328
Trading {
341329
Tokens(where: {Token: {Network: {is: "Solana"}}, Volume: {Usd: {gt: 5}}}) {
@@ -345,10 +333,8 @@ subscription {
345333
IsNative
346334
Name
347335
Network
348-
Name
349336
Symbol
350337
TokenId
351-
Network
352338
}
353339
Block {
354340
Date
@@ -387,7 +373,6 @@ subscription {
387373
}
388374
}
389375

390-
391376
```
392377

393378
## Pairs
@@ -399,7 +384,7 @@ We will breakdown in detail how base token and Quote are chosen in the next sect
399384
400385
> Note: We include `Volume: {Usd: {gt: 5}}` to further remove extreme outliers; the stream already pre-filters outliers—this is an additional check.
401386
402-
```
387+
```graphql
403388
subscription {
404389
Trading {
405390
Pairs(
@@ -469,7 +454,7 @@ Unlike DEXtrades APIs, the intervals here are fixed and cannot be arbitrary.
469454

470455
The following durations (in seconds) are supported for querying or streaming historical and real-time data, unlike DEX APIs, these intervals are fixed, other values are not supported.
471456

472-
`1, 3, 5, 10, 30, 60, 300, 900, 1800, 3600`
457+
`1, 3, 5, 10, 30, 60, 300, 900, 1800, 3600`
473458

474459
### Supported Volume Aggregation Levels
475460

0 commit comments

Comments
 (0)