Skip to main content
Version: testnet (v0.71)

estimateOrder

Return an estimation of the potential cost for a new order

estimateOrder(
marketId: ID!
partyId: ID!
price: String
size: String!
side: Side!
timeInForce: OrderTimeInForce!
expiration: Timestamp
type: OrderType!
): OrderEstimate!

Arguments

estimateOrder.marketId ● ID! non-null scalar

ID of the market to place the order

estimateOrder.partyId ● ID! non-null scalar

ID of the party placing the order

estimateOrder.price ● String scalar

Price of the asset

estimateOrder.size ● String! non-null scalar

Size of the order

estimateOrder.side ● Side! non-null enum

Side of the order (Buy or Sell)

estimateOrder.timeInForce ● OrderTimeInForce! non-null enum

TimeInForce of the order

estimateOrder.expiration ● Timestamp scalar

Expiration of the the order

estimateOrder.type ● OrderType! non-null enum

Type of the order

Type

OrderEstimate object

An estimate of the fee to be paid by the order