In order to let users know that how to use the margin trading, CROSS exchange enabled demo trading for our users.
like real trading, the demo trading also need a wallet to hold your demo assets , we named it "Demo account".
The demo account has two demo coin, XUSDT and XBTC(constitute XBTC/XUSDT pair), you can take free apply or use XEX exchange to get them.
Apply demo coin
The demo coin application is free, and each user has a daily limit for apply.
XUSDT’s daily limit is 100,000 XUSDT.
/POST/api/v1/xleverage/getCoin
Url:
https://api.crossexchange.io/POST/api/v1/xleverage/getCoin
Request field:
|
Name |
Type |
description |
|
api_key |
String |
API KEY |
|
auth_nonce |
String |
Timestamp |
|
auth_sign |
String |
Sign: MD5coding.MD5( api_key+auth_nonce) |
|
coinType |
String |
The coin type you want to apply, eg.XUSDT |
| number | BigDecimal |
coin amount you want to apply. |
Response:
{
"code": 0,
"data": {}
}
|
code |
String |
0 means successful, other is failed |
Exchange dome coin by XEX
You can use XEX to exchange demo coin at a very low price, the exchange price is 1 XEX = 10,000 XUSDT.
Please use the following api to exchange.
/POST/api/v1/xleverage/exchange/xex
Url:
https://api.crossexchange.io/POST/api/v1/xleverage/exchange/xex
Request field:
|
Name |
Type |
description |
|
api_key |
String |
API KEY |
|
auth_nonce |
String |
Timestamp |
|
auth_sign |
String |
Sign: MD5coding.MD5( api_key+auth_nonce) |
|
coinType |
String |
The coin type you want to apply, eg.XUSDT |
| number | BigDecimal |
The amount of XEX you want to consume |
Response:
{
"code": 0,
"data": {}
}
|
code |
String |
0 means successful, other is failed |
Transfer funds to your demo margin account
After having demo coins in the you demo account, you need to transfer them to "demo margin account" for demo margin trading.
The action of transferring assets is the same as real trading, please click here to view detail.
Demo margin account balance
When you want to check the balance of your demo margin account, please use the api below.
/POST/api/v1/query/XleverAccount
URL:
https://api.crossexchange.io/POST/api/v1/query/XleverAccount
Request field:
|
Name |
Type |
description |
|
api_key |
String |
API KEY |
|
auth_nonce |
String |
Timestamp |
|
auth_sign |
String |
Sign: MD5coding.MD5( api_key+auth_nonce) |
Response:
{
"code": 0,
"data": {
"TUSDT": "0",
"XUSDT": "895.53300000"
}
}
|
code |
String |
0: successful |
|
TUSDT |
String |
Demo coin TUSDT's balance |
|
XUSDT |
String |
Demo coin XUSDT's balance |
