Abyiss
HomeAPI KeyContact Us
  • Free API Key
  • Introduction
    • Welcome
    • Getting Started
    • Reading Documentation
    • Client Libraries
    • API Architecture
      • API Keys - Authentication
      • API Server URL
      • Requests & Error Codes
      • Rate Limits
  • Octane API
    • Introduction
    • Integration Guides
      • Crypto Off Ramp APIs - Business Guide
    • References
      • Transaction Types
      • Payment Methods
      • Transaction Fees
      • Partner Fees
    • APIs
      • Transactions
      • Assets
      • Payment Methods
        • Bank Accounts
        • Wallets
      • Subaccounts
      • KYC (Know Your Customer)
  • Crypto API
    • Introduction
    • References
      • Supported Exchanges
      • Historical Data
      • Pagination
      • Return Types
    • REST APIs
      • Exchanges
      • Exchanges Count
      • Exchange Data
      • Exchange Status
      • Exchange Markets
      • Market Details
      • Current Price
      • Aggregates (Bars)
      • Last Aggregate
      • Trades
      • Last Trade
      • Snapshot
      • Order Books
      • Liquidity
      • Whales
    • WebSockets
      • Request Access
  • Blockchain API
    • Introduction
    • References
      • Supported Exchanges
      • Historical Data
      • Pagination
      • Query Parameters
      • Error Handling
    • REST APIs
      • Exchanges
      • Blockchains
      • Blocks
      • Exchange Data
      • Tokens
      • Token Data
      • Token Aggregates (Bars)
      • Token Trades
      • Pools
      • Pool Data
      • Pool Aggregates (Bars)
      • Pool Trades
      • Token Search
    • WebSockets
      • Request Access
  • Alerts API
    • Request Access
  • Changes
    • Changelog
    • Upcoming Changes
  • Resources
    • Glossary
    • Social Media
    • Legal Guide
    • White Paper
    • Deprecated
      • Crypto APIs /v1 - REST APIs
        • Exchanges
        • Exchanges Count
        • Exchange Data
        • Exchange Status
        • Exchange Markets
        • Market Details
        • Current Price
        • Aggregates (Bars)
        • Last Aggregate
        • Trades
        • Last Trade
        • Snapshot
        • Order Books
        • Liquidity
        • Whales
      • Blockchain APIs /v1 - REST APIs
        • Exchanges
        • Blockchains
        • Blocks
        • Exchange Data
        • Tokens
        • Token Data
        • Token Aggregates (Bars)
        • Token Trades
        • Pools
        • Pool Data
        • Pool Aggregates (Bars)
        • Pool Trades
        • Token Search
Powered by GitBook
On this page
  • Get Pool Trades
  • Copy & Paste Code
  • Response Object
  • Response Attributes

Was this helpful?

  1. Blockchain API
  2. REST APIs

Pool Trades

Get pool trades returns real-time or historical transactions for a pool.

Get Pool Trades

GET https://api.abyiss.com/v2/dex/{exchange}/{blockchain}/pool/{pool}/trades

Returns an object of real-time or historical transactions for a pool on a decentralized exchange.

Path Parameters

Name
Type
Description

exchange*

string

Decentralized exchange Id

blockchain*

string

Blockchain that supports the decentralized exchange.

pool*

string

Pool contract address.

Query Parameters

Name
Type
Description

apiKey*

string

Your Abyiss API Key.

limit

int

Number of results per request. Maximum 1,0000 (default 100).

orderBy

string

Sort the returned data by any field in the API response, such as id, name, symbol, volumeUSD and more.

orderDirection

string

asc or desc return the results sorted by that field in either ascending or descending order.

skip

int

Number of results to skip per request.

swap

boolean

Set to false to not return swap array.

mint

boolean

Set to false to not return mint array.

burn

boolean

Set to false to not return burn array.

to

int

The end of the aggregate time window for historical data. Unix timestamp in milliseconds.

from

int

The start of the aggregate time window for historical data. Unix timestamp in milliseconds.

block

int

The blockchain block number for historical data.

{
    "poolAddress": "0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640",
    "burns": [
        {
            "id": "0x7258050fbb90fa41f73505c552a973113ffc87c67ddd19b37dff7adb6bded18e#3",
            "amount0": "2588.187276",
            "amount1": "0.931484249884373906",
            "amountUSD": "5856.678575459276743008030298541704",
            "logIndex": "122",
            "origin": "0xb2ef52180d1e5f4835f4e343251286fa84743456",
            "timestamp": "1620253661",
            "amount": "310565794229424",
            "owner": "0xc36442b4a4522e871399cd717abdd847ab11fe88"
        }
    ],
    "mints": [
        {
            "id": "0x125e0b641d4a4b08806bf52c0c6757648c9963bcda8681e4f996f09e00d4c2cc#1",
            "amount0": "2995.507735",
            "amount1": "0.999999999871526563",
            "amountUSD": "6424.90529371289423696173129469554",
            "logIndex": "106",
            "origin": "0xb2ef52180d1e5f4835f4e343251286fa84743456",
            "timestamp": "1620250931",
            "amount": "345073104699360",
            "owner": "0xc36442b4a4522e871399cd717abdd847ab11fe88",
            "sender": "0xc36442b4a4522e871399cd717abdd847ab11fe88"
        }
    ],
    "swaps": [
        {
            "id": "0x0804ff007263a885191f23c808a9346e62d502a1fc23be82eb14052408d76ae2#2",
            "amount0": "-119.744094",
            "amount1": "0.035",
            "amountUSD": "119.2881007156144668372176276273185",
            "logIndex": "73",
            "origin": "0x4a12b86c7c0270443760fe85c7d1e6bc62f78e4e",
            "timestamp": "1620252901",
            "recipient": "0xe592427a0aece92de3edee1f18e0157c05861564",
            "sender": "0xe592427a0aece92de3edee1f18e0157c05861564",
            "sqrtPriceX96": "1358206768703179146794161129278934"
        }
    ]
}
{
    "Unauthorized": "Invaild API Key"
}

Copy & Paste Code

curl -H "apiKey: API KEY" https://api.abyiss.com/v2/dex/uniswap/ethereum/pool/0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640/trades
import urllib.request
url = "https://api.abyiss.com/v2/dex/uniswap/ethereum/pool/0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640/trades?apiKey="
print(urllib.request.urlopen(url).read())
fetch("https://api.abyiss.com/v2/dex/uniswap/ethereum/pool/0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640/trades?apiKey=")
  .then(data => console.log(data))
require('axios')
  .get("https://api.abyiss.com/v2/dex/uniswap/ethereum/pool/0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640/trades?apiKey=")
  .then(response => console.log(response))
require 'net/http'
uri = URI("https://api.abyiss.com/v2/dex/uniswap/ethereum/pool/0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640/trades?apiKey=")
puts Net::HTTP.get(uri)

Response Object

{
    "poolAddress": "0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640",
    "burns": [
        {
            "id": "0x7258050fbb90fa41f73505c552a973113ffc87c67ddd19b37dff7adb6bded18e#3",
            "amount0": "2588.187276",
            "amount1": "0.931484249884373906",
            "amountUSD": "5856.678575459276743008030298541704",
            "logIndex": "122",
            "origin": "0xb2ef52180d1e5f4835f4e343251286fa84743456",
            "timestamp": "1620253661",
            "amount": "310565794229424",
            "owner": "0xc36442b4a4522e871399cd717abdd847ab11fe88"
        }
    ],
    "mints": [
        {
            "id": "0x125e0b641d4a4b08806bf52c0c6757648c9963bcda8681e4f996f09e00d4c2cc#1",
            "amount0": "2995.507735",
            "amount1": "0.999999999871526563",
            "amountUSD": "6424.90529371289423696173129469554",
            "logIndex": "106",
            "origin": "0xb2ef52180d1e5f4835f4e343251286fa84743456",
            "timestamp": "1620250931",
            "amount": "345073104699360",
            "owner": "0xc36442b4a4522e871399cd717abdd847ab11fe88",
            "sender": "0xc36442b4a4522e871399cd717abdd847ab11fe88"
        }
    ],
    "swaps": [
        {
            "id": "0x0804ff007263a885191f23c808a9346e62d502a1fc23be82eb14052408d76ae2#2",
            "amount0": "-119.744094",
            "amount1": "0.035",
            "amountUSD": "119.2881007156144668372176276273185",
            "logIndex": "73",
            "origin": "0x4a12b86c7c0270443760fe85c7d1e6bc62f78e4e",
            "timestamp": "1620252901",
            "recipient": "0xe592427a0aece92de3edee1f18e0157c05861564",
            "sender": "0xe592427a0aece92de3edee1f18e0157c05861564",
            "sqrtPriceX96": "1358206768703179146794161129278934"
        }
    ]
}

Response Attributes

Attribute Name
Data Type
Description

poolAddress

string

Contract address of the pool.

burns

object

Transaction type where tokens where burned or destroyed.

mints

object

Transaction type where tokens where minted or created.

swaps

object

Transaction type where tokens where swaped or traded.

id

string

Transaction hash + "#" + index in Transaction array

amount0

string

Amount of token 0

amount1

string

Amount of token 1

amountUSD

string

Derived amount based on available prices of tokens

logIndex

string

Position within the transactions

origin

string

Transaction origin

timestamp

string

Timestamp of the transaction.

amount

string

amount of liquidity

owner

string

owner of the position

sender

string

Sender of the transaction

recipient

string

Recipient of the transaction

sqrtPriceX96

string

The sqrt(price) of the pool after the swap, as a Q64.96

PreviousPool Aggregates (Bars)NextToken Search

Last updated 1 year ago

Was this helpful?

Example URL:

https://api.abyiss.com/v2/dex/uniswap/ethereum/pool/0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640/trades?apiKey=