Estimate fee
GEThttps://api.n00.testnet.vega.rocks/api/v2/estimate/fee
Estimate the fee that would be incurred for submitting an order with the specified price and size on the market.
Request
Query Parameters
marketId stringrequired
Market ID, used to specify the fee factors.
price stringrequired
Price at which the potential order is expected to trade.
size uint64required
Size at which the potential order is expected to trade.
Responses
- 200
- 500
- default
A successful response.
- application/json
- Schema
- Example (from schema)
Schema
fee object
{
"fee": {
"infrastructureFee": "string",
"infrastructureFeeReferrerDiscount": "string",
"infrastructureFeeVolumeDiscount": "string",
"liquidityFee": "string",
"liquidityFeeReferrerDiscount": "string",
"liquidityFeeVolumeDiscount": "string",
"makerFee": "string",
"makerFeeReferrerDiscount": "string",
"makerFeeVolumeDiscount": "string"
}
}
An internal server error
- application/json
- Schema
- Example (from schema)
Schema
code int32
details object[]
message string
{
"code": 0,
"details": [
{
"@type": "string"
}
],
"message": "string"
}
An unexpected error response.
- application/json
- Schema
- Example (from schema)
Schema
code int32
details object[]
message string
{
"code": 0,
"details": [
{
"@type": "string"
}
],
"message": "string"
}
- curl
- python
- go
- nodejs
- CURL
curl -L -X GET 'https://api.n00.testnet.vega.rocks/api/v2/estimate/fee' \
-H 'Accept: application/json'
ResponseClear