Name | Lookup | Parameters | |
---|---|---|---|
create_orderbook | 3900 | 5 | |
delete_orderbook | 3901 | 1 | |
update_orderbook | 3902 | 5 | |
change_orderbook_status | 3903 | 2 | |
place_limit_order | 3904 | 5 | |
cancel_limit_order | 3905 | 2 | |
cancel_limit_orders_batch | 3906 | 1 | |
execute_market_order | 3907 | 3 |
Name | Lookup | Attributes | |
---|---|---|---|
OrderBookCreated | 3900 | ["OrderBookId<AssetIdOf, DEXId>","Option<AccountId>"] | |
OrderBookDeleted | 3901 | ["OrderBookId<AssetIdOf, DEXId>"] | |
OrderBookStatusChanged | 3902 | ["OrderBookId<AssetIdOf, DEXId>","OrderBookStatus"] | |
OrderBookUpdated | 3903 | ["OrderBookId<AssetIdOf, DEXId>"] | |
LimitOrderPlaced | 3904 | ["OrderBookId<AssetIdOf, DEXId>","OrderId","AccountId","PriceVariant","OrderPrice","OrderVolume","MomentOf"] | |
LimitOrderConvertedToMarketOrder | 3905 | ["OrderBookId<AssetIdOf, DEXId>","AccountId","PriceVariant","OrderAmount","OrderPrice"] | |
LimitOrderIsSplitIntoMarketOrderAndLimitOrder | 3906 | ["OrderBookId<AssetIdOf, DEXId>","AccountId","PriceVariant","OrderAmount","OrderPrice","OrderId"] | |
LimitOrderCanceled | 3907 | ["OrderBookId<AssetIdOf, DEXId>","OrderId","AccountId","CancelReason"] | |
LimitOrderExecuted | 3908 | ["OrderBookId<AssetIdOf, DEXId>","OrderId","AccountId","PriceVariant","OrderPrice","OrderAmount"] | |
LimitOrderFilled | 3909 | ["OrderBookId<AssetIdOf, DEXId>","OrderId","AccountId"] | |
LimitOrderUpdated | 390a | ["OrderBookId<AssetIdOf, DEXId>","OrderId","AccountId","OrderVolume"] | |
MarketOrderExecuted | 390b | ["OrderBookId<AssetIdOf, DEXId>","AccountId","PriceVariant","OrderAmount","OrderPrice","Option<AccountId>"] | |
ExpirationFailure | 390c | ["OrderBookId<AssetIdOf, DEXId>","OrderId","DispatchError"] | |
AlignmentFailure | 390d | ["OrderBookId<AssetIdOf, DEXId>","DispatchError"] |
Name | Type | |
---|---|---|
OrderBooks | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["order_book:types:OrderBookId"],"value":"order_book:order_book:OrderBook","keys_id":152,"value_id":787}} | |
LimitOrders | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat","Blake2_128Concat"],"key_vec":["order_book:types:OrderBookId","U128"],"value":"order_book:limit_order:LimitOrder","keys_id":789,"value_id":790}} | |
Bids | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat","Blake2_128Concat"],"key_vec":["order_book:types:OrderBookId","common:balance_unit:BalanceUnit"],"value":"Vec<U128>","keys_id":791,"value_id":792}} | |
Asks | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat","Blake2_128Concat"],"key_vec":["order_book:types:OrderBookId","common:balance_unit:BalanceUnit"],"value":"Vec<U128>","keys_id":791,"value_id":792}} | |
AggregatedBids | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["order_book:types:OrderBookId"],"value":"Vec<Tuple:common:balance_unit:BalanceUnitcommon:balance_unit:BalanceUnit>","keys_id":152,"value_id":793}} | |
AggregatedAsks | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["order_book:types:OrderBookId"],"value":"Vec<Tuple:common:balance_unit:BalanceUnitcommon:balance_unit:BalanceUnit>","keys_id":152,"value_id":793}} | |
UserLimitOrders | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat","Blake2_128Concat"],"key_vec":["AccountId","order_book:types:OrderBookId"],"value":"Vec<U128>","keys_id":797,"value_id":792}} | |
ExpirationsAgenda | {"origin":"Map","n_map_type":{"hashers":["Identity"],"key_vec":["U32"],"value":"Vec<Tuple:order_book:types:OrderBookIdU128>","keys_id":4,"value_id":798}} | |
AlignmentCursor | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["order_book:types:OrderBookId"],"value":"U128","keys_id":152,"value_id":6}} | |
IncompleteExpirationsSince | {"origin":"PlainType","plain_type":"U32","PlainTypeValue":4} |
Name | Docs |
---|---|
UnknownOrderBook | Order book does not exist for this trading pair |
InvalidOrderBookId | Invalid order book id |
OrderBookAlreadyExists | Order book already exists for this trading pair |
UnknownLimitOrder | Limit order does not exist for this trading pair and order id |
LimitOrderAlreadyExists | Limit order already exists for this trading pair and order id |
LimitOrderStorageOverflow | It is impossible to insert the limit order because the bounds have been reached |
UpdateLimitOrderError | It is impossible to update the limit order |
DeleteLimitOrderError | It is impossible to delete the limit order |
BlockScheduleFull | Expiration schedule for expiration block is full |
ExpirationNotFound | Could not find expiration in given block schedule |
NoDataForPrice | There are no bids/asks for the price |
NoAggregatedData | There are no aggregated bids/asks for the order book |
NotEnoughLiquidityInOrderBook | There is not enough liquidity in the order book to cover the deal |
ForbiddenToCreateOrderBookWithSameAssets | Cannot create order book with equal base and target assets |
NotAllowedQuoteAsset | The asset is not allowed to be quote. Only the dex base asset can be a quote asset for order book |
NotAllowedDEXId | Orderbooks cannot be created with given dex id. |
SyntheticAssetIsForbidden | Synthetic assets are forbidden for order book. |
UserHasNoNft | User cannot create an order book with NFT if they don't have NFT |
InvalidLifespan | Lifespan exceeds defined limits |
InvalidOrderAmount | The order amount (limit or market) does not meet the requirements |
InvalidLimitOrderPrice | The limit order price does not meet the requirements |
LimitOrderPriceIsTooFarFromSpread | User cannot set the price of limit order too far from actual market price |
TradingIsForbidden | At the moment, Trading is forbidden in the current order book |
PlacementOfLimitOrdersIsForbidden | At the moment, Users cannot place new limit orders in the current order book |
CancellationOfLimitOrdersIsForbidden | At the moment, Users cannot cancel their limit orders in the current order book |
UserHasMaxCountOfOpenedOrders | User has the max available count of open limit orders in the current order book |
PriceReachedMaxCountOfLimitOrders | It is impossible to place the limit order because bounds of the max count of orders at the current price have been reached |
OrderBookReachedMaxCountOfPricesForSide | It is impossible to place the limit order because bounds of the max count of prices for the side have been reached |
AmountCalculationFailed | An error occurred while calculating the amount |
PriceCalculationFailed | An error occurred while calculating the price |
Unauthorized | Unauthorized action |
InvalidAsset | Invalid asset |
InvalidTickSize | Invalid tick size |
InvalidStepLotSize | Invalid step lot size |
InvalidMinLotSize | Invalid min lot size |
InvalidMaxLotSize | Invalid max lot size |
TickSizeAndStepLotSizeAreTooBig | Tick size & step lot size are too big and their multiplication overflows Balance |
TickSizeAndStepLotSizeLosePrecision | Product of tick and step lot sizes goes out of precision. It must be accurately represented by fixed-precision float to prevent rounding errors. I.e. the product should not have more than 18 digits after the comma. |
MaxLotSizeIsMoreThanTotalSupply | Max lot size cannot be more that total supply of base asset |
SlippageLimitExceeded | Indicated limit for slippage has not been met during transaction execution. |
MarketOrdersAllowedOnlyForIndivisibleAssets | Market orders are allowed only for indivisible assets |
ForbiddenStatusToDeleteOrderBook | It is possible to delete an order-book only with the statuses: OnlyCancel or Stop |
OrderBookIsNotEmpty | It is possible to delete only empty order-book |
ForbiddenStatusToUpdateOrderBook | It is possible to update an order-book only with the statuses: OnlyCancel or Stop |
OrderBookIsLocked | Order Book is locked for technical maintenance. Try again later. |