Name | Lookup | Parameters | |
|---|---|---|---|
| place_order | 7100 | 4 | |
| update_order | 7101 | 3 | |
| cancel_order | 7102 | 1 | |
| fill_order | 7103 | 2 | |
| set_market_feeder | 7104 | 1 |
Name | Lookup | Attributes | |
|---|---|---|---|
| OrderCreated | 7100 | ["OrderIdNonce","AccountId","CurrencyId","CurrencyId","BalanceOut","BalanceOut","OrderRatio<Ratio>"] | |
| OrderCancelled | 7101 | ["AccountId","OrderIdNonce"] | |
| OrderUpdated | 7102 | ["OrderIdNonce","AccountId","BalanceOut","OrderRatio<Ratio>","BalanceOut"] | |
| OrderFulfillment | 7103 | ["OrderIdNonce","AccountId","AccountId","bool","BalanceOut","CurrencyId","CurrencyId","Ratio"] | |
| FeederChanged | 7104 | ["FeederId"] |
Name | Type | |
|---|---|---|
| Orders | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["U64"],"value":"pallet_order_book:pallet:Order","keys_id":11,"value_id":891}} | |
| UserOrders | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat","Twox64Concat"],"key_vec":["AccountId","U64"],"value":"NULL","keys_id":735,"value_id":42}} | |
| OrderIdNonceStore | {"origin":"PlainType","plain_type":"U64","PlainTypeValue":11} | |
| MarketFeederId | {"origin":"PlainType","plain_type":"altair_runtime:OriginCaller","PlainTypeValue":334} |
Name | Type | Value | |
|---|---|---|---|
| MinFulfillmentAmountNative | U128 | 0000e8890423c78a0000000000000000 | |
| NativeDecimals | U32 | 12000000 |
Name | Docs |
|---|---|
| SameCurrencyIds | Error when order is placed attempting to exchange currencies of thesame type. |
| BelowMinFulfillmentAmount | Error when an account cannot reserve or transfer the amount. |
| InvalidCurrencyId | Error when an order is placed with a currency that is not in the`AssetRegistry`. |
| 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. |
| FulfillAmountTooLarge | Error when the provided amount to fulfill is too large for theorder. |
| MarketFeederNotFound | There is not feeder set for market conversion ratios |
| MarketRatioNotFound | Expected a market ratio for the given pair of currencies. |