Rizon

v1.0.0
markets.rizon/exchange Checked 4 days ago Published 1 month ago

A paper-money exchange: read live order books, place practice trades, test a bot.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_markets

Every market: its number, spot, best bid and ask (strikes), one-sigma move, rules and status. No key needed.

ParameterTypeDescription
keystringYour rz_ API key, if this server has no bearer token set.

get_book

One market’s order book: up to 30 levels a side, and its midpoint, the market’s forecast of the number. No key needed.

ParameterTypeDescription
market *stringA market id, like BTC-15s
keystringYour rz_ API key, if this server has no bearer token set.

get_prices

An underlying’s price history as [time, price] pairs. No key needed.

ParameterTypeDescription
underlying *stringAn underlying id, like BTC-USD
fromnumberStart, ms since the epoch
keystringYour rz_ API key, if this server has no bearer token set.
stepnumberBucket size, ms
tonumberEnd, ms since the epoch

get_leaderboard

Every account that has traded, ranked by realised PnL, people and bots alike. No key needed.

ParameterTypeDescription
keystringYour rz_ API key, if this server has no bearer token set.
limitnumber1 to 100, default 20

create_account

A new paper account with $1,000 and its API key, shown once. Pass the key to the tools below, or set it as this server’s bearer token.

ParameterTypeDescription
keystringYour rz_ API key, if this server has no bearer token set.

get_account

Your balance, what’s in orders and positions, realised PnL and rank.

ParameterTypeDescription
keystringYour rz_ API key, if this server has no bearer token set.

get_positions

Your positions. Open ones by default.

ParameterTypeDescription
keystringYour rz_ API key, if this server has no bearer token set.
marketstringA market id
statusstringopen, settled or all

get_orders

Your orders. Open ones by default.

ParameterTypeDescription
keystringYour rz_ API key, if this server has no bearer token set.
marketstringA market id
statusstringopen or all

place_order

Places an order with paper money. side up buys Higher: it wins if the number finishes above the strike. side down sells: it holds Lower. A win pays 2× size. Leave out strike for a market order.

ParameterTypeDescription
market *stringA market id, like BTC-15s
side *stringup or down
size *numberPaper dollars, 1 to 100,000
keystringYour rz_ API key, if this server has no bearer token set.
strikenumberMakes it a limit order, on the market’s strike grid
tifstringgtc (rests), ioc (takes what it can) or post (only ever rests)

cancel_orders

Cancels your resting orders, on one market or side if you name it.

ParameterTypeDescription
keystringYour rz_ API key, if this server has no bearer token set.
marketstringA market id
sidestringup or down