Work with this as data
Every API here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for apis
7 MCP tools reach this
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This API
curl "https://apis.io/api/v1/apis/lbank-account-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
OpenAPI Specification
openapi: 3.2.0
info:
title: LBank Spot Market REST Account API
description: Public REST endpoints providing real-time and historical market data for all LBank spot trading pairs. All endpoints are unauthenticated and suitable for market data aggregators, dashboards, and trading bots.
version: 1.0.0
contact:
url: https://www.lbank.com/en-US/docs/
termsOfService: https://www.lbank.com/en-US/agreement/
servers:
- url: https://api.lbkex.com
description: LBank REST API (primary)
- url: https://api.lbkex.net
description: LBank REST API (secondary)
- url: https://api.lbank.info
description: LBank REST API (tertiary)
tags:
- name: Account
description: Account balance and transaction history
paths:
/v1/user_info.do:
post:
operationId: getUserInfo
summary: Get user asset information
description: Returns the authenticated user's account balances including total assets, frozen amounts, and available balances per currency.
tags:
- Account
requestBody:
required: true
content:
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/AuthRequest'
responses:
'200':
description: User asset information
content:
application/json:
schema:
$ref: '#/components/schemas/UserInfoResponse'
security:
- ApiKeyAuth: []
/v1/transaction_history.do:
post:
operationId: getTransactionHistory
summary: Get past transaction history
description: Returns historical trade fill records for the authenticated user, optionally filtered by date range and pair.
tags:
- Account
requestBody:
required: true
content:
application/x-www-form-urlencoded:
schema:
allOf:
- $ref: '#/components/schemas/AuthRequest'
- type: object
required:
- symbol
properties:
symbol:
type: string
description: Trading pair
type:
type: string
enum:
- buy
- sell
description: Order direction filter
start_date:
type: string
description: Start date (yyyy-mm-dd, max today, default yesterday)
end_date:
type: string
description: End date (yyyy-mm-dd, max today, default today). Max window is 2 days.
from:
type: string
description: Initial transaction ID for pagination
direct:
type: string
enum:
- next
- prev
description: 'Query direction: next (ascending by time) or prev (descending)'
default: next
size:
type: string
description: Number of records (default 100)
responses:
'200':
description: Historical transaction records
content:
application/json:
schema:
$ref: '#/components/schemas/TransactionDetailResponse'
security:
- ApiKeyAuth: []
components:
schemas:
TransactionRecord:
type: object
properties:
txUuid:
type: string
description: Trade ID
orderUuid:
type: string
description: Order ID
tradeType:
type: string
enum:
- buy
- sell
dealTime:
type: integer
description: Trade timestamp (milliseconds)
dealPrice:
type: number
description: Fill price
dealQuantity:
type: number
description: Fill quantity
dealVolumePrice:
type: number
description: Aggregated fill value (price * quantity)
tradeFee:
type: number
description: Transaction fee amount
tradeFeeRate:
type: number
description: Transaction fee rate
AuthRequest:
type: object
required:
- api_key
- sign
properties:
api_key:
type: string
description: User's API key
sign:
type: string
description: Request signature (RSA or HmacSHA256)
TransactionDetailResponse:
type: object
properties:
result:
type: string
enum:
- 'true'
- 'false'
transaction:
type: array
items:
$ref: '#/components/schemas/TransactionRecord'
UserInfoResponse:
type: object
properties:
result:
type: string
enum:
- 'true'
- 'false'
info:
type: object
properties:
freeze:
type: object
description: Frozen balances by currency
additionalProperties:
type: number
asset:
type: object
properties:
net:
type: number
description: Total net asset value
free:
type: object
description: Available balances by currency
additionalProperties:
type: number