Estimate margin
Estimate the margin that would be required for submitting this order
Query Parameters
- SIDE_UNSPECIFIED: Default value, always invalid
- SIDE_BUY: Buy order
- SIDE_SELL: Sell order
- TYPE_UNSPECIFIED: Default value, always invalid
- TYPE_LIMIT: Used for Limit orders
- TYPE_MARKET: Used for Market orders
- TYPE_NETWORK: Used for orders where the initiating party is the network (with distressed parties)
marketId string required
Market ID for the order.
partyId string required
Party ID of the order.
side string
Possible values: [SIDE_UNSPECIFIED
, SIDE_BUY
, SIDE_SELL
]
Default value: SIDE_UNSPECIFIED
Order side - indicator for Seller or Buyer side.
type string
Possible values: [TYPE_UNSPECIFIED
, TYPE_LIMIT
, TYPE_MARKET
, TYPE_NETWORK
]
Default value: TYPE_UNSPECIFIED
Type of the order.
size uint64 required
Size of order.
price string required
Price of the asset.
Responses
- 200
- 500
- default
A successful response.
application/json
Schema
Example (from schema)
Schema
marginLevels object
Summary of the estimated margins for this order if it were to trade now.
asset string
collateralReleaseLevel string
initialMargin string
maintenanceMargin string
marketId string
partyId string
searchLevel string
timestamp int64
{
"marginLevels": {
"asset": "string",
"collateralReleaseLevel": "string",
"initialMargin": "string",
"maintenanceMargin": "string",
"marketId": "string",
"partyId": "string",
"searchLevel": "string",
"timestamp": "string"
}
}
An internal server error
application/json
Schema
Example (from schema)
Schema
code int32
details object[]
@type string
message string
{
"code": 0,
"details": [
{
"@type": "string"
}
],
"message": "string"
}
An unexpected error response.
application/json
Schema
Example (from schema)
Schema
code int32
details object[]
@type string
message string
{
"code": 0,
"details": [
{
"@type": "string"
}
],
"message": "string"
}
Loading...