createTrade

Create new trade and returns trade info

POST

/trades/createTrade


Headers

Name

Value

Content-Type

application/json

Y_API_KEY

Public API Key

Signature

HMAC SHA256 of Body


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


Example