⚙️
1Konto v1.0 API Docs
  • Welcome!
  • Reference
    • API Reference
    • Service
      • Service Information
      • Service Time
    • Authentication
      • Login and Authentication
    • Market Data
      • Get Top of Book
      • Get Order Book
    • Accounting
      • Get Account
      • Get Account Credit
      • Get Transactions
      • Transfers Instructions
        • Get Deposit Instructions
        • Get Withdraw Instructions
      • Withdraw Requests
        • Request Withdraw - Fiat
        • Request Withdraw - Blockchain
        • Querying for Withdraw Requests
    • Orders
      • Available Asset Pairs
      • Request Indicative Price
      • Market Order
      • Limit Order
      • RFQ - Request for Quote
        • Request Quote
        • Accept Quote
      • Querying for Orders
      • Get Order
Powered by GitBook
On this page
  • Getting Order Book
  • Example
  1. Reference
  2. Market Data

Get Order Book

requires auth

Getting Order Book

Endpoint to get the order book for a specific pair and account.

GET /api/v1/routing/account/{accountId}/book

Path Parameters:

Path
Type
Description

accountId*

string

your account ID

Query Parameters:

Body
Type
Description

assetPair*

string

Symbol for pair asset. (XYZ/ABC)

levels

integer <int32>

how many levels to show bids and asks. Default: 25

pricePrecision

number <decimal>

sizePrecision

number <decimal>

Example

GET api/v1/routing/account/myAccountID/book?assetPair=ETH/BTC&levels=10
// Successful Response body 
{
  "bids": [
    [
      0.05308362,
      11.12976403
    ],
    [
      0.05307364,
      20.10308321
    ],
    [
      0.05306366,
      3.85743997
    ],
    [
      0.053063,
      35.37662653
    ],
    [
      0.05305368,
      14.64385913
    ],
    [
      0.05305303,
      47.53631938
    ],
    [
      0.0530437,
      7.7172166
    ],
    [
      0.05304305,
      3.98311827
    ],
    [
      0.05303372,
      22.43380931
    ],
    [
      0.05303307,
      47.42359597
    ]
  ],
  "asks": [
    [
      0.05331642,
      4.80279441
    ],
    [
      0.05332644,
      20.22694611
    ],
    [
      0.05332706,
      0.07064458
    ],
    [
      0.05333527,
      1.58678185
    ],
    [
      0.05333646,
      3.22689206
    ],
    [
      0.05333708,
      8.41052219
    ],
    [
      0.05334648,
      2.7007984
    ],
    [
      0.05334711,
      7.76220491
    ],
    [
      0.0533565,
      32.0069393
    ],
    [
      0.05335713,
      32.68721478
    ]
  ],
  "status": "ok",
  "httpStatusCode": 200
}

PreviousGet Top of BookNextAccounting

Last updated 1 year ago

Page cover image