GuidesBuild schemas by venue
Step zero — from nothing to your first trade
Section titled “Step zero — from nothing to your first trade”Gemini uses a venue-custodied cash account. You do not need a crypto wallet or gas asset for this venue.
- Create the account. Sign up at gemini.com, complete the venue’s regulated identity checks, and accept its current prediction-market terms. Expect government-ID KYC.
- Create credentials. In your venue account’s API settings, create a Trader API key and secret. Enable a time-based nonce, disable heartbeat, and use Unrestricted trusted-IP mode while Predictefy egress is not pinned. Predictefy uses the credential in-process and never retains it.
- Fund it. Deposit USD through Gemini’s own supported bank or card rail; no chain or crypto
collateral applies. Start with enough to meet the selected instrument’s published
quantityMinimumplus fees. Predictefy has no verified universal deposit minimum; confirm it with the venue. - Allow time. Setup is about 10 minutes after approval; KYC may take a day.
- Check access. Gemini controls product and geographic eligibility, so confirm both before funding.
What you need first
Section titled “What you need first”- Production status: Enabled for build, submit, and cancel.
- Wallet and chain: No wallet or chain transaction signs the order body. Gemini request auth is the only signature.
- Venue account: Yes. Use a funded Gemini account and accept the current prediction-market terms.
- Credentials: A caller-owned Trader API key and secret. Keep them in your process and send them only for submit, cancel, or refresh; Predictefy uses them in-process and never retains them.
- Funding: Fund the venue-custodied Gemini account through Gemini’s own rails. No chain or collateral token applies to this venue.
Gemini is a strict server-built, per-request HMAC transit integration. Check GET /v1/exec/venues before
integrating.
Build accepts no credential and performs no venue request. Send asset (the catalog outcome id), or
outcome + outcomeSide, with these plain fields:
| Field | Type | Required | Meaning |
|---|---|---|---|
isBuy | boolean | yes | true → Gemini buy; false → sell |
price | number in (0,1) | yes | Limit price, persisted as a decimal string |
size | number greater than zero | yes | Contract quantity, persisted as a decimal string |
timeInForce | good-til-cancel, immediate-or-cancel, or fill-or-kill | no | Defaults to good-til-cancel |
makerOrCancel | boolean | no | true requires maker-only behavior |
The catalog supplies the exact Gemini instrument symbol and yes/no outcome. The stored
version-1 artifact contains only { venue, buildVersion, request, body }, where request is pinned
to /v1/prediction-markets/order and body is the documented venue shape:
symbol, orderType: "limit", side, quantity, price, outcome, timeInForce, and optional
makerOrCancel: true. Gemini also offers stop-limit orders. Predictefy does not accept them yet:
today the build accepts limit orders only, and requests carrying orderType or stopPrice are
refused. Stop-limit support is coming, and this guide will describe it when it is available.
Notional is quantity × price and passes the same build and submit caps as every other order venue.
Gemini also publishes instrument-specific quantityIncrement, quantityMinimum, priceIncrement,
and priceMinimum values in contract metadata; choose aligned inputs or Gemini will reject the
order without placing it.
On the catalog record, marketId is gemi-{instrumentSymbol} with the symbol’s case preserved,
for example gemi-GEMI-BTC-100K-2026. Each outcome’s venue-native id (nativeOutcomeId) is
GEMI:{eventTicker}:{instrumentSymbol}:{yes|no}; the event ticker is baked into the id, so it
decodes without a separate symbol lookup.
Submit { executionId, apiKey, apiSecret }. Master API keys must also supply account with the
Gemini account name (for example, primary); account-scoped keys omit it. Only after version, shape,
request-path, notional, and artifact-bounds checks pass does Predictefy read the credentials. It
constructs { request, nonce, account, ...body } when account is present (otherwise
{ request, nonce, ...body }), base64-encodes the JSON, computes the hex HMAC-SHA384 with
apiSecret, and sends one empty-body POST with Gemini’s three auth headers. Credentials and
generated headers are excluded from both persisted artifacts and logs.
Gemini holds the account balance, just as a venue holds other venue-account balances; this is fund
custody by Gemini, not custody by Predictefy. Predictefy never holds those funds and never retains
the API key or secret. The same private REST family supports cancel and status: cancel builds a new
zero-notional artifact containing the stored integer orderId, while status refresh signs
/orders/active and then /orders/history with the caller’s transient credentials. No automatic
background poll is possible because no credential is retained.