MAP Docs
MARKET

CLI

`map invoke MARKET` recipes for every operation.

The CLI is a Rust binary at services/map-cli. After map login you can dispatch any operation on MARKET from the shell.

Common flags

FlagEffect
--input <json>Operation payload (or read from stdin)
--version v1.0.0Pin a specific protocol version
--idempotency-key <k>Required for safe retries of state-changing ops
--audit-tailPrint the audit record(s) produced
--output humanPretty-print response (default: json)

Recipes

asset_genesis

map invoke MARKET asset_genesis --input '{"example":true}'

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

Capability: map.market.asset_genesis

create_order

map invoke MARKET create_order --input '{"example":true}'

Place an order against an active book.

Capability: map.market.create_order

modify_order

map invoke MARKET modify_order --input '{"example":true}'

Modify an open order: price, size, expiry.

Capability: map.market.modify_order

cancel_order

map invoke MARKET cancel_order --input '{"example":true}'

Cancel an open order; reason recorded.

Capability: map.market.cancel_order

create_bounty

map invoke MARKET create_bounty --input '{"example":true}'

Open a bounty (reverse auction) for a declared capability deliverable.

Capability: map.market.create_bounty

query_orderbook

map invoke MARKET query_orderbook --input '{"example":true}'

Query the orderbook by predicate; supports streaming.

Capability: map.market.query_orderbook

execute_trade

map invoke MARKET execute_trade --input '{"example":true}'

Execute a matched trade; settles through MADE.

Capability: map.market.execute_trade

trade_history

map invoke MARKET trade_history --input '{"example":true}'

Query historical trades; bounded by capability and treaty.

Capability: map.market.trade_history

See CLI reference for global flags, login, MCP integration.

On this page