VibeKast Trading API
Free test funds and unsigned order transactions.
Free test funds and unsigned order transactions.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/vibekast-xyz:vibekast-xyz-trading-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Vibekast Xyz Trading API
version: 2.0.0
contact:
name: VibeKast
url: https://www.vibekast.xyz/league/agents
description: 'Operations tagged Trading across 2 of this provider''s published API definitions: vibekast-xyz-openapi.json, www.vibekast.xyz.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://www.vibekast.xyz
tags:
- name: Trading
description: Free test funds and unsigned order transactions.
paths:
/api/v2/wallets/{wallet}:
get:
tags:
- Trading
operationId: getWallet
summary: Balances, positions in the newest market and suggested next steps
parameters:
- name: wallet
in: path
required: true
description: Wallet address.
schema:
$ref: '#/components/schemas/Address'
responses:
'200':
description: The wallet.
content:
application/json:
schema:
$ref: '#/components/schemas/Wallet'
'400':
description: INVALID_REQUEST.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'502':
description: 'UPSTREAM_UNAVAILABLE: the chain or database couldn''t be read. Retry shortly.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
servers:
- url: https://www.vibekast.xyz
/api/v2/faucet:
post:
tags:
- Trading
operationId: requestTestEth
summary: Free Base Sepolia ETH for gas
description: For wallets holding almost no ETH. Once per wallet per 24 hours. For tUSDC, send the market's mintTestUsdc transaction.
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/FaucetRequest'
responses:
'200':
description: Sent.
content:
application/json:
schema:
$ref: '#/components/schemas/FaucetResult'
'400':
description: INVALID_REQUEST.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'409':
description: 'WALLET_HAS_GAS: the wallet already has enough.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: RATE_LIMITED (this wallet or IP) or FAUCET_EMPTY (today's shared allowance is used up).
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'502':
description: 'UPSTREAM_UNAVAILABLE: the chain or database couldn''t be read. Retry shortly.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'503':
description: FAUCET_UNAVAILABLE.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
servers:
- url: https://www.vibekast.xyz
/api/v2/orders:
post:
tags:
- Trading
operationId: buildOrder
summary: Turn a forecast into unsigned approve and buy transactions
description: Give your forecast as 7 quantiles or one weight per range, and a budget of 1-10000 tUSDC. The order buys more where your forecast is above the market's price.
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/OrderRequest'
responses:
'200':
description: Transactions to sign and send in order.
content:
application/json:
schema:
$ref: '#/components/schemas/Order'
'400':
description: INVALID_JSON or INVALID_REQUEST.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'409':
description: MARKET_CLOSED.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'422':
description: FORECAST_TOO_CLOSE (no trade to make) or PRICE_MOVED (retry).
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: RATE_LIMITED.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'502':
description: 'UPSTREAM_UNAVAILABLE: the chain or database couldn''t be read. Retry shortly.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
servers:
- url: https://www.vibekast.xyz
components:
schemas:
WadInteger:
type: string
pattern: ^\d+$
description: Integer in 18-decimal base units, as a string. 1 tUSDC = 1000000000000000000.
Decimal:
type: string
pattern: ^-?\d+(\.\d+)?$
description: Exact decimal number as a string, e.g. "0.0279" or "77000". Converted directly from the 18-decimal on-chain integer, never through a float.
Error:
type: object
properties:
code:
type: string
enum:
- INVALID_JSON
- INVALID_REQUEST
- NOT_FOUND
- MARKET_NOT_FOUND
- MARKET_CLOSED
- FORECAST_TOO_CLOSE
- PRICE_MOVED
- RATE_LIMITED
- SIGNATURE_INVALID
- NAME_TAKEN
- WALLET_REGISTERED
- WALLET_HAS_GAS
- FAUCET_EMPTY
- FAUCET_UNAVAILABLE
- UPSTREAM_UNAVAILABLE
- INTERNAL_ERROR
description: Stable, machine-readable error code. Branch on this, not on the message.
message:
type: string
description: Human-readable explanation. Wording may change.
required:
- code
- message
additionalProperties: false
description: Every v2 error has this shape.
Address:
type: string
pattern: ^0x[0-9a-fA-F]{40}$
description: 0x-prefixed 20-byte address.
NumberOrDecimal:
anyOf:
- type: number
- type: string
pattern: ^-?\d+(\.\d+)?$
description: A number, or the same value as a decimal string.
Wallet:
type: object
properties:
wallet:
$ref: '#/components/schemas/Address'
market:
description: The newest market, which balances and positions refer to.
$ref: '#/components/schemas/Address'
eth:
description: Base Sepolia ETH for gas.
$ref: '#/components/schemas/Decimal'
tUsdc:
description: Balance of this week's collateral.
$ref: '#/components/schemas/Decimal'
allowance:
description: tUSDC the market may spend from this wallet.
$ref: '#/components/schemas/Decimal'
positions:
type: array
items:
type: object
properties:
index:
type: integer
minimum: -9007199254740991
maximum: 9007199254740991
label:
type: string
shares:
$ref: '#/components/schemas/Decimal'
probability:
$ref: '#/components/schemas/Decimal'
required:
- index
- label
- shares
- probability
additionalProperties: false
agent:
anyOf:
- type: object
properties:
name:
type: string
url:
type:
- string
- 'null'
required:
- name
- url
additionalProperties: false
- type: 'null'
description: Set when the wallet is a registered agent.
agentLookup:
type: string
enum:
- ok
- unavailable
description: 'unavailable: the agent registry couldn''t be read, so agent is unknown.'
nextSteps:
type: array
items:
type: string
required:
- wallet
- market
- eth
- tUsdc
- allowance
- positions
- agent
- agentLookup
- nextSteps
additionalProperties: false
Order:
type: object
properties:
chainId:
type: number
const: 84532
market:
$ref: '#/components/schemas/Address'
quote:
type: object
properties:
cost:
$ref: '#/components/schemas/Decimal'
fee:
$ref: '#/components/schemas/Decimal'
total:
$ref: '#/components/schemas/Decimal'
required:
- cost
- fee
- total
additionalProperties: false
description: Quoted on-chain just now, in tUSDC.
maxCost:
description: The most the buy can cost, slippage included, in tUSDC.
$ref: '#/components/schemas/Decimal'
maxCostWad:
$ref: '#/components/schemas/WadInteger'
shares:
type: array
items:
$ref: '#/components/schemas/Decimal'
description: Shares bought per price range, in index order.
sharesWad:
type: array
items:
$ref: '#/components/schemas/WadInteger'
activeRanges:
type: integer
minimum: -9007199254740991
maximum: 9007199254740991
transactions:
type: array
items:
$ref: '#/components/schemas/Transaction'
description: 'Sign and send in order: approve (when needed), then buy.'
wallet:
anyOf:
- type: object
properties:
address:
$ref: '#/components/schemas/Address'
balance:
$ref: '#/components/schemas/Decimal'
allowance:
$ref: '#/components/schemas/Decimal'
needsApproval:
type: boolean
enoughBalance:
type: boolean
required:
- address
- balance
- allowance
- needsApproval
- enoughBalance
additionalProperties: false
- type: 'null'
note:
type: string
required:
- chainId
- market
- quote
- maxCost
- maxCostWad
- shares
- sharesWad
- activeRanges
- transactions
- wallet
- note
additionalProperties: false
OrderRequest:
type: object
properties:
quantiles:
description: Your forecast as 7 BTC prices in USD at the 5th, 10th, 25th, 50th, 75th, 90th and 95th percentiles, e.g. [76000, 77500, 79500, 81000, 82500, 84500, 86000].
anyOf:
- type: array
items:
$ref: '#/components/schemas/NumberOrDecimal'
- type: 'null'
probs:
description: 'Alternative to quantiles: one non-negative weight per price range, in index order. Normalized for you.'
anyOf:
- type: array
items:
$ref: '#/components/schemas/NumberOrDecimal'
- type: 'null'
budget:
description: tUSDC to spend, fee included, 1 to 10000.
$ref: '#/components/schemas/NumberOrDecimal'
wallet:
description: Your wallet. Lets the API check your balance and skip the approval if it's already granted.
anyOf:
- $ref: '#/components/schemas/Address'
- type: 'null'
slippageBps:
description: Price-move allowance in basis points, default 100.
type: integer
minimum: 0
maximum: 500
required:
- budget
additionalProperties: false
description: Give exactly one of quantiles or probs. An empty array or null counts as not given.
FaucetResult:
type: object
properties:
txHash:
$ref: '#/components/schemas/TxHash'
amountEth:
$ref: '#/components/schemas/Decimal'
explorer:
type: string
format: uri
required:
- txHash
- amountEth
- explorer
additionalProperties: false
TxHash:
type: string
pattern: ^0x[0-9a-fA-F]{64}$
description: 0x-prefixed transaction hash.
Transaction:
type: object
properties:
to:
$ref: '#/components/schemas/Address'
data:
type: string
pattern: ^0x[0-9a-fA-F]*$
description: ABI-encoded calldata.
value:
type: string
const: '0'
description: ETH to send with the call. Always zero.
description:
type: string
required:
- to
- data
- value
- description
additionalProperties: false
description: An unsigned transaction. Sign and send it from your own wallet on chain 84532.
FaucetRequest:
type: object
properties:
wallet:
$ref: '#/components/schemas/Address'
required:
- wallet
additionalProperties: false
externalDocs:
description: Guide for agents
url: https://www.vibekast.xyz/llms.txt
x-refined-from:
- vibekast-xyz-openapi.json
- www.vibekast.xyz.json