Type Definitions
AccountBalanceInfoResults
- Source:
Properties:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
example |
Object | Example Currency Properties
|
Coinex Account Balance Info Results
Type:
- Object
Example
{
"BTC": {
"available": "9080.84156954",
"frozen": "1"
},
"USDT": {
"available" : "43724611.65252752",
"frozen": "1897.84472856"
},
"CET": {
"available": "6524.13695056",
"frozen": "0"
},
"ETH": {
" available": "10000",
"frozen": "0"
}
}
AllMarketStatisticsResults
- Source:
Properties:
Name | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
code |
Number | Indicates the coresponding Endpoint Error Code. |
|||||||||||||||||||||||||||||||||||||||||||||
message |
Boolean | Response message. |
|||||||||||||||||||||||||||||||||||||||||||||
data |
Object | Results Properties
|
Coinex All Market Statistics Results
Type:
- Object
Example
{
"code": 0,
"data": {
"date": 1513865441609, # server time when returning
"ticker": {
"martket": {
"buy": "10.00", # buy 1
"buy_amount": " 10.00", # buy 1 amount
"open": "10", # highest price
"high": "10", # highest price
"last": "10.00", # latest price
"low": "10 ", # lowest price
"sell": "10.00", # sell 1
"sell_amount": "0.78", # sell 1 amount
"vol": "110" # 24H volume
}
}
},
"message" : "Ok"
}
AMMAccountBalanceInfoResult
- Source:
Properties:
Name | Type | Description |
---|---|---|
market |
String | |
base_asset |
String | |
quote_asset |
String | |
base_amount |
String | |
quote_amount |
String |
Coinex AMM Account Balance Info Result
Type:
- Object
Example
{
"market": "ETHBTC",
"base_asset": "ETH",
"quote_asset": "BTC",
"base_amount": "944.24670636 ",
"quote_amount": "65.46687196"
}
AMMMarketResults
- Source:
Properties:
Name | Type | Description |
---|---|---|
code |
Number | Indicates the coresponding Endpoint Error Code. |
message |
Boolean | Response message. |
data |
Array.<String> | Results |
Coinex AMM Market Results
Type:
- Object
Example
{
"code": 0,
"data": [
"CETUSDT",
"USDCUSDT",
"ETHBTC",
"ACMUSDT",
"ARDRUSDT",
"ARDRTUSD",
"AYAUSDT",
"AYAETH",
"KUNBTC",
"KUNBCH",
"KUNETH",
"KUNTUSD",
"LFTBTC",
"PAXUSDT",
"SNXUSDT",
"SNXBTC",
"SNXBCH",
"SNXETH",
"SYSUSDT",
"XRPUSDC",
"XRPETH"
],
"message": "Success"
}
AssetAllocationResults
- Source:
Properties:
Name | Type | Description | |||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
code |
Number | Indicates the coresponding Endpoint Error Code. |
|||||||||||||||||||||||||||||||||
message |
Boolean | Response message. |
|||||||||||||||||||||||||||||||||
data |
Object | Results Properties
|
Coinex Asset Allocation Results
Type:
- Object
Example
{
"code": 0,
"data": {
"CET-CSC": {
"asset": "CET",
"chain": "CSC",
"can_deposit": true,
"can_withdraw ": false,
"deposit_least_amount": "1",
"withdraw_least_amount": "1",
"withdraw_tx_fee": "0.1"
},
"CET-ERC20": {
"asset": "CET",
"chain": "ERC20",
"can_deposit": true,
"can_withdraw": false,
"deposit_least_amount": "14",
"withdraw_least_amount": "14",
"withdraw_tx_fee": "14"
}
},
"message": "Success"
}
BalanceInCreditAccountResult
- Source:
Properties:
Name | Type | Description |
---|---|---|
asset |
string | |
unflat_amount |
string | |
interest_amount |
string |
Coinex Balance In Credit Account Result
Type:
- Object
Example
[
{
"asset": "USDT",
"unflat_amount": "98.99999998",
"interest_amount": "259.29744279"
}
]
CreditInfoResult
- Source:
Properties:
Name | Type | Description |
---|---|---|
withdraw_rate |
String | |
trade_rate |
String | |
current_balance |
String | |
unflat_balance |
String | |
can_withdraw_balance |
String | |
can_trade_balance |
String | |
current_rate |
String |
Coinex Credit Info Info Result
Type:
- Object
CurrencyRateResults
- Source:
Properties:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
code |
Number | Indicates the coresponding Endpoint Error Code. |
||||||
message |
Boolean | Response message. |
||||||
data |
Object | Results Properties
|
Coinex Acquire Currency Rate Results
Type:
- Object
Example
{
"code": 0,
"data": {
"USDT_to_USD": "1.00128491",
"USDC_to_USD": "1",
"BTC_to_USD": "60079.09716983",
"BCH_to_USD": "600.770946",
"ETH_to_USD": "4163.84190845",
"CET_to_USD": "2.00256982"
},
"message": "Success"
}
DepositAddressResult
- Source:
Properties:
Name | Type | Description |
---|---|---|
coin_address |
Number | |
is_bitcoin_cash |
Boolean |
Coinex Deposit Address Result
Type:
- Object
Example
{
"coin_address": "0x40aa234bcdc528ce411a6020da1a3c07124039d4",
"is_bitcoin_cash": false
}
DepositRecordResult
- Source:
Properties:
Name | Type | Description |
---|---|---|
has_next |
Boolean | Does have next page? |
curr_page |
Number | Current Page |
count |
Number | Total Count |
total |
Number | Total Records |
total_page |
Number | Total pages |
data |
Array.<Object> | Records |
data[].coin_deposit_id |
Number | Deposit id |
data[].create_time |
Number | Creation timestamp |
data[].amount |
String | Deposit amount |
data[].amount_display |
String | Show deposit amount |
data[].diff_amount |
String | |
data[].min_amount |
String | Min. deposit value |
data[].actual_amount |
String | Actual deposit amount |
data[].actual_amount_display |
String | Show actual deposit amount |
data[].confirmations |
Number | Number of confirmation |
data[].tx_id |
String | Transaction ID |
data[].tx_id_display |
String | Show transaction ID |
data[].coin_address |
String | Deposit transfer address |
data[].coin_address_display |
String | Show deposit transfer address |
data[].add_explorer |
String | Deposit transfer address |
data[].coin_type |
String | Coin name |
data[].smart_contract_name |
String | Smart contract name |
data[].transfer_method |
String | Trading method |
data[].status |
String | Status |
data[].status_display |
String | Display status |
data[].remark |
String | Remark |
data[].explorer |
String | Explorer URL of the transaction |
Coinex Deposit Record Result
Type:
- Object
Example
{
"has_next": false,
"curr_page": 1,
"count": 1,
"data": [
{
"coin_deposit_id": 14270229,
"create_time": 1637212022,
"amount": "200",
"amount_display": "200",
"diff_amount": "0",
"min_amount": "0",
"actual_amount": "200 ",
"actual_amount_display": "200",
"confirmations": 0,
"tx_id": "",
"tx_id_display": "XXXXXXXXXX",
"coin_address": "XXXXXXXXXX",
"coin_address_display": " XXXXXXXXXX",
"add_explorer": "",
"coin_type": "USDT",
"smart_contract_name": null,
"transfer_method": "local",
"status": "finish",
"status_display": "finish",
"remark": "",
"explorer": ""
}
],
"total": 1,
"total_page": 1
}
FinancialAccountBalanceInfoResult
- Source:
Properties:
Name | Type | Description |
---|---|---|
asset |
String | |
available |
String | |
frozen |
String |
Coinex Financial Account Balance Info Result
Type:
- Object
Example
{
"asset": "CET",
"available": "0",
"frozen": "0"
}
KlineDataResults
- Source:
Properties:
Name | Type | Description |
---|---|---|
code |
Number | Indicates the coresponding Endpoint Error Code. |
message |
Boolean | Response message. |
data |
Array.<Array> | Results |
data[].0 |
Number | Timestamp |
data[].1 |
String | Opening price |
data[].2 |
String | Closing price |
data[].3 |
String | Highest price |
data[].4 |
String | Lowest price |
data[].5 |
String | Trading volume |
data[].6 |
String | Transaction amount |
Coinex K-Line Data Results
Type:
- Object
Example
{
"code": 0,
"data": [
[
1492358400,
"10.0",
"10.0",
"10.0",
"10.0",
"10",
"100",
]
],
"message": "Ok"
}
LoanRecordResult
- Source:
Properties:
Name | Type | Description |
---|---|---|
loan_id |
Number | Loan record ID |
create_time |
Number | Creation timestamp |
market_type |
String | Market name |
coin_type |
String | Coin name |
day_rate |
String | Daily interest rate |
loan_amount |
String | Borrowed amount |
unflat_amount |
String | Amount and interest to be repaid |
expire_time |
Number | Time of expiration |
is_renew |
Boolean | Whether to renew automatically (false: Off; true: On) |
status |
"Pass" | "Burst" | "Arrears" | "Finish" | ("Pass": In loan, "Burst": Liquidated, "Arrears": In debt, "Finish": Repaid ) |
Coinex Loan Record Result
Type:
- Object
Example
{
"page": 1,
"limit": 10,
"total": 9,
"data": [
{
"loan_id": 1666,
"create_time": 1635736743,
"market_type": "BTCUSDT",
"coin_type": "BTC",
"day_rate": "0.0008",
"loan_amount": "99.99",
"unflat_amount": "0 ",
"expire_time": 1636600743,
"is_renew": true,
"status": "finish"
},
{
"loan_id": 1665,
"create_time": 1635736729,
"market_type": "BTCUSDT ",
"coin_type": "BTC",
"day_rate": "0",
"loan_amount": "0.01",
"unflat_amount": "0",
"expire_time": 1636600729,
"is_renew": true,
"status": "finish"
}
]
}
MarginAccountCreditInfoResult
- Source:
Properties:
Name | Type | Description |
---|---|---|
withdraw_rate |
String | |
trade_rate |
String | |
current_balance |
String | |
unflat_balance |
String | |
can_withdraw_balance |
String | |
can_trade_balance |
String | |
current_rate |
String |
Coinex Margin Account Credit Info Result
Type:
- Object
Example
{
"withdraw_rate": "1.4",
"trade_rate": "2",
"current_balance": "6506574.34065785",
"unflat_balance": "6336010.61421221",
"can_withdraw_balance": "6506574.34065785",
"can_trade_balance": "6506574.34065785",
"current_rate": "1.02691973"
}
MarginAccountCreditInfoResult2
- Source:
Properties:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
account_id |
Number | ||||||||||
leverage |
Number | ||||||||||
market_type |
String | ||||||||||
sell_asset_type |
String | ||||||||||
buy_asset_type |
String | ||||||||||
balance |
Object |
Properties
|
|||||||||
frozen |
Object |
Properties
|
|||||||||
loan |
Object |
Properties
|
|||||||||
interest |
Object |
Properties
|
|||||||||
can_transfer |
Object |
Properties
|
|||||||||
warn_rate |
String | ||||||||||
liquidation_price |
String |
Coinex Margin Account Credit Info Result
Type:
- Object
Example
{
"account_id": 2,
"leverage": 10,
"market_type": "BTCUSDT",
"sell_asset_type": "BTC",
"buy_asset_type" : "USDT",
"balance": {
"sell_type": "2",
"buy_type": "0"
},
"frozen": {
"sell_type": "0",
"buy_type" : "0"
},
"loan": {
"sell_type": "0",
"buy_type": "0"
},
"interest": {
"sell_type": "0",
" buy_type": "0"
},
"can_transfer": {
"sell_type": "2",
"buy_type": "0"
},
"warn_rate": "",
"liquidation_price": ""
}
MarginAccountSettingsResult
- Source:
Properties:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
market |
String | ||||||||||
leverage |
Number | ||||||||||
day_rate |
String | ||||||||||
example |
Object |
Properties
|
Coinex Margin Account Settings Result
Type:
- Object
Example
{
"market": "BTCUSDT",
"leverage": 10,
"day_rate": "0.0009",
"BTC": {
"min_amount": "0.001",
"max_amount": "100"
},
"USDT": {
"min_amount": "1",
"max_amount": "2000000"
}
}
MarginLoanResult
- Source:
Properties:
Name | Type | Description |
---|---|---|
loan_id |
Number |
Coinex Margin Loan Result
Type:
- Object
Example
{
loan_id: 1
}
MarginMarketResults
- Source:
Properties:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
code |
Number | Indicates the coresponding Endpoint Error Code. |
||||||
message |
Boolean | Response message. |
||||||
data |
Object | Results Properties
|
Coinex Margin Market Results
Type:
- Object
Example
{
"code": 0,
"data": {
"CETBCH": 3,
"BTCUSDC": 4,
"XRPPAX": 7,
"ETHUSDC": 9,
"BCHUSDT": 10,
"LTCUSDT": 11,
"XRPUSDT": 12,
"HCBTC": 13,
"ETHUSDT": 1,
"ETCUSDT": 15,
"BTCUSDT": 2,
"ETHBTC": 16,
"HCUSDT": 17,
"BSVUSDT": 19,
"OMGUSDT": 20,
"OMGUSDC": 22,
"OMGTUSD": 23,
"BANUSDT": 24,
"BANUSDC": 25
},
"message": "Success"
}
MarketDepthResult
- Source:
Properties:
Name | Type | Description |
---|---|---|
last |
String | Market name |
time |
String | Taker rate |
asks |
Array.<Array.<String>> | Maker rate |
asks[][0 |
String | Min. transaction volume |
asks[][1 |
String | Trading currency |
bids |
Array.<Array.<String>> | Trading currency decimal |
bids[][0 |
String | Pricing currency |
bids[][1 |
Number | Pricing currency decimal |
Coinex Market Depth Result
Type:
- Object
Example
{
"code": 0,
"data": {
"last": "10.00",
"time": 1539764050033,
"asks": [
[
"10.00",
"0.9999"
]
],
"bids": [
[
"10.00",
"1.0000"
]
]
},
"message": "Ok"
}
MarketInfoResult
- Source:
Properties:
Name | Type | Description |
---|---|---|
name |
String | Market name |
taker_fee_rate |
String | Taker rate |
maker_fee_rate |
String | Maker rate |
min_amount |
String | Min. transaction volume |
trading_name |
String | Trading currency |
trading_decimal |
Number | Trading currency decimal |
pricing_name |
String | Pricing currency |
pricing_decimal |
Number | Pricing currency decimal |
Coinex Market Info Result
Type:
- Object
Example
{
"code": 0,
"message": "Ok",
"data":
{
"taker_fee_rate": "0.001",
"pricing_name": "USDT",
"trading_name": "BTC" ,
"min_amount": "0.001",
"name": "BTCUSDT",
"trading_decimal": 8,
"maker_fee_rate": "0.001",
"pricing_decimal": 8
}
}
MarketInfoResults
- Source:
Properties:
Name | Type | Description | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
market |
Object | An example market (e.g. "BTCUSDT"). Properties
|
Coinex Market Info Results
Type:
- Object
Example
{
"code": 0,
"message": "Ok",
"data":
{
"XRPBTC":
{
"taker_fee_rate": "0.001",
"pricing_name": "BTC",
"trading_name": "XRP",
"min_amount": "0.001",
"name": "XRPBTC",
"trading_decimal": 8,
"maker_fee_rate": "0.001",
"pricing_decimal": 8
} ,
"CETUSDC":
{
"taker_fee_rate": "0.001",
"pricing_name": "USDC",
"trading_name": "CET",
"min_amount": "0.001",
"name": " CETUSDC",
"trading_decimal": 8,
"maker_fee_rate": "0.001",
"pricing_decimal": 8
}
}
}
MarketListResult
- Source:
Properties:
Name | Type | Description |
---|---|---|
name |
String | Market name |
type |
1 | 2 | Contract type (1: Linear contract, 2: Inverse contract) |
stock |
String | Base coin |
money |
String | Price coin |
fee_prec |
Number | Rate decimal |
stock_prec |
Number | Base coin decimal |
money_prec |
Number | Price coin decimal |
multiplier |
Number | Multiplier |
amount_prec |
Number | Quantity decimal |
amount_min |
String | Minimum amount |
tick_size |
String | Price granularity |
leverages |
Array.<String> | Margin list |
available |
Boolean | Whether the market is open |
Coinex Market List Results
Type:
- Object
Example
{
"name": "BTCUSD",
"type": 2,
"stock": "BTC",
"money": "USD",
"fee_prec": 4,
"stock_prec": 8,
"money_prec": 8,
"multiplier": 1,
"amount_prec": 0,
"amount_min": "10",
"tick_size": "0.5",
"leverages": ["3", "5", "8", "10", "15", "20", "30", "50", "100"],
"available": true
}
MarketListResults
- Source:
Properties:
Name | Type | Description |
---|---|---|
code |
Number | Indicates the coresponding Endpoint Error Code. |
message |
Boolean | Response message. |
data |
Array.<String> | List All of the market's pairs, applicable to spot and margin markets. |
Coinex Market List Results
Type:
- Object
Example
{
"code": 0,
"data": [
"LTCBCH",
"ETHBCH",
"ZECBCH",
"DASHBCH"
],
"message": "Ok"
}
PositionLevelResults
- Source:
Properties:
Name | Type | Description |
---|---|---|
example |
Array.<Array> | Example Market (e.g. BTCUSDT) |
example[][0 |
String | Amount |
example[][1 |
String | Leverage |
example[][2 |
String | Maintenance margin rate |
Coinex Market List Results
Type:
- Object
Example
{
"BTCUSD": [
["1000", "100", "0.005"],
["10000", "50", "0.01"],
["15000", "30" , "0.015"],
["25000", "20", "0.02"],
["50000", "15", "0.025"],
["75000", "10", "0.03"] ,
["80000", "6", "0.035"],
["110000", "6", "0.04"],
["120000", "5", "0.045"],
["130000 ", "5", "0.05"],
["140000", "5", "0.055"],
["150000", "3", "0.06"]
]
}
SingleMarketStatisticsResult
- Source:
Properties:
Name | Type | Description | |||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
code |
Number | Indicates the coresponding Endpoint Error Code. |
|||||||||||||||||||||||||||||||||||||||
message |
Boolean | Response message. |
|||||||||||||||||||||||||||||||||||||||
data |
Object | Results Properties
|
Coinex Single Market Statistics Result
Type:
- Object
Example
{
"code": 0,
"data": {
"date": 1513865441609, # server time when returning
"ticker": {
"buy": "10.00", # buy 1
"buy_amount": " 10.00", # buy 1 amount
"open": "10", # highest price
"high": "10", # highest price
"last": "10.00", # latest price
"low": "10 ", # lowest price
"sell": "10.00", # sell 1
"sell_amount": "0.78", # sell 1 amount
"vol": "110" # 24H volume
}
},
"message" : "Ok"
}
SubAccountAPIKEYResult
- Source:
Properties:
Name | Type | Description |
---|---|---|
user_auth_id |
Number | Unique ID for APIKEY |
create_time |
Number | Creation time |
remark |
String | API Remark |
access_id |
String | access_id |
allowed_ips |
Array.<String> | Bound IP Address |
allow_withdraw |
Boolean | Whether to allow withdrawal |
allow_trade |
Boolean | Whether to allow transaction |
is_expires |
Boolean | Whether the APIKEY has expired (if an IP address is bound, it will never expire by default; If no IP address is bound, the APIKEY will be valid for 3 months) |
expired_time |
Number | Expiration time (0: Permanently valid) |
secret_key |
String | API Secret Key |
Coinex SubAccount APIKEY Result
Type:
- Object
Example
{
"user_auth_id": 554,
"create_time": 1642145331,
"remark": "2233",
"access_id": "xxxxxxx",
"allowed_ips" : [
"1.1.1.1"
],
"allow_withdraw": false,
"allow_trade": true,
"is_expires": false,
"expired_time": 0,
"secret_key": "xxxxxx"
}
SubAccountAPIKEYResults
- Source:
Properties:
Name | Type | Description |
---|---|---|
curr_page |
Number | Current Page |
has_next |
Boolean | Does have next page? |
count |
Number | Total Count |
total |
Number | Total records |
total_page |
Number | Total pages |
data |
Array.<Object> | Records |
data[].user_auth_id |
Number | Unique ID for APIKEY |
data[].create_time |
Number | Creation time |
data[].remark |
String | API Remark |
data[].access_id |
String | access_id |
data[].allowed_ips |
Array.<String> | Bound IP Address |
data[].allow_withdraw |
Boolean | Whether to allow withdrawal |
data[].allow_trade |
Boolean | Whether to allow transaction |
data[].is_expires |
Boolean | Whether the APIKEY has expired (if an IP address is bound, it will never expire by default; If no IP address is bound, the APIKEY will be valid for 3 months) |
data[].expired_time |
Number | Expiration time (0: Permanently valid) |
Coinex SubAccount APIKEY Results
Type:
- Object
Example
{
"has_next": false,
"curr_page": 1,
"count": 7,
"data": [
{
"user_auth_id": 554,
"create_time": 1642145331,
"remark": "2233",
"access_id": "5EDFCD524C7046B6AD9D10A2510A5BC9",
"allowed_ips": [
"1.1.1.1"
],
"allow_withdraw": false,
"allow_trade" ": true,
"is_expires": false,
"expired_time": 0
}
],
"total": 7,
"total_page": 1
}
SubAccountBalanceInfoResults
- Source:
Properties:
Name | Type | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
account |
Object | Example Sub-Account Properties
|
Coinex Sub Account Balance Info Results
Type:
- Object
Example
{
"example-account": {
"BTC": {
"available": "99",
"frozen": "0"
}
}
}
SubmitLimitOrderResult
- Source:
Properties:
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
code |
Number | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
data |
Object |
Properties
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
message |
String |
Coinex Submit Limit Order Result
Type:
- Object
Example
{
"code": 0,
"data": {
"id": 35435972,
"create_time": 1636019392,
"finished_time": null,
"amount": "0.01000000",
"price": " 56000",
"deal_amount": "0.01",
"deal_money": "560.0000000000000000",
"deal_fee": "0",
"stock_fee": "0",
"money_fee": "0",
" asset_fee": "0.313600000000000000000000",
"fee_asset": "CET",
"fee_discount": "0.70",
"avg_price": "56000",
"market": "BTCUSDT",
"left": "0.00000000 ",
"maker_fee_rate": "0.0016",
"taker_fee_rate": "0.0016",
"order_type": "limit",
"type": "buy",
"status": "done",
"client_id ": "abcd222",
"source_id": "1234"
},
"message": "Success"
}
TradingFeeRateResult
- Source:
Properties:
Name | Type | Description |
---|---|---|
taker |
String | |
maker |
String |
Coinex Trading Fee Rate Result
Type:
- Object
Example
{
"taker": "0.0018",
"maker": "0.0018"
}
TransactionDataResults
- Source:
Properties:
Name | Type | Description | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
code |
Number | Indicates the coresponding Endpoint Error Code. |
|||||||||||||||||||||
message |
Boolean | Response message. |
|||||||||||||||||||||
data |
Object | Results Properties
|
Coinex Transaction Data Results
Type:
- Object
Example
{
"code": 0,
"data": [
{
"amount": "0.0001", # Transaction amount
"date": 1494214689, # Transaction time(s)
"date_ms": 1494214689067, # Transaction time(ms)
"id": 5, # Transaction No
"price": "10.00", # Transaction price
"type": "buy" # Transaction type: buy, sell
}
],
"message" : "Ok"
}
TransferRecordBetweenMainAndSubAccountResult
- Source:
Properties:
Name | Type | Description | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
curr_page |
Number | Current Page |
|||||||||||||||||||||
has_next |
Boolean | Does have next page? |
|||||||||||||||||||||
per_page |
Number | Records per page |
|||||||||||||||||||||
total_page |
Number | Total pages |
|||||||||||||||||||||
count |
Number | Total Count |
|||||||||||||||||||||
data |
Array.<Object> | Records Properties
|
|||||||||||||||||||||
total |
Number | Total Records |
Coinex Transfer Record Between Main And Sub Account Result
Type:
- Object
Example
{
"curr_page": 1,
"has_next": false,
"per_page": 10,
"total_page": 1,
"count": 4,
"data": [
{
"time": 1636443179,
"transfer_from": "sun",
"transfer_to": "",
"coin_type": "BTC",
"amount": "1",
"status": "success"
}
],
"total": 4
}
TransferRecordBetweenMarginSpotAccountResult
- Source:
Properties:
Name | Type | Description |
---|---|---|
records |
Array.<Object> | Records |
records[].id |
Number | Record ID |
records[].updated_at |
Number | Update time |
records[].user_id |
Number | User ID |
records[].from_account_id |
Number | Spot account ID: 0, Margin account ID: See Acquire Market Info in Margin Account |
records[].to_account_id |
Number | Spot account ID: 0, Margin account ID: See Acquire Market Info in Margin Account |
records[].asset |
String | Asset |
records[].amount |
String | Transfer amount |
records[].balance |
String | Account Balance |
records[].transfer_type |
"IN" | "OUT" | Transfer Type ( IN: from Spot to Margin Account, OUT: from Margin to Spot Account ) |
records[].status |
String | Operation status |
records[].created_at |
Number | Creation time |
total |
Number | Total Records |
Coinex Transfer Record Between Margin Spot Account Result
Type:
- Object
Example
{
"records": [
{
"id": 2612,
"updated_at": 1635846838,
"user_id": 1527,
"from_account_id": 0,
"to_account_id": 2,
"asset": "BTC",
"amount": "1",
"balance": "2",
"transfer_type": "IN",
"status": "SUCCESS ",
"created_at": 1635846838
}
],
"total": 6
}
TransferRecordBetweenSpotFinancialAccountResult
- Source:
Properties:
Name | Type | Description |
---|---|---|
records |
Array.<Object> | Records |
records[].id |
Number | Transfer ID |
records[].created_at |
Number | Creation time |
records[].updated_at |
Number | Update time |
records[].success_at |
Number | Transfer completion time |
records[].report_date |
Number | |
records[].user_id |
Number | |
records[].investment_account_id |
Number | |
records[].asset |
String | Operated assets |
records[].amount |
String | Amount |
records[].opt_type |
"IN" | "OUT" | "INTEREST" | Operation Type ( IN: from Spot to Financial Account, OUT: from Financial to Spot Account, INTEREST: Interest ) |
records[].day_rate |
String | Daily rate of return |
records[].status |
String | Status |
total |
Number | Total Records |
Coinex Transfer Record Between Spot Financial Account Result
Type:
- Object
Example
{
"records": [
{
"id": 5063,
"created_at": 1636330200,
"updated_at": 1636330200,
"success_at": 1636330200,
"report_date": 1636329600,
"user_id": 305,
"investment_account_id": 2,
"asset": "BTC",
"amount": "0.00001052",
"opt_type": "INTEREST",
" day_rate": "0",
"status": "SUCCESS"
}
],
"total": 495
}
TransferRecordBetweenSpotPerpetualAccountResult
- Source:
Properties:
Name | Type | Description |
---|---|---|
records |
Array.<Object> | Records |
records[].amount |
Number | Amount |
records[].asset |
Number | Operated assets |
records[].create_at |
Number | Creation time |
records[].transfer_type |
"transfer_in" | "transfer_out" | Operation Type ( transfer_in: from Spot to Perpetual Account, OUT: from Perpetual to Spot Account ) |
total |
Number | Total Records |
Coinex Transfer Record Between Spot Perpetual Account Result
Type:
- Object
Example
{
"records": [
{
"amount": "12",
"asset": "USDT",
"transfer_type": "transfer_out",
"created_at": 1637287786
},
{
"amount": "1",
"asset": "BTC",
"transfer_type": "transfer_in",
"created_at": 1637287666
},
{
" amount": "10002",
"asset": "USDT",
"transfer_type": "transfer_in",
"created_at": 1637287619
}
],
"total": 3
}
UserOperationHistoryResult
- Source:
Properties:
Name | Type | Description |
---|---|---|
time |
Number | |
account |
Number | |
business |
String | |
business_id |
Number | |
asset |
String | |
change |
String | |
balance |
String |
Coinex User Operation History Result
Type:
- Object
Example
{
"data": [
{
"time": 1636602204,
"account": 0,
"business": "trade",
"business_id": 35437896,
"asset": "BTC",
"change": "0.12995834",
"balance": "8748.45520473"
},
{
"time": 1636451914,
"account": 0,
"business ": "trade",
"business_id": 35437896,
"asset": "USDT",
"change": "-6.70000000",
"balance": "42608970.78871773"
}
],
"curr_page": 1,
"has_next": true,
"count": 10
}
WithdrawalHistoryResult
- Source:
Properties:
Name | Type | Description |
---|---|---|
coin_withdraw_id |
Number | Withdrawal record ID |
create_time |
Number | Creation timestamp |
amount |
String | Withdrawal amount |
actual_amount |
String | Actual withdrawal amount |
tx_id |
String | Transaction ID |
coin_address |
String | To address |
tx_fee |
String | Withdrawal fee |
confirmations |
Number | Number of confirmation |
coin_type |
"audit" | "pass" | "processing" | "confirming" | "not_pass" | "cancel" | "finish" | "fail" | Coin name (audit, pass, processing, confirming, not_pass, cancel, finish, fail) |
status |
String | Operation status |
Coinex Withdrawal History Result
Type:
- Object
Example
{
"actual_amount": "1.00000000",
"amount": "1.00000000",
"coin_address": "1KAv3pazbTk2JnQ5xTo6fpKK7p1it2RzD4",
"coin_type": "BCH ",
"coin_withdraw_id": 206,
"confirmations": 0,
"create_time": 1524228297,
"status": "audit",
"tx_fee": "0",
"tx_id": ""
}
WithdrawalRequestResult
- Source:
Properties:
Name | Type | Description |
---|---|---|
actual_amount |
String | |
amount |
String | |
coin_address |
String | |
coin_type |
String | |
coin_withdraw_id |
Number | |
confirmations |
Number | |
create_time |
Number | |
status |
String | |
tx_fee |
String | |
tx_id |
String |
Coinex Withdrawal Request Result
Type:
- Object
Example
{
"actual_amount": "1.00000000",
"amount": "1.00000000",
"coin_address": "1KAv3pazbTk2JnQ5xTo6fpKK7p1it2RzD4",
"coin_type": "BCH",
"coin_withdraw_id": 206,
"confirmations": 0,
"create_time": 1524228297,
"status": "audit",
"tx_fee": "0",
"tx_id": ""
}