create_offer
Create a prediction market offer by locking totalAmount in escrow. Specify prediction direction, amount, leverage, duration, and offer terms.
Instructions
Create a prediction market offer. The creator locks totalAmount in escrow.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Base amount | |
| userId | No | External user ID. Defaults to your own user ID. | |
| currency | Yes | Currency code (e.g. "NGN", "GHS", "USD") | |
| leverage | Yes | Leverage multiplier (e.g. "5x") | |
| rateMode | No | Rate mode: fixed | market_at_creation | market_at_engagement | |
| userName | No | Creator's display name | |
| offerType | Yes | Offer type (e.g. "buy", "sell") | |
| userEmail | No | Creator's email for notifications | |
| advertiser | Yes | Display name shown on the marketplace | |
| cutoffDate | No | ISO date to close engagement (for specific_date cutoff) | |
| cutoffType | No | Engagement cutoff: immediate | duration | specific_date | |
| prediction | Yes | Price direction prediction: "up" or "down" | |
| totalAmount | Yes | Total leveraged amount locked in escrow | |
| exchangeRate | No | Exchange rate (required when rateMode is "fixed") | |
| cutoffMinutes | No | Minutes after creation to close engagement (for duration cutoff) | |
| durationHours | Yes | Offer duration in hours (e.g. 24, 48, 72) |