POST
/trades/createTrade
Headers
Body
Name
Type
Description
send_name
string
Currency being sent
get_name
string
Currency being received
send_network
string
Network of currency being sent
get_network
string
Network of currency being received
send_value or get_value
number
Amount of the exchange you will receive or pay
get_creds
string
Credentials
uniq_id
optional
string
Unique id of trade
sbpBank
optional
string
Bank for receiving via SBP
exch_type
string
yellow
or
green
(default yellow)
commission
float
Additional commission in percent, which is considered your profit (default 0.5)
get_memo
optional
string
MEMO parameter for sending funds to the recipient's wallet
recipientName
optional
string
Recipient's name
Response
{
"send_memo": null,
"send_name": "USDT",
"send_network": "TRC20",
"get_network": "ERC20",
"get_name": "USDT",
"uniq_id": "nf4i3rh394h",
"status": 1,
"payment_wallet": "WalletForPay",
"userPaidHash": null,
"ourHash": null,
"get_creds": "WalletForRecive",
"network_commission": 0,
"date": 1720120863,
"time_expire": 1720142463,
"send_value": "112",
"get_value": "100",
"sbpBank": null,
"exch_type": "yellow",
"percent_commission": 0.5
}
Example
const fetch = require("node-fetch");
let url = "https://api.yellowchanger.com/trades/createTrade",
options = {
method: "POST",
headers: {
"Content-Type": "application/json",
Y_API_KEY: "Your API Key",
Signature: "0002b135569a4a29b7e7bf9489114eca8fa31e7f61a9e8e26b89bb7dfd4dcf5c",
},
body: '{"send_name":"USDT","get_name":"USDT","send_value":100,"send_network":"TRC20","get_network":"ERC20", "uniq_id":"nf4i3rh394h", "get_creds":"address, card or number"}',
};
fetch(url, options)
.then((e) => e.json())
.then((e) => console.log(e))
.catch((e) => console.error("error:" + e));