Skip to content

Commit e4d0240

Browse files
committed
stellar tradedocs update
1 parent 6359250 commit e4d0240

1 file changed

Lines changed: 99 additions & 5 deletions

File tree

docs/Examples/stellar/stellar-tradeeffects-api.md

Lines changed: 99 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,107 @@
1-
# Stellar Trade Effects API
1+
---
2+
title: Stellar Trades API
3+
description: Access comprehensive Stellar Trade API with Effects and Price
4+
slug: /blockchain/Stellar/trade-effects-api
5+
keywords:
6+
- Stellar Trade Effects API
7+
- Stellar DEX API
8+
- Stellar trading API
9+
- Stellar blockchain API
10+
- Stellar GraphQL API
11+
- Stellar trade data
12+
- Stellar token swaps
13+
- Stellar DEX trades
14+
- Stellar trading analytics
15+
- Stellar API documentation
16+
- Stellar blockchain data API
17+
- Stellar asset trading
18+
- Stellar orderbook API
19+
- Stellar liquidity pools
20+
- free stellar api
21+
- stellar data api
22+
---
223

3-
A successful trade operation will yield zero or more effects. These effects represent specific changes that occur in the ledger.
24+
# Stellar Trades API
425

526

6-
## Latest Trade Effects on Stellar
27+
## What are Stellar Trade Effects?
728

8-
You can run the query [here](https://ide.bitquery.io/Latest-Trade-Effects-on-Stellar)
29+
A successful trade operation on the Stellar network will yield zero or more effects. These effects represent specific changes that occur in the ledger as a result of trading activities. Trade effects capture detailed information about asset exchanges.
30+
31+
## Getting Started
32+
33+
New to Bitquery? Here's how to get started:
34+
35+
1. **[Create a free account](https://ide.bitquery.io/)** - Get instant access to our GraphQL IDE
36+
2. **[Generate your API key](https://docs.bitquery.io/docs/authorisation/how-to-generate/)** - Required for API access
37+
3. **[Run your first query](https://docs.bitquery.io/docs/start/first-query/)** - Learn the basics in 5 minutes
38+
4. **[Explore examples](https://docs.bitquery.io/docs/start/starter-queries/)** - Copy-paste ready queries
39+
40+
Need help crafting a query or subscription? Message us on [support](https://t.me/Bloxy_info).
941

42+
### Trades of a Token on Stellar
43+
44+
This query retrieves trade effects for a specific token on the Stellar network. The `priceAmount` field represents the sell asset per buy asset ratio, providing you with accurate pricing information for each trade.
45+
46+
**Key Features:**
47+
- Filter by buy currency name
48+
- Time range filtering
49+
- USD value conversions for both buy and sell amounts
50+
- Complete currency and issuer information
51+
- Transaction context with block and hash
52+
53+
[Run Query](https://ide.bitquery.io/AQUA-Stellar-Trades)
54+
55+
```graphql
56+
query {
57+
stellar(network: stellar) {
58+
tradeEffects(
59+
options: { desc: "block", asc: "transaction.index", limit: 10, offset: 0 }
60+
time: { since: "2025-11-24T01:05:00.000Z", till: "2025-11-25T13:35:00.999Z" }
61+
buyCurrencyName: { is: "AQUA [GBNZILSTVQZ4R7IKQDGHYGY2QXL5QOFJYQMXPKWRRM5PAV7Y4M67AQUA]" }
62+
) {
63+
timestamp {
64+
time(format: "%Y-%m-%d %H:%M:%S")
65+
}
66+
block
67+
transaction {
68+
hash
69+
index
70+
}
71+
sellAmount
72+
sell_amount_usd: sellAmount(in: USD)
73+
sellCurrency {
74+
symbol
75+
name
76+
}
77+
sellIssuer {
78+
address
79+
annotation
80+
}
81+
buyAmount
82+
priceAmount
83+
buy_amount_usd: buyAmount(in: USD)
84+
buyCurrency {
85+
symbol
86+
name
87+
}
88+
buyIssuer {
89+
address
90+
annotation
91+
}
92+
}
93+
}
94+
}
1095
```
96+
97+
### Latest Trade Effects on Stellar
98+
99+
This query retrieves the most recent trade effects on the Stellar network, providing comprehensive information about each trade including seller addresses, operation details, and complete currency information.
100+
101+
102+
You can run the query [here](https://ide.bitquery.io/Latest-Trade-Effects-on-Stellar)
103+
104+
```graphql
11105
query MyQuery {
12106
stellar(network: stellar) {
13107
tradeEffects(
@@ -48,5 +142,5 @@ query MyQuery {
48142
}
49143
}
50144
}
145+
```
51146

52-
```

0 commit comments

Comments
 (0)