mcpserver.lol
registry/rubin-trade-exchange
Connection check verified live · 26h ago

rubin-trade-exchange

Rubin: self-custody DEX for crypto perpetuals & spot - trade, read positions, orders, balances.

Tools 33
GitHub stars
Installs / wk
Licence
Transport streamable-http
Last checked 26h ago

Tools & capabilities

33 tools

Read from the running server on 26h ago.

batch_cancel can modify data market*clientIds*
Cancel multiple SHORT_TERM orders in one tx. SHORT_TERM only (chain limitation) — for stateful/mixed use cancel_all_orders.
cancel_all_orders can modify data market*confirm
Cancel every OPEN order for the subaccount in a market (handles SHORT_TERM and LONG_TERM automatically). Returns `confirmation.remainingOpen` — orders still OPEN after the cancel (…
cancel_order can modify data market*confirmclientId*orderFlags*goodTilBlockgoodTilTimeSeconds
Cancel a single order by clientId. For SHORT_TERM pass goodTilBlock; for LONG_TERM/CONDITIONAL pass goodTilTimeSeconds (the original good-til value, available from get_open_orders)…
close_all_positions confirmslippageBps
Flatten EVERY open perpetual position with reduce-only MARKET orders (one per market). Respects the operator market allowlist (disallowed markets are skipped and reported). Each cl…
close_position market*confirmpercentslippageBps
Close all or part of an open perpetual position with a reduce-only MARKET order. Reads the current position, flips the side automatically (LONG→SELL, SHORT→BUY) and sizes the close…
deposit_to_subaccount amountUsd
Deposit USDC from the account's WALLET into its trading SUBACCOUNT so it becomes collateral. Without amountUsd it moves everything above the $0.95 gas reserve (what the web app doe…
get_balance read-only
Get the subaccount collateral (USDC asset position) and the on-chain wallet bank balances. Collateral is what backs trading; the WALLET balance is where money sent to the account l…
get_block_height read-only
Return the latest chain block height. Useful for SHORT_TERM order goodTilBlock math.
get_candles read-only limittoISOmarket*fromISOresolution*
Get OHLCV candles for a market at a given resolution. Useful for trend/volatility analysis.
get_candles_multi read-only limitmarket*resolutions
Get recent OHLCV candles for a market across MULTIPLE resolutions in one call — by default ALL indexer resolutions (1MIN, 5MINS, 15MINS, 30MINS, 1HOUR, 4HOURS, 1DAY) — so the agent…
get_equity read-only
Get the subaccount summary: equity, freeCollateral, marginEnabled, open perpetual positions and asset positions.
get_fee_tier read-only
This account's current trading fee tier and conditions: maker/taker fee (% of notional; a negative maker fee is a rebate), the 30-day maker/taker volume it is judged on, any stakin…
get_fills read-only pagelimitmarket
Get executed fills for the subaccount, including price, size, fee and maker/taker liquidity.
get_funding_status read-only
Where the account's USDC sits: in the WALLET (bank balance — money sent to the account lands here and is NOT collateral) vs in the trading SUBACCOUNT (equity / free collateral). Re…
get_leaderboard read-only pagelimitsearchsortBytimeSpansortDirection
The trader PnL leaderboard for a time span (ONE_DAY, SEVEN_DAYS, THIRTY_DAYS, ONE_YEAR, ALL_TIME): rank, username, address, PnL (USD), ROI (%) and current equity per trader, pagina…
get_market read-only market*
Get details for one perpetual market (clobPairId, atomicResolution, quantumConversionExponent, tick/step sizes, oracle price, status).
get_my_rank read-only timeSpan
Where THIS account ranks on the PnL leaderboard: rank, board size ("21 of 66"), PnL, ROI and equity — for one time span, or for every time span (ONE_DAY … ALL_TIME) when none is gi…
get_news read-only limitquerycategorychannelssinceHours
Fetch the latest headlines from the ritbit news feed (curated crypto / markets / business channels, newest first). Filter by `category` (crypto|markets|business) or explicit `chann…
get_open_orders read-only sidelimitmarket
Get currently active ORDERS for the subaccount, optionally filtered by market and side. Includes OPEN resting orders and UNTRIGGERED conditional orders (TP/SL accepted on-chain but…
get_orderbook read-only depthmarket*
Get the live orderbook (bids/asks) for a market, optionally truncated to a depth.
get_pnl read-only pagelimitcreatedOnOrAfter
Get historical PnL ticks for the subaccount (equity, totalPnl, netTransfers over time). Use createdOnOrAfter to bound the range.
get_portfolio read-only
One-call snapshot of everything the account has "open": equity & freeCollateral, every open POSITION (with notional, unrealized PnL and estimated liquidation price), every active O…
get_position_risk read-only
Margin health for the subaccount: equity, freeCollateral, total maintenance/initial margin, maintenanceMarginBufferUsd (the EXACT liquidation guard — liquidatable when < 0), margin…
get_positions read-only status
Get perpetual POSITIONS with size, side, entryPrice, unrealizedPnl, realizedPnl and netFunding. Defaults to OPEN positions. NOTE: a position is what you HOLD after an order fills —…
get_referral_program read-only
This account's referral / affiliate program status: referral code and link, whether the link is unlocked (lifetime volume threshold, or already an affiliate), current affiliate tie…
list_markets read-only
List all perpetual markets with ticker, status and oracle price. Use this first to discover valid market tickers (e.g. BTC-USD) before placing orders.
open_position side*sizemarket*confirmnotionalUsdslippageBps +2
Enter a NEW position with a MARKET order, sized by base `size` OR quote `notionalUsd` (exactly one required; notionalUsd converts at the oracle price and is floored to the step siz…
place_limit_order side*size*price*market*confirmclientId +5
Place a limit order. Default timeInForce=GTT (long-term, durable, broadcast-commit so errors return synchronously). Use SHORT_TERM only for latency-sensitive orders (expire within…
place_market_order side*size*market*confirmclientIdreduceOnly +1
Place an IOC market order. It executes as an IOC limit at a worst-acceptable price mirrored around the oracle by side — BUY caps ABOVE the oracle, SELL below — at slippageBps dista…
place_stop_loss side*size*market*clientIdslippageBpstriggerPrice*
Place a reduce-only Stop loss (conditional market order) that triggers at triggerPrice. Side must be the CLOSING side of the position: SELL closes a LONG, BUY closes a SHORT. Once…
place_take_profit side*size*market*clientIdslippageBpstriggerPrice*
Place a reduce-only Take profit (conditional market order) that triggers at triggerPrice. Side must be the CLOSING side of the position: SELL closes a LONG, BUY closes a SHORT. Onc…
top_up_gas
Move a little USDC from the trading subaccount back to the WALLET when the wallet is at or below $0.55 — just enough to restore the $0.95 gas reserve that deposit/withdraw transact…
whoami read-only
Report what this session controls: the master account (its address in BOTH forms — cosmos rit1… and EVM 0x…, the same 20 bytes), the subaccount, whether it can trade or is read-onl…