Skip to main content
POST
/
order_service.v1.OrderService
/
GetEstimatedFees
GetEstimatedFees
curl --request POST \
  --url https://api.fairground.fi/order_service.v1.OrderService/GetEstimatedFees \
  --header 'Authorization: Bearer <token>' \
  --header 'Connect-Protocol-Version: <connect-protocol-version>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "marketId": 123,
  "margin": 123,
  "leverage": 123,
  "size": 123,
  "price": 123
}
'
{
  "fees": 123
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Connect-Protocol-Version
enum<number>
required

Define the version of the Connect protocol

Available options:
1
Connect-Timeout-Ms
number

Define the timeout, in ms

Body

application/json
marketId
margin
number<float>
leverage
number<float>
size
number<float>
price
number<float>

Response

Success

fees
number<float>