Liquid API
  • Introduction
  • Version History
  • Rate Limiting
  • Authentication
  • Response Data
  • Errors
  • Pagination
  • Public Rest API
    • Product Data
    • Loan Book
    • Fees
  • Private REST API
    • Get Orders
    • Create Orders
    • Edit Orders
    • Cancel Orders
    • Executions
    • Transactions
    • Trading
    • Fiat
    • Crypto
    • Loans
    • Fee Tier
    • Accounts
  • Websocket (Liquid Tap)
    • Introduction
    • Authentication
    • Public Channels
    • Private Channels
    • Ping Pong
  • OAuth
    • OAuth
Powered by GitBook
On this page

Was this helpful?

  1. Public Rest API

Loan Book

To obtain the current interest rates (for margin trading). To know what margin pairs are supported for trading, please use GET /products and refer to "margin_enabled" true or false.

Rates and Amount

GET https://api.liquid.com/ir_ladders/{currency}

To obtain the current interest rates (for margin trading). To know what margin pairs are supported for trading, please use GET /products and refer to "margin_enabled" true or false.

Path Parameters

Name
Type
Description

currency

string

A crypto currency i.e. BTC, XRP, ETH. Currency symbol case sensitive.

Example: https://api.liquid.com/ir_ladders/BTC

{
  "bids": [
    [
      "0.00010",
      "0.99874"
    ],
    [
      "0.00015",
      "0.11493"
    ],
    [
      "0.00016",
      "2.71685"
    ],
    [
      "0.00017",
      "3.01261"
    ],
    [
      "0.00018",
      "1.60836"
    ],
    [
      "0.00020",
      "14.97941"
    ],
    [
      "0.00021",
      "1.77672"
    ],
    [
      "0.00022",
      "1.00116"
    ],
    [
      "0.00025",
      "0.62344"
    ],
    [
      "0.00038",
      "0.21090"
    ],
    [
      "0.00040",
      "14.95000"
    ],
    [
      "0.00042",
      "0.00002"
    ],
    [
      "0.00043",
      "2.00000"
    ],
    [
      "0.00044",
      "5.38390"
    ],
    [
      "0.00045",
      "282.27096"
    ],
    [
      "0.00050",
      "204.40266"
    ],
    [
      "0.00060",
      "205.00000"
    ],
    [
      "0.00065",
      "250.00000"
    ],
    [
      "0.00070",
      "343.99834"
    ],
    [
      "0.00075",
      "450.00000"
    ],
    [
      "0.00080",
      "500.00000"
    ],
    [
      "0.00090",
      "600.00000"
    ],
    [
      "0.00100",
      "1000.00000"
    ],
    [
      "0.00150",
      "2500.00000"
    ],
    [
      "0.00200",
      "5000.00000"
    ]
  ],
  "asks": [],
  "timestamp": "1598874962.808"
}
// URL: https://api.liquid.com/ir_ladders/btc
{
    "message": "IR ladder not found"
}
PreviousProduct DataNextFees

Last updated 3 years ago

Was this helpful?