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 Level 2 Orderbook
  • Copy & Paste Code
  • Response Object
  • Response Attributes

Was this helpful?

  1. Resources
  2. Deprecated
  3. Crypto APIs /v1 - REST APIs

Order Books

Get order books returns a full order book for a crypto pair from an exchange.

Get Level 2 Orderbook

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

Returns a snapshot of the recent level 2 orderbook for a crypto pair on an exchange.

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

apiKey*

string

Your Abyiss API Key

{
    "exchange":"coinbasepro",
    "market":"BTC/USD",
    "nonce":14601360013,
    "bids":
    [
        [
            61947.91,
            1.48088
        ],
        [
            61947.9,
            0.5
        ],
        [
            61944.07,
            0.44094
        ]
    ],
    "asks":
    [
        [
            61947.92,
            2.28573
        ],
        [
            61952.89,
            0.11214
        ],
        [
            61952.9,
            0.50224
        ]
    ]
}
{
    "Unauthorized": "Invaild API Key"
}

Copy & Paste Code

curl -H "apiKey: API KEY" https://api.abyiss.com/v1/coinbasepro/BTC-USD/orders?apiKey=*
from Abyiss import Abyiss

apiKey = "YOUR API KEY" 
client = Abyiss.Client(apiKey)

orderbook = client.orderBook("coinbasepro", "BTC-USDT")

print(orderBook)
fetch("https://api.abyiss.com/v1/coinbasepro/BTC-USD/orders?apiKey=*")
  .then(response => response.json())
  .then(data => console.log(data))
require('axios')
  .get("https://api.abyiss.com/v1/coinbasepro/BTC-USD/orders?apiKey=*")
  .then(response => console.log(response))
require 'net/http'
uri = URI("https://api.abyiss.com/v1/coinbasepro/BTC-USD/orders?apiKey=*")
puts Net::HTTP.get(uri)

Response Object

{
    "exchange":"coinbasepro",
    "market":"BTC/USD",
    "nonce":14601360013,
    "bids":
    [
        [
            61947.91,
            1.48088
        ],
        [
            61947.9,
            0.5
        ],
        [
            61944.07,
            0.44094
        ]
    ],
    "asks":
    [
        [
            61947.92,
            2.28573
        ],
        [
            61952.89,
            0.11214
        ],
        [
            61952.9,
            0.50224
        ]
    ]
}

Response Attributes

Attribute Name
Data Type
Description

exchange

string

The exchange id the order book is from.

market

string

The crypto pair the order book is about.

nonce

integer

The serial unique identifier of the order book on the exchange.

bids

array

Arrays of bids in the market [[float, float], [float, float]]

asks

array

Arrays of asks in the market [[float, float], [float, float]]

PreviousSnapshotNextLiquidity

Last updated 1 year ago

Was this helpful?

Example URL:

https://api.abyiss.com/v1/coinbasepro/BTC-USD/orders?apiKey=