Name | Lookup | Parameters | |
---|---|---|---|
create_order | 6c00 | 4 | |
user_update_order | 6c01 | 3 | |
user_cancel_order | 6c02 | 1 | |
fill_order_full | 6c03 | 1 | |
add_trading_pair | 6c04 | 3 | |
rm_trading_pair | 6c05 | 2 | |
update_min_order | 6c06 | 3 | |
fill_order_partial | 6c07 | 2 |
Name | Lookup | Attributes | |
---|---|---|---|
OrderCreated | 6c00 | ["OrderIdNonce","AccountId","AssetCurrencyId","AssetCurrencyId","Balance","Balance","SellRatio"] | |
OrderCancelled | 6c01 | ["AccountId","OrderIdNonce"] | |
OrderUpdated | 6c02 | ["OrderIdNonce","AccountId","Balance","SellRatio","Balance"] | |
OrderFulfillment | 6c03 | ["OrderIdNonce","AccountId","AccountId","bool","Balance","AssetCurrencyId","AssetCurrencyId","SellRatio"] | |
TradingPairAdded | 6c04 | ["AssetCurrencyId","AssetCurrencyId","Balance"] | |
TradingPairRemoved | 6c05 | ["AssetCurrencyId","AssetCurrencyId"] | |
MinOrderUpdated | 6c06 | ["AssetCurrencyId","AssetCurrencyId","Balance"] |
Name | Type | |
---|---|---|
Orders | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["U64"],"value":"pallet_order_book:pallet:Order","keys_id":10,"value_id":676}} | |
UserOrders | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat","Twox64Concat"],"key_vec":["AccountId","U64"],"value":"pallet_order_book:pallet:Order","keys_id":677,"value_id":676}} | |
OrderIdNonceStore | {"origin":"PlainType","plain_type":"U64","PlainTypeValue":10} | |
AssetPairOrders | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat","Twox64Concat"],"key_vec":["cfg_types:tokens:CurrencyId","cfg_types:tokens:CurrencyId"],"value":"Vec<U64>","keys_id":678,"value_id":679}} | |
TradingPair | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat","Twox64Concat"],"key_vec":["cfg_types:tokens:CurrencyId","cfg_types:tokens:CurrencyId"],"value":"U128","keys_id":678,"value_id":6}} |
Name | Type | Value | |
---|---|---|---|
OrderPairVecSize | U32 | e8030000 | |
MinFulfillmentAmountNative | U128 | 0000e8890423c78a0000000000000000 |
Name | Docs |
---|---|
AssetPairOrdersOverflow | Error when the number of orders for a trading pair has exceeded theBoundedVec size for the order pair for the currency pair inquestion. |
ConflictingAssetIds | Error when order is placed attempting to exchange assets of the sametype. |
InvalidBuyAmount | Error when an account cannot reserve or transfer the amountcurrently `0`. |
InvalidMinimumFulfillment | Error when min order amount is invalid, currently `0` |
InsufficientAssetFunds | Error when an account specifies an invalid buy price -- currentlyspecified for trade, or amount to be fulfilled. |
InvalidMaxPrice | Error when Max price ratio is invalid |
InsufficientOrderSize | Error when an order amount is too small |
InvalidAssetId | Error when an order is placed with a currency that is not in theasset registry. |
InvalidTradingPair | Error when a trade is using an invalid trading pair.Currently can happen when there is not a minimum order sizedefined for the trading pair. |
OrderNotFound | Error when an operation is attempted on an order id that is not instorage. |
Unauthorised | Error when a user attempts an action on an order they are notauthorised to perform, such as cancelling another accounts order. |
BalanceConversionErr | Error when unable to convert fee balance to asset balance when assetout matches fee currency |
BuyAmountTooLarge | Error when the provided partial buy amount is too large. |