Orderbook Endpoints
validateOrder
Validates an order to make sure the event is ongoing, the odds and contracts are within an expected range.
Method: query
isSigned: false
Parameters
Name | Type | Description | Optional |
---|---|---|---|
marketId | Nat | The id of the market you wish to validate an order on | No |
orderData | PlaceOrder: public type PlaceOrder = { side : OrderSide; odds : Nat; // in E8S so 200_000_000 = 2.0 decimal odds contracts : Nat; // in E8S so 100_000_000 = 1 contract }; public type OrderSide = { #buy; #sell; }; | The object containing order data you wish to validate | No |
Response
Returns: ?Nat
where the Nat is the cost of the order in E8S