Skip to main content

Futures Trading API

Welcome to the j2coin.com Futures Trading API documentation!

This document provides all REST API and WebSocket interfaces related to futures trading, including:

REST API

  • Account Management: Query account information, query account change logs, query asset transfer records, transfer between main/futures accounts, etc.
  • Order Trading: Place orders, cancel orders, modify orders, query order details, query open orders, query order history, batch cancel orders, cancel all orders for a symbol, etc.
  • Trade Queries: Query my trade records, query order transaction details, etc.
  • Position Management: Query current positions, query position history, query position details, etc.
  • Funding Rate: Query funding rate history
  • Risk Configuration: Query user risk configuration, query symbol risk configuration, set leverage, set margin mode, set position mode, query risk limits, set risk limit level, etc.
  • Market Data: Query trading pair list, query trading pair details, query ticker quotes, query order book, query K-line data, batch query K-line data, query mark price list, query market trades, query trading pair boards, query trading pair defaults, query trading pair tags, etc.
  • Trading Precision: Query price/quantity precision information for trading pairs
  • Bot Trading: Batch place orders, batch cancel orders, etc.

WebSocket

  • Public Channels: Ticker quotes, K-line data (supports 1s period), book ticker (best bid/ask), order book (depth snapshot), order book updates (incremental depth), mark price (supports 3s/1s frequency)
  • Private Channels: Order updates, balance changes, position updates (real-time push)

Quick Start

  1. Apply for API Key: User Center to obtain appkey and secretKey
  2. Read Signature Specification: Understand how to sign requests
  3. Configure Rate Limiting: Understand interface call frequency limits
  4. Start calling API interfaces

Notes

  • All futures interfaces use https://open-api.j2coin.com as the base URL, with paths starting with /fapi/v1
  • Request method: GET parameters go in query params, POST parameters go in request body
  • Request header: Content-Type=application/json
  • Private interfaces require signature authentication
  • All timestamps are in milliseconds
  • Futures use numeric enumerations (see Public Enumerations)

Navigate using the left sidebar to view specific interface documentation.