Trades

Get last aggregate returns the latest aggregate bar for a crypto pair.

Get Trades

GET https://api.abyiss.com/v1/{exchange}/{market}/trades

Returns an object with recent trades for a crypto pair on an exchange.

Path Parameters

NameTypeDescription

exchange*

string

Unique exchange identifier used by Abyiss.

market*

string

Unique Crypto Pair identifier used by the exchange.

Query Parameters

NameTypeDescription

apiKey*

string

Your Abyiss API Key

limit

string

Number of results per request. Maximum 50,000. (default 200)

since

number

Unix Timestamp from where you want the data to start. (Historical Data)

{
    "exchange": "coinbasepro",
    "market": "BTC/USD",
    "trades": [
        {
            "id": "279352169",
            "timestamp": "1644524462830",
            "price": 44322.55,
            "size": 0.02209576,
            "cost": 979.340427388,
            "side": "buy"
        },
        {
            "id": "279352170",
            "timestamp": "1644524463216",
            "price": 44322.55,
            "size": 0.00030296,
            "cost": 13.427959748000001,
            "side": "buy"
        },
    ]
}

Copy & Paste Code

curl -H "apiKey: API KEY" https://api.abyiss.com/v1/coinbasepro/BTC-USD/trades

Response Object

Example URL: https://api.abyiss.com/v1/coinbasepro/BTC-USD/trades?apiKey=

{
    "exchange": "coinbasepro",
    "market": "BTC/USD",
    "trades": [
        {
            "id": "279352169",
            "timestamp": "1644524462830",
            "price": 44322.55,
            "size": 0.02209576,
            "cost": 979.340427388,
            "side": "buy"
        },
    ]
}

Response Attributes

Attribute NameData TypeDescription

exchange

string

The exchange id the trade occurred on.

market

string

The crypto pair that was traded.

trades

array

An array of trades

id

string

The exchange specific unique id of the trade.

timestamp

string

The Unix timestamp that trade was executed.

price

float

The quote currency price of the market.

size

float

The quantity traded.

cost

float

The quote cost: (size * price).

side

string

Whether the trade was a buy or sell.

Last updated