Skip to content

Dipcoin Perpetual API Documentation

Welcome to Dipcoin Perpetual API Documentation!

This is the official documentation for Dipcoin Perpetual API. We will continuously update features, please check regularly.

Product Documentation

For detailed product information, features, and usage guides, please refer to the Dipcoin Product Documentation.

TypeScript SDK

For the TypeScript SDK implementation and examples, see dipcoin-perp-client-ts on GitHub.

Python SDK (community-maintained)

For Python, see the community-maintained client dipcoin-perp-client-python (not an official Dipcoin SDK).

API Overview

Dipcoin Perpetual API provides comprehensive perpetual contract trading functionality, including:

  • Authentication Service: Generate JWT Token through wallet signature for identity verification
  • Market Data: Get trading pair information, prices, order books, K-line data, etc.
  • Trading Functions: Place orders, cancel orders, query orders, positions, account information, etc.

Quick Start

  1. Authentication: Use wallet signature to get JWT Token
  2. Query Market Data: Get trading pair list, prices, etc.
  3. Place Orders: Use JWT Token to place and cancel orders

API Services

Authentication Service (Gateway)

  • Provides JWT Token generation service
  • Supports Sui wallet signature verification

Market Data Service (Market API)

  • Trading pair information queries
  • Real-time prices and order books
  • K-line data
  • Notices and announcements

Trading Service (Trade API)

  • Place and cancel orders
  • Order and position queries
  • Account information queries
  • History record queries
  • Leverage adjustment

Important Notes

Important

  • All API responses are in JSON format
  • All times and timestamps are UNIX time (milliseconds)
  • Private endpoints must send Authorization: Bearer <token> where <token> is the JWT in data.token from a successful /api/authorize response
  • Private endpoints must also send X-Wallet-Address: <address> — the wallet address that completed the sign-in (should match the address used for authorize signing)
  • It is recommended to use HTTPS in production environments

Get Help

If you have any questions, please contact technical support by email [email protected] or join our Telegram group.