Developers
Buys feed
The buys feed lists every trade on Gully Core as a buy or a sell of one token, with its dollar value. Use it for a live trade list, an alert or a bot. No key is needed.
Quick tour
- Pick the chain. Its number is in Chains.
- Ask for a token's trades:
GET /v1/chains/<chainId>/tokens/<address>/buys. - To follow live, send the
aftervalue from the last answer. You get only newer trades, oldest first. - To page back in time, send the
cursorfrom the answer. You get older trades, newest first.
The three feeds
GET /v1/chains/<chainId>/buys?tokens=<a,b>&pools=<id,...>&side=buy|sell|all
GET /v1/chains/<chainId>/tokens/<address>/buys
GET /v1/chains/<chainId>/pools/<poolId>/buysOptions: side (default all), since (a unix time), limit, and after or cursor as above.
What a row says
- Which token, which side (buy or sell), the token amount and the amount of the quote coin.
- The dollar value, when the quote coin has a price. Without a price it says why.
- The buyer: the wallet that sent the transaction, or the router when that is not known.
The amounts are the pool's own. Launch fees and creator tax taken in the quote coin are not inside them: a buyer paid that on top.
Good to know
- A swap between two quote coins (for example ETH to USDC) is not a buy of anything and is left out.
- Test tokens never show in the chain-wide feed.
- Live polls are cached for 5 seconds. Poll once a second at most.
- Fields are added, never renamed or removed.
Wrong or missing? Tell us at @gullycore.