Documentation Index
Fetch the complete documentation index at: https://docs.bayse.markets/llms.txt
Use this file to discover all available pages before exploring further.
Base URL
Authentication
Authentication requirements vary by endpoint. See the Authentication guide for full details.Public
No authentication required.
Session
Requires
x-auth-token + x-device-id (from login).Read
Requires
X-Public-Key header.Write
Requires
X-Public-Key + X-Timestamp + X-Signature.Error responses
All errors return a consistent JSON body:| Code | Meaning |
|---|---|
| 400 | Bad request — invalid parameters. |
| 401 | Unauthorized — missing or invalid credentials. |
| 404 | Not found — resource does not exist. |
| 422 | Unprocessable entity — validation failed. |
| 500 | Internal server error. |
Pagination
List endpoints usepage and size query parameters:
pagination object:
Request tracing
You can provide a custom trace ID for debugging:Endpoints
System
Health check
GET /healthVersion
GET /versionUser
Login
POST /v1/user/loginCreate API key
POST /v1/user/me/api-keysList API keys
GET /v1/user/me/api-keysRevoke API key
DELETE /v1/user/me/api-keys/{keyId}Rotate API key
POST /v1/user/me/api-keys/{keyId}/rotateTrading
List events
GET /v1/pm/eventsGet event
GET /v1/pm/events/{eventId}Get quote
POST /v1/pm/events/{eventId}/markets/{marketId}/quotePlace order
POST /v1/pm/events/{eventId}/markets/{marketId}/ordersGet portfolio
GET /v1/pm/portfolioList orders
GET /v1/pm/ordersGet order
GET /v1/pm/orders/{orderId}Cancel order
DELETE /v1/pm/orders/{orderId}Mint shares
POST /v1/pm/markets/{marketId}/mintBurn shares
POST /v1/pm/markets/{marketId}/burnActivities
GET /v1/pm/activitiesWallet
Get assets
GET /v1/wallet/assetsMarket data
Price history
GET /v1/pm/events/{eventId}/price-historyOrder book
GET /v1/pm/booksTicker
GET /v1/pm/markets/{marketId}/tickerTrades
GET /v1/pm/trades