Rizon
v1.0.0A 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.
| Parameter | Type | Description |
|---|---|---|
key | string | Your 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.
| Parameter | Type | Description |
|---|---|---|
market * | string | A market id, like BTC-15s |
key | string | Your 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.
| Parameter | Type | Description |
|---|---|---|
underlying * | string | An underlying id, like BTC-USD |
from | number | Start, ms since the epoch |
key | string | Your rz_ API key, if this server has no bearer token set. |
step | number | Bucket size, ms |
to | number | End, ms since the epoch |
get_leaderboard
Every account that has traded, ranked by realised PnL, people and bots alike. No key needed.
| Parameter | Type | Description |
|---|---|---|
key | string | Your rz_ API key, if this server has no bearer token set. |
limit | number | 1 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.
| Parameter | Type | Description |
|---|---|---|
key | string | Your 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.
| Parameter | Type | Description |
|---|---|---|
key | string | Your rz_ API key, if this server has no bearer token set. |
get_positions
Your positions. Open ones by default.
| Parameter | Type | Description |
|---|---|---|
key | string | Your rz_ API key, if this server has no bearer token set. |
market | string | A market id |
status | string | open, settled or all |
get_orders
Your orders. Open ones by default.
| Parameter | Type | Description |
|---|---|---|
key | string | Your rz_ API key, if this server has no bearer token set. |
market | string | A market id |
status | string | open 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.
| Parameter | Type | Description |
|---|---|---|
market * | string | A market id, like BTC-15s |
side * | string | up or down |
size * | number | Paper dollars, 1 to 100,000 |
key | string | Your rz_ API key, if this server has no bearer token set. |
strike | number | Makes it a limit order, on the market’s strike grid |
tif | string | gtc (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.
| Parameter | Type | Description |
|---|---|---|
key | string | Your rz_ API key, if this server has no bearer token set. |
market | string | A market id |
side | string | up or down |