crate::trading::controller::openapi::conversions
POST /v1/customers/{customer_id}/conversions/hedge
Changed onRequest
- Base URLhttps://api.1money.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
customer_idstring required
Customer ID
Request body
Example request
{
"quote_id": "1f581bfe-25de-42aa-9429-6802412850b3"
}Response
Example response
{
"transaction_id": "1f581bfe-25de-42aa-9429-6802412850b3",
"order_status": "PENDING",
"quote_id": "1f581bfe-25de-42aa-9429-6802412850b3",
"user_pay_amount": "100.00",
"user_pay_asset": "USDT",
"user_obtain_amount": "100.00",
"user_obtain_asset": "USDT",
"symbol": "USDC/USD",
"rate": "1.1",
"fee": "1.20",
"fee_currency": "USD",
"platform_fee": {
"value": "10.55",
"asset": "USDC"
},
"partner_fee": {
"value": "10.55",
"asset": "USDC"
}
}Changes
- breaking
the
request property's minLength was increased from0to36 - warning
the
request property's maxLength was set to36 - info
api tag
crate::trading::controller::openapi::conversionsadded - info
api tag
Conversionsremoved - info
added the required property
to the response with the status
- breaking