Current price request
The method allows you to get the current price of an asset in relation to another
Header parameters
x-api-public-keystringOptional
Public API-key
x-api-signaturestringOptional
Signing the request body with a private API-key
Content-typestringOptionalExample:
Request content type
application/json
Body
Body of current price request
fromstringRequired
Outgoing coin
tostringRequired
Incoming coin
Responses
200Success
application/json
post
POST /api-gateway/price-rate HTTP/1.1
Host: ocp.onchainpay.io
Content-Type: application/json
Accept: */*
Content-Length: 19
{
"from": "",
"to": ""
}
200Success
{
"success": true,
"response": "2000"
}
Last updated