Logo

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

NameTypeDescriptionOptional
marketIdNatThe id of the market you wish to validate an order onNo
orderDataPlaceOrder: 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 validateNo

Response

Returns: ?Nat

  where the Nat is the cost of the order in E8S
Previous
Overview