1inch Orderbook API

The Orderbook API from 1inch — 2 operation(s) for orderbook.

OpenAPI Specification

one-inch-orderbook-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: 1inch Developer Portal APIs Balance Orderbook API
  description: '1inch exposes a suite of REST APIs through its Developer / Business

    portal (https://business.1inch.com/portal/documentation/overview).

    This OpenAPI document covers the most commonly used products surfaced

    in the 1inch apis.yml profile: Swap (classic aggregation), Orderbook

    (limit orders), Balance, Spot Price, Token, Portfolio, and Gas Price.

    All endpoints are versioned under their own subpath on

    `https://api.1inch.dev` and authenticate with a Bearer token issued

    from the developer portal.

    '
  version: 1.0.0
  contact:
    name: 1inch
    url: https://business.1inch.com/portal/documentation/overview
servers:
- url: https://api.1inch.dev
  description: 1inch Developer API gateway
security:
- BearerAuth: []
tags:
- name: Orderbook
paths:
  /orderbook/v4.0/{chain}/order:
    post:
      tags:
      - Orderbook
      summary: Submit a limit order
      parameters:
      - $ref: '#/components/parameters/Chain'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      responses:
        '201':
          description: Order submitted
  /orderbook/v4.0/{chain}/orders:
    get:
      tags:
      - Orderbook
      summary: List limit orders
      parameters:
      - $ref: '#/components/parameters/Chain'
      - in: query
        name: page
        schema:
          type: integer
      - in: query
        name: limit
        schema:
          type: integer
      responses:
        '200':
          description: Orders
components:
  parameters:
    Chain:
      in: path
      name: chain
      required: true
      schema:
        type: integer
      description: EVM chain ID (e.g. 1 for Ethereum, 137 for Polygon)
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: 'API key issued from https://portal.1inch.dev passed as

        `Authorization: Bearer <token>`.

        '