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
  • How It Works
  • Historical Data
  • Response Object

Was this helpful?

  1. Crypto API
  2. References

Historical Data

How to get centralized exchanges historical data and information.

PreviousSupported ExchangesNextPagination

Last updated 3 months ago

Was this helpful?

Historical price trends can indicate the future direction of a cryptocurrency

Historical data provides several years of daily historical crypto prices, volumes, trades, and aggregates for each cryptocurrency.

Historical data is exchange specific, so some exchanges provide more historical data than others. If you want to save large amounts of historical data, please .

How It Works

Historical data is accessible on the and market data endpoints.

To access historical data, use the since parameter. The since parameter accepts a Unix timestamp from where you want the data to start.

To help convert Unix timestamps we use .

Parameter
Data Type
Description

since

Int

Unix Timestamp from where you want the time to start.

Historical Data

GET https://api.abyiss.com/v1/{exchange}/{market}/trades?since={Unix Timestamp}

Returns an object with historical trade data.

Path Parameters

Name
Type
Description

exchange*

string

Unique exchange identifier used by Abyiss.

market*

string

Unique Crypto Pair identifier used by the exchange.

Query Parameters

Name
Type
Description

since*

int

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

limit

int

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

apiKey*

string

Your Abyiss API Key

{
    "exchange": "binance",
    "market": "BTC/USDT",
    "trades": [
        {
            "id": "2214",
            "timestamp": "1503000000087",
            "price": 4307.56,
            "size": 3.789232,
            "cost": 16322.344193920002,
            "side": "buy"
        },
        {
            "id": "2215",
            "timestamp": "1503000038104",
            "price": 4325.23,
            "size": 0.229059,
            "cost": 990.73285857,
            "side": "buy"
        },
}
{
    "Unauthorized": "Invaild API Key"
}

Response Object

{
    "exchange": "binance",
    "market": "BTC/USDT",
    "trades": [
        {
        "id": "2214",
        "timestamp": "1503000000087",
        "price": 4307.56,
        "size": 3.789232,
        "cost": 16322.344193920002,
        "side": "buy"
        },
}
{
    "exchange": "binance",
    "market": "BTC/USDT",
    "aggregates": [
        {
        "t": 1503000000000,
        "o": 4307.56,
        "h": 4354.84,
        "l": 4258.56,
        "c": 4346.74,
        "v": 48.975472
        },
}

Trades Example URL:

Aggregates Example URL:

contact us here
trades
aggregates
https://www.unixtimestamp.com
https://api.abyiss.com/v2/cex/binance/btc-usdt/trades?since=1503000000000&limit=100&apiKey=
https://api.abyiss.com/v2/cex/binance/btc-usdt/aggregates/1h?since=1503000000000&limit=100&apiKey=