Skip to content

Wallet

Deposit configuration / address / history (read) and withdraw apply / history.

Withdraw (POST …/withdraw/apply) is a write operation (Wallet permission).

Pepperstone Crypto Public OpenAPI — Wallet 1.0.0

Pepperstone Crypto public REST API.

Authenticate with HMAC where required. See Authentication in the developer documentation for signing details. WebSocket market and private streams are documented separately. All times are UTC milliseconds unless noted.


Servers

Description URL
Production https://api.pcrypto.com

Wallet


GET /openapi/wallet/v1/config/getall

Get wallet asset config

Description

Required Type: Wallet (Read only OK for GET)

Input parameters

Parameter In Type Required Default Description
x-ptrader-apikey header string Yes API key.
recvWindow query integer No 5000 Request validity window in milliseconds. Range 1–60000.
signature query string Yes HMAC-SHA256 signature, hex-encoded. See Authentication → HMAC signing.
timestamp query integer Yes Request timestamp in Unix milliseconds.

Responses

Success

Response fields

Array of WalletAssetConfig:

Wallet asset configuration. The boolean field name is legalMoney.

Name Type Description
coin string
depositAllEnable boolean
free string Decimal string.
legalMoney boolean
locked string Decimal string.
name string
networkList Array<TokenNetworkInfo>
transferMinQuantity string Decimal string.
transferPrecision integer
withdrawAllEnable boolean

rate_limited

{
    "code": -1003,
    "msg": "Too many requests; current request has limited."
}

Response fields

Error payload. Most API errors (including auth failures such as -1002) return HTTP 200 — see Error codes → HTTP status mapping. HTTP 400 for missing or invalid request parameters. HTTP 429 when rate limited.

Name Type Description
code integer
msg string


GET /openapi/wallet/v1/deposit/address

Get deposit address

Description

Required Type: Wallet (Read only OK for GET)

Input parameters

Parameter In Type Required Default Description
x-ptrader-apikey header string Yes API key.
coin query string Yes
network query string Yes
recvWindow query integer No 5000 Request validity window in milliseconds. Range 1–60000.
signature query string Yes HMAC-SHA256 signature, hex-encoded. See Authentication → HMAC signing.
timestamp query integer Yes Request timestamp in Unix milliseconds.

Responses

Success

Response fields

Deposit address for a coin/network.

Name Type Description
address string
addressTag string
coin string

missing_parameter

{
    "code": -1010,
    "msg": "Missing required parameter 'coin'"
}

Response fields

Error payload. Most API errors (including auth failures such as -1002) return HTTP 200 — see Error codes → HTTP status mapping. HTTP 400 for missing or invalid request parameters. HTTP 429 when rate limited.

Name Type Description
code integer
msg string

rate_limited

{
    "code": -1003,
    "msg": "Too many requests; current request has limited."
}

Response fields

Error payload. Most API errors (including auth failures such as -1002) return HTTP 200 — see Error codes → HTTP status mapping. HTTP 400 for missing or invalid request parameters. HTTP 429 when rate limited.

Name Type Description
code integer
msg string


GET /openapi/wallet/v1/deposit/addresses

List deposit addresses

Description

Required Type: Wallet (Read only OK for GET)

Returns every deposit address this account has generated, one row per (coin, network), keeping the earliest open address for each pair. Unlike GET /openapi/wallet/v1/deposit/address, this endpoint does not allocate a new address and takes no coin / network query parameters.

Input parameters

Parameter In Type Required Default Description
x-ptrader-apikey header string Yes API key.
recvWindow query integer No 5000 Request validity window in milliseconds. Range 1–60000.
signature query string Yes HMAC-SHA256 signature, hex-encoded. See Authentication → HMAC signing.
timestamp query integer Yes Request timestamp in Unix milliseconds.

Responses

Success

Response fields

Array of ListAllAddresses:

Deposit addresses (one row per coin+network).

Name Type Description
address string
assetName string Coin / asset symbol (e.g. ETH, USDT).
minDeposit number Minimum deposit for this coin+network as a JSON number; 0 when unset.
network string Network code (e.g. ETH, TRC20).
networkName string Display name from network config when available; otherwise the network code.
tag string Memo / destination tag when the network requires one; may be null or empty.

rate_limited

{
    "code": -1003,
    "msg": "Too many requests; current request has limited."
}

Response fields

Error payload. Most API errors (including auth failures such as -1002) return HTTP 200 — see Error codes → HTTP status mapping. HTTP 400 for missing or invalid request parameters. HTTP 429 when rate limited.

Name Type Description
code integer
msg string


GET /openapi/wallet/v1/deposit/history

Get deposit history

Description

Required Type: Wallet (Read only OK for GET)

Input parameters

Parameter In Type Required Default Description
x-ptrader-apikey header string Yes API key.
coin query string No
limit query integer No 1000 Number of records to return. Range 1–1000.
recvWindow query integer No 5000 Request validity window in milliseconds. Range 1–60000.
signature query string Yes HMAC-SHA256 signature, hex-encoded. See Authentication → HMAC signing.
timestamp query integer Yes Request timestamp in Unix milliseconds.

Responses

Success

Response fields

Array of DepositRecord:

Name Type Description
address string
addressTag string
amount number Decimal amount as a JSON number (BigDecimal on the wire).
coin string
confirmNo integer
id string
insertTime integer(int64)
network string
status integer
txId string

invalid_parameter

{
    "code": -1025,
    "msg": "Parameter 'limit' is not valid."
}

Response fields

Error payload. Most API errors (including auth failures such as -1002) return HTTP 200 — see Error codes → HTTP status mapping. HTTP 400 for missing or invalid request parameters. HTTP 429 when rate limited.

Name Type Description
code integer
msg string

rate_limited

{
    "code": -1003,
    "msg": "Too many requests; current request has limited."
}

Response fields

Error payload. Most API errors (including auth failures such as -1002) return HTTP 200 — see Error codes → HTTP status mapping. HTTP 400 for missing or invalid request parameters. HTTP 429 when rate limited.

Name Type Description
code integer
msg string


POST /openapi/wallet/v1/withdraw/apply

Apply withdraw

Description

Required Type: Wallet

Submit a withdraw request. JSON body fields: required coin, network, address, amount; optional addressTag, withdrawOrderId. HMAC signs query timestamp/signature plus the compact JSON body.

Input parameters

Parameter In Type Required Default Description
x-ptrader-apikey header string Yes API key.
recvWindow query integer No 5000 Request validity window in milliseconds. Range 1–60000.
signature query string Yes HMAC-SHA256 signature, hex-encoded. See Authentication → HMAC signing.
timestamp query integer Yes Request timestamp in Unix milliseconds.

Request body

{
    "coin": "USDT",
    "network": "TRC20",
    "address": "TXyz…",
    "amount": "10"
}

Request fields

Name Type Description
address string Destination address.
addressTag string Optional memo / destination tag when the network requires one.
amount string Withdraw amount as a decimal string (must be greater than 0).
coin string Asset symbol to withdraw (e.g. `USDT`).
network string Network code (e.g. `TRC20`, `ETH`).
withdrawOrderId string Optional client-side withdraw id for idempotency (max 64 chars).

Responses

Success

Response fields

Name Type Description
id string

missing_parameter

{
    "code": -1010,
    "msg": "Missing required parameter 'coin'"
}

Response fields

Error payload. Most API errors (including auth failures such as -1002) return HTTP 200 — see Error codes → HTTP status mapping. HTTP 400 for missing or invalid request parameters. HTTP 429 when rate limited.

Name Type Description
code integer
msg string

rate_limited

{
    "code": -1003,
    "msg": "Too many requests; current request has limited."
}

Response fields

Error payload. Most API errors (including auth failures such as -1002) return HTTP 200 — see Error codes → HTTP status mapping. HTTP 400 for missing or invalid request parameters. HTTP 429 when rate limited.

Name Type Description
code integer
msg string


GET /openapi/wallet/v1/withdraw/history

Get withdraw history

Description

Required Type: Wallet (Read only OK for GET)

Input parameters

Parameter In Type Required Default Description
x-ptrader-apikey header string Yes API key.
coin query string No
limit query integer No 1000 Number of records to return. Range 1–1000.
recvWindow query integer No 5000 Request validity window in milliseconds. Range 1–60000.
signature query string Yes HMAC-SHA256 signature, hex-encoded. See Authentication → HMAC signing.
timestamp query integer Yes Request timestamp in Unix milliseconds.

Responses

Success

Response fields

Array of WithdrawRecord:

Name Type Description
address string
addressTag string
amount number Decimal amount as a JSON number (BigDecimal on the wire).
applyTime integer(int64)
coin string
confirmNo integer
id string
info string
network string
status integer
transactionFee number Decimal amount as a JSON number (BigDecimal on the wire).
txId string
withdrawOrderId string

invalid_parameter

{
    "code": -1025,
    "msg": "Parameter 'limit' is not valid."
}

Response fields

Error payload. Most API errors (including auth failures such as -1002) return HTTP 200 — see Error codes → HTTP status mapping. HTTP 400 for missing or invalid request parameters. HTTP 429 when rate limited.

Name Type Description
code integer
msg string

rate_limited

{
    "code": -1003,
    "msg": "Too many requests; current request has limited."
}

Response fields

Error payload. Most API errors (including auth failures such as -1002) return HTTP 200 — see Error codes → HTTP status mapping. HTTP 400 for missing or invalid request parameters. HTTP 429 when rate limited.

Name Type Description
code integer
msg string


Schemas

DepositAddress

Name Type Description
address string
addressTag string
coin string

DepositRecord

Name Type Description
address string
addressTag string
amount number Decimal amount as a JSON number (`BigDecimal` on the wire).
coin string
confirmNo integer
id string
insertTime integer(int64)
network string
status integer
txId string

ErrorBody

Name Type Description
code integer
msg string

ListAllAddresses

Name Type Description
address string
assetName string Coin / asset symbol (e.g. ETH, USDT).
minDeposit number Minimum deposit for this coin+network as a JSON number; `0` when unset.
network string Network code (e.g. ETH, TRC20).
networkName string Display name from network config when available; otherwise the network code.
tag string Memo / destination tag when the network requires one; may be null or empty.

TokenNetworkInfo

Name Type Description
addressRegex string
defaultFlag boolean
depositEnable boolean
displayName string
isNeedMemo boolean
logoUrl string
memoRegex string
minConfirm integer
minDepositAmount number Decimal amount as a JSON number (`BigDecimal` on the wire).
name string
network string
sameAddress boolean
unLockConfirm integer
withdrawDesc string
withdrawEnable boolean
withdrawFee number Decimal amount as a JSON number (`BigDecimal` on the wire).
withdrawIntegerMultiple number Decimal amount as a JSON number (`BigDecimal` on the wire).
withdrawMax number Decimal amount as a JSON number (`BigDecimal` on the wire).
withdrawMin number Decimal amount as a JSON number (`BigDecimal` on the wire).

WalletAssetConfig

Name Type Description
coin string
depositAllEnable boolean
free string Decimal string.
legalMoney boolean
locked string Decimal string.
name string
networkList Array<TokenNetworkInfo>
transferMinQuantity string Decimal string.
transferPrecision integer
withdrawAllEnable boolean

WithdrawApply

Name Type Description
id string

WithdrawApplyRequest

Name Type Description
address string Destination address.
addressTag string Optional memo / destination tag when the network requires one.
amount string Withdraw amount as a decimal string (must be greater than 0).
coin string Asset symbol to withdraw (e.g. `USDT`).
network string Network code (e.g. `TRC20`, `ETH`).
withdrawOrderId string Optional client-side withdraw id for idempotency (max 64 chars).

WithdrawRecord

Name Type Description
address string
addressTag string
amount number Decimal amount as a JSON number (`BigDecimal` on the wire).
applyTime integer(int64)
coin string
confirmNo integer
id string
info string
network string
status integer
transactionFee number Decimal amount as a JSON number (`BigDecimal` on the wire).
txId string
withdrawOrderId string

Security schemes

Name Type Scheme Description
ApiKeyHmac apiKey
ApiKeyOnly apiKey API key header only (no HMAC). Used for listenKey create, keepalive, and close.

Tags

Name Description
Wallet