Operations
Every operation on MARKET.
The full operation table for MARKET. Each entry is dispatched through MapEngine::handle_request and matched on operation inside the protocols/market-lib crate.
Index
| Operation | Summary |
|---|---|
asset_genesis | Originate a new tradable asset; registers with MARS and economic schema. |
create_order | Place an order against an active book. |
modify_order | Modify an open order: price, size, expiry. |
cancel_order | Cancel an open order; reason recorded. |
create_bounty | Open a bounty (reverse auction) for a declared capability deliverable. |
query_orderbook | Query the orderbook by predicate; supports streaming. |
execute_trade | Execute a matched trade; settles through MADE. |
trade_history | Query historical trades; bounded by capability and treaty. |
Reference
asset_genesis
Originate a new tradable asset; registers with MARS and economic schema.
| Field | Value |
|---|---|
| Capability | map.market.asset_genesis |
| Idempotent | No — supply Idempotency-Key for safe retries |
{
"example": true
}Dispatched through the standard pipeline; see Engine pipeline for the 8 stages.
create_order
Place an order against an active book.
| Field | Value |
|---|---|
| Capability | map.market.create_order |
| Idempotent | No — supply Idempotency-Key for safe retries |
{
"example": true
}Dispatched through the standard pipeline; see Engine pipeline for the 8 stages.
modify_order
Modify an open order: price, size, expiry.
| Field | Value |
|---|---|
| Capability | map.market.modify_order |
| Idempotent | No — supply Idempotency-Key for safe retries |
{
"example": true
}Dispatched through the standard pipeline; see Engine pipeline for the 8 stages.
cancel_order
Cancel an open order; reason recorded.
| Field | Value |
|---|---|
| Capability | map.market.cancel_order |
| Idempotent | No — supply Idempotency-Key for safe retries |
{
"example": true
}Dispatched through the standard pipeline; see Engine pipeline for the 8 stages.
create_bounty
Open a bounty (reverse auction) for a declared capability deliverable.
| Field | Value |
|---|---|
| Capability | map.market.create_bounty |
| Idempotent | No — supply Idempotency-Key for safe retries |
{
"example": true
}Dispatched through the standard pipeline; see Engine pipeline for the 8 stages.
query_orderbook
Query the orderbook by predicate; supports streaming.
| Field | Value |
|---|---|
| Capability | map.market.query_orderbook |
| Idempotent | No — supply Idempotency-Key for safe retries |
{
"example": true
}Dispatched through the standard pipeline; see Engine pipeline for the 8 stages.
execute_trade
Execute a matched trade; settles through MADE.
| Field | Value |
|---|---|
| Capability | map.market.execute_trade |
| Idempotent | No — supply Idempotency-Key for safe retries |
{
"example": true
}Dispatched through the standard pipeline; see Engine pipeline for the 8 stages.
trade_history
Query historical trades; bounded by capability and treaty.
| Field | Value |
|---|---|
| Capability | map.market.trade_history |
| Idempotent | Yes |
{
"example": true
}Dispatched through the standard pipeline; see Engine pipeline for the 8 stages.