Skip to content

Trading Quickstart

This page describes the supported openfish.me trading model: Bridge deposits, CLOB orders, and ledger balances.

Use the Browse API for app-ready market cards:

Terminal window
curl "https://api.openfish.me/browse/markets?status=LIVE&limit=5"

Each market includes outcome data used by the frontend. Use the outcome/token identifier returned by the API when constructing orders.

For localized text:

Terminal window
curl "https://api.openfish.me/browse/markets?status=LIVE&locale=ja&limit=5"

Deposit the supported BSC platform meme token through the Bridge:

Terminal window
curl -X POST "https://bridge.openfish.me/deposits" \
-H "Content-Type: application/json" \
-d '{"userAddress":"0xYourWalletAddress"}'

Send only the supported platform meme ERC-20 on BSC to the returned deposit address. After confirmation, the Bridge credits your Openfish ledger balance.

Authenticated trading requests use the CLOB API:

https://api.openfish.me

Openfish uses:

  • L1 wallet signature to derive API credentials.
  • L2 HMAC credentials for trading requests.

If you are using the SDK, keep the base URL pointed at https://api.openfish.me. If you call REST directly, sign requests according to the authentication docs and include the required Openfish headers.

An order references a market outcome identifier, price, size, side, expiration, and signature data. The server validates available ledger balance before accepting the order.

High-level flow:

  1. Build order payload.
  2. Sign order.
  3. Send POST /order with L2 headers.
  4. Read response status.

Possible statuses include:

StatusMeaning
liveRemainder is resting on the book.
matchedOrder filled immediately.
delayedOrder is temporarily delayed by matching configuration.
cancelledOrder was cancelled or expired.

Common private endpoints:

TaskEndpoint
Submit orderPOST /order
Submit batch ordersPOST /orders
Cancel one orderDELETE /order
Cancel multiple ordersDELETE /orders
Cancel all ordersDELETE /cancel-all
List own ordersGET /data/orders
List own tradesGET /data/trades

Use the WebSocket user channel for fill and order status updates when available.

When you want to leave the platform, request a BSC platform meme withdrawal:

Terminal window
curl -X POST "https://bridge.openfish.me/withdrawals" \
-H "Content-Type: application/json" \
-d '{
"userAddress": "0xYourWalletAddress",
"toAddress": "0xDestinationBscAddress",
"amount": "10",
"toChainId": "56",
"tokenAddress": "0xaE71fd8baCc2f17C43a01C3F4aFF6dEEbc194444"
}'

Use /supported-assets to confirm the current token address before integrating.

ProblemLikely cause
Insufficient balanceYour Openfish ledger balance is too low or already reserved by open orders.
Invalid signatureL1/L2 authentication headers do not match the wallet or API credentials.
Invalid tick sizePrice does not align with the market’s allowed increment.
Unsupported bridge assetDeposit or withdrawal token is not the configured BSC platform meme ERC-20.