Coin Buy Sell
Overview
The Coin Buy/Sell API provides buy and sell transaction statistics for a given coin over a specified time duration. This includes transaction counts, volume, and unique sender information for both buy and sell activities.
Endpoint
GET /api/v1/partner/coin-buy-sell
Parameters
coin_id
String
Yes
The coin identifier.
duration
String
Yes
The time duration for the statistics. Choices are: "30m" (30 mins), "1H" (1 hour), "4H" (4 hours), "6H" (6 hours), "1d" (1 day), "1w" (1 week).
Headers
x-api-key
No
API key for authentication.
Request Example
curl --location 'https://api.noodles.fi/api/v1/partner/coin-buy-sell?coin_id=0x027792d9fed7f9844eb4839566001bb6f6cb4804f66aa2da6fe1ee242d896881%3A%3Acoin%3A%3ACOIN&duration=1d' \
--header 'Accept-Encoding: application/json' \
--header 'x-api-key: YOUR_API_KEY'
Response Format
{
"code": 200,
"message": "OK",
"data": {
"buy": {
"tx": 7692,
"vol": 2956125.57,
"sender": 5204
},
"sell": {
"tx": 7316,
"vol": 2983649.37,
"sender": 2717
},
"unique_sender": 6291,
"unique_tx": 15000
}
}
Response Fields
code
number
HTTP status code (200 for success).
message
string
Status message.
data
object
Buy/sell statistics object.
Buy/Sell Statistics Object
buy
object
Buy transaction statistics.
sell
object
Sell transaction statistics.
unique_sender
number
Total number of unique senders/wallets across both buy and sell transactions.
unique_tx
number
Total number of unique transactions across both buy and sell activities.
Transaction Statistics Object (Buy/Sell)
tx
number
Number of transactions.
vol
number
Total volume.
sender
number
Number of unique senders.
See also: Environment Setup
Last updated