MAP Docs
MARKET

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

OperationSummary
asset_genesisOriginate a new tradable asset; registers with MARS and economic schema.
create_orderPlace an order against an active book.
modify_orderModify an open order: price, size, expiry.
cancel_orderCancel an open order; reason recorded.
create_bountyOpen a bounty (reverse auction) for a declared capability deliverable.
query_orderbookQuery the orderbook by predicate; supports streaming.
execute_tradeExecute a matched trade; settles through MADE.
trade_historyQuery historical trades; bounded by capability and treaty.

Reference

asset_genesis

Originate a new tradable asset; registers with MARS and economic schema.

FieldValue
Capabilitymap.market.asset_genesis
IdempotentNo — 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.

FieldValue
Capabilitymap.market.create_order
IdempotentNo — 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.

FieldValue
Capabilitymap.market.modify_order
IdempotentNo — 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.

FieldValue
Capabilitymap.market.cancel_order
IdempotentNo — 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.

FieldValue
Capabilitymap.market.create_bounty
IdempotentNo — 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.

FieldValue
Capabilitymap.market.query_orderbook
IdempotentNo — 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.

FieldValue
Capabilitymap.market.execute_trade
IdempotentNo — 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.

FieldValue
Capabilitymap.market.trade_history
IdempotentYes
{
  "example": true
}

Dispatched through the standard pipeline; see Engine pipeline for the 8 stages.

On this page