crate::trading::controller::openapi::conversions
POST /v1/customers/{customer_id}/conversions/quote
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
{
"from_asset": {
"amount": "1024.00",
"asset": "USDC"
},
"to_asset": {
"amount": "1024.00",
"asset": "USDC"
}
}Response
Example response
{
"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",
"expire_time": 30,
"valid_until_timestamp": "2025-08-21T07:56:57.981Z"
}Changes
- info
api tag
crate::trading::controller::openapi::conversionsadded - info
api tag
Conversionsremoved - info
added the required property
to the response with the status
- info