CoinAll API: Comprehensive Guide for Traders and Developers

·

API Overview

The CoinAll API provides comprehensive access to trading market data and essential account management functions for cryptocurrency traders and developers.

Matching Engine System

Execution Prices

CoinAll's matching system prioritizes orders based on price-time priority:

Example Scenario:

  1. Buy order: 1 BTC @ $9,900 (entered first)
  2. Buy order: 2 BTC @ $10,100
  3. Buy order: 1.5 BTC @ $9,900 (entered last)

Execution sequence: Order 2 (price priority) → Order 1 (time priority) → Order 3

Key Rule: Orders execute at the maker's listed price, not the taker's order price.

Order Lifecycle

Orders progress through distinct statuses:

Spot Trading Price Limits

CoinAll implements FOK (Fill-or-Kill) price limits to prevent market anomalies:

Example: A 100 BTC market buy order would cancel if execution would move price >30% above current ask.

Contract Trading Price Limits

Dynamic price limits protect investors:

Fee Structure

Trading Fees

CoinAll uses maker-taker fee model with volume-based discounts:

Deposit/Withdrawal Fees

Server Infrastructure


Wallet Account Management

Currency List

| Currency | Name     | Deposit | Withdraw | Min Withdrawal |
|----------|----------|---------|----------|----------------|
| BTC      | Bitcoin  | Enabled | Enabled  | 0.000001 BTC   |
| ETH      | Ethereum | Enabled | Enabled  | 0.0001 ETH     |

Account Balance Query

{
  "currency": "BTC",
  "balance": "5.0",
  "holds": "3.2",
  "available": "1.8"
}

Fund Transfers

Withdrawal Process

  1. Initiate withdrawal request
  2. System verifies available balance
  3. Transaction broadcast to blockchain
  4. Completion notification

Withdrawal Limits:


Spot Trading API

Account Information

{
  "currency": "BTC",
  "balance": "2.3",
  "holds": "2.0",
  "available": "0.3"
}

Order Types

  1. Limit Orders

    • Specify exact price/quantity
    • Remain in order book until filled/canceled
  2. Market Orders

    • Execute immediately at best available price
    • Require either:

      • Exact quantity (size parameter), OR
      • Exact quote currency amount (funds parameter)

Order Management

Trade Execution

{
  "trade_id": "3245601",
  "price": "10.00000000",
  "size": "0.01000000",
  "side": "buy",
  "time": "2023-01-15T12:34:56Z"
}

Market Data API

Order Book Data

{
  "bids": [
    ["295.96", "4.39088265", 2],
    ["295.95", "12.12431578", 3]
  ],
  "asks": [
    ["295.97", "25.23542881", 12],
    ["295.98", "15.12431578", 5]
  ]
}

Ticker Information

{
  "product_id": "BTC-USDT",
  "last": "333.99",
  "best_ask": "333.98",
  "best_bid": "333.97",
  "volume_24h": "5957.11914015",
  "time": "2023-01-15T12:34:56Z"
}

Historical Trades

K-Line/Candlestick Data

Available timeframes:


FAQ Section

General Questions

Q: What's the difference between maker and taker fees?
A: Makers (limit orders that add liquidity) pay lower fees than takers (market orders that remove liquidity).

Q: How long do withdrawals take?
A: Withdrawal times vary by cryptocurrency network conditions, typically 5-30 minutes for blockchain confirmations.

Technical Questions

Q: What's the API rate limit?
A: Public endpoints: 6 requests/second, Private endpoints: 10 requests/second per API Key.

Q: How do I handle pagination?
A: Use before and after parameters with the returned OK-BEFORE/OK-AFTER headers for sequential data access.

Trading Questions

Q: Why was my large order canceled?
A: Orders potentially moving price >30% get auto-canceled to prevent market impact (FOK protection).

Q: How are market orders executed?
A: Market orders fill immediately against existing limit orders at best available prices until fully executed.