Version: 1.0.0
Category: economic
Description: Complete catalog of trading operations for AI agents. See schemas/formats.md for format specifications.
trade-alpha-matterMsgTradeAlphaMatter/structs.structs.MsgTradeAlphaMatterPOST /cosmos/tx/v1beta1/txsRequired Fields: creator, resource, quantity, price, type
Optional Fields: orderId
| Field | Type | Format | Pattern | Description |
|---|---|---|---|---|
| creator | string | entity-id | ^1-[0-9]+$ |
Player initiating trade. Type 1 = Player. |
| resource | string | enum | AlphaMatter |
Resource being traded |
| quantity | number | – | minimum: 0 | Quantity in grams (will be converted to micrograms) |
| quantityMicrograms | string | – | ^[0-9]+$ |
Quantity in micrograms (blockchain format) |
| price | number | – | minimum: 0 | Price per unit |
| type | string | enum | buy, sell |
Trade type |
| orderId | string | order-id | – | Order ID if matching existing order |
Requirements:
| Requirement | Details |
|---|---|
| playerOnline | true |
| sufficientResources | true |
| validMarket | true |
Security: Alpha Matter cannot be stolen once refined.
{
"body": {
"messages": [
{
"@type": "/structs.structs.MsgTradeAlphaMatter",
"creator": "structs1...",
"resource": "AlphaMatter",
"quantityMicrograms": "100000000",
"price": "0.001",
"type": "sell"
}
]
}
}
trade-energyMsgTradeEnergy/structs.structs.MsgTradeEnergyPOST /cosmos/tx/v1beta1/txsRequired Fields: creator, quantity, price, type
Optional Fields: agreementId
| Field | Type | Format | Pattern | Description |
|---|---|---|---|---|
| creator | string | entity-id | ^1-[0-9]+$ |
Player initiating trade. Type 1 = Player. |
| quantity | number | – | minimum: 0 | Energy quantity in kW |
| price | number | – | minimum: 0 | Price per kW (in Alpha Matter) |
| type | string | enum | buy, sell, agreement |
Trade type |
| agreementId | string | entity-id | ^11-[0-9]+$ |
Agreement ID if using automated agreement. Type 11 = Agreement. |
Requirements:
| Requirement | Details |
|---|---|
| playerOnline | true |
| sufficientResources | true |
| energyEphemeral | Energy must be consumed immediately – cannot be stored |
{
"body": {
"messages": [
{
"@type": "/structs.structs.MsgTradeEnergy",
"creator": "structs1...",
"quantity": 100,
"price": 0.01,
"type": "buy"
}
]
}
}
place-market-orderMsgPlaceMarketOrder/structs.structs.MsgPlaceMarketOrderPOST /cosmos/tx/v1beta1/txsRequired Fields: creator, resource, quantity, price, orderType
| Field | Type | Format | Pattern | Description |
|---|---|---|---|---|
| creator | string | entity-id | ^1-[0-9]+$ |
Player placing order. Type 1 = Player. |
| resource | string | enum | AlphaMatter, Energy, GuildToken |
Resource type |
| quantity | number | – | minimum: 0 | Order quantity |
| price | number | – | minimum: 0 | Order price per unit |
| orderType | string | enum | buy, sell |
Order type |
Requirements:
| Requirement | Details |
|---|---|
| playerOnline | true |
| sufficientResources | true |
| validMarket | true |
Response:
| Field | Type | Values | Description |
|---|---|---|---|
| orderId | string | order-id format | Created order identifier |
| status | string | placed, filled, rejected |
Order result status |
{
"body": {
"messages": [
{
"@type": "/structs.structs.MsgPlaceMarketOrder",
"creator": "structs1...",
"resource": "AlphaMatter",
"quantity": 100,
"price": 0.001,
"orderType": "sell"
}
]
}
}
cancel-market-orderMsgCancelMarketOrder/structs.structs.MsgCancelMarketOrderPOST /cosmos/tx/v1beta1/txsRequired Fields: creator, orderId
| Field | Type | Format | Description |
|---|---|---|---|
| creator | string | entity-id (^1-[0-9]+$) |
Player cancelling order. Type 1 = Player. |
| orderId | string | order-id | Order ID to cancel |
Requirements:
| Requirement | Details |
|---|---|
| playerOnline | true |
| orderExists | true |
| orderOwner | true |
{
"body": {
"messages": [
{
"@type": "/structs.structs.MsgCancelMarketOrder",
"creator": "structs1...",
"orderId": "order-123"
}
]
}
}
Buy when prices are low, sell when prices are high.
Time trades based on market cycles.
| Phase | Strategy |
|---|---|
| Expansion | High demand, rising prices – sell |
| Consolidation | Balanced market, stable prices – trade normally |
| Conflict | Price volatility – buy if supply available |
| Recovery | Market normalization – buy low |
Profit from price differences across markets.
Coordinate trading within guild for collective benefit.
GET /structs/market/{resource} (returns MarketData)placeMarketOrder, tradeAlphaMatter, or tradeEnergyGET /structs/market/order/{orderId}GET /structs/player/{id}| Error Code | Description | Solution |
|---|---|---|
| INSUFFICIENT_RESOURCES | Not enough resources to complete trade | Check resource balance, mine more resources, or reduce trade quantity |
| ORDER_NOT_FOUND | Order ID does not exist | Verify order ID, check order status |
| ORDER_ALREADY_FILLED | Order has already been filled | Query order status before attempting to cancel |
| INVALID_PRICE | Price is outside acceptable range | Check current market prices, adjust price |
| MARKET_CLOSED | Market is currently closed | Wait for market to open, check market status |
| ENERGY_EXPIRED | Energy expired before trade completed (ephemeral) | Consume energy immediately, trade energy quickly |
| Field | Value |
|---|---|
| Verified Date | 2025-01-XX |
| Source | documentation |
| Notes | Trading operations based on economic documentation. Some trading actions may need code verification for exact message types and endpoints. |