Read commands never place orders. They are safe to call at any time and are the right tool for sanity-checking market state before issuing a mutating command. All examples below useDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/tripolskypetr/wallet-manager/llms.txt
Use this file to discover all available pages before exploring further.
wallet.walletPublicService, which runs each call through the per-symbol queue and validation layer. See the Overview for why this is the recommended surface.
fetchPrice
Returns the current average market price for a symbol as a plainnumber.
Caching: result is cached for 30 seconds per symbol. Subsequent calls within that window return the cached value without hitting the exchange.
The Binance trading pair, e.g.
"SOLUSDT", "BTCUSDT".Promise<number> — the average price in USDT.
REPL example:
fetchFiat
Returns the total USDT balance — the sum of free and locked USDT — as a plainnumber.
The trading pair whose quote currency balance you want to check. For all standard USDT pairs this returns your overall USDT balance (free + locked across all open orders).
Promise<number> — total USDT balance (free + locked).
REPL example:
commitBuy to verify you have enough free USDT. commitBuy itself returns 0 early when free USDT is below the requested amount, but checking ahead of time helps diagnose why.
fetchBalance
Returns the coin balance for the base asset of the given symbol as{ quantity, usdt }.
The Binance trading pair, e.g.
"SOLUSDT". The base coin (e.g. SOL) is extracted automatically.Promise<{ quantity: number; usdt: number }>
| Field | Description |
|---|---|
quantity | Total coin held, including amounts locked in open orders (onOrder). |
usdt | The USDT-equivalent value of that coin at the current price. |
quantity reflects the total balance including any coins locked in pending SELL orders. It is not the amount available to trade right now — check open orders with fetchOrders if you need to know the unlocked portion.fetchOrders
Returns recent orders for a symbol — filled, canceled, and still open — with full side, price, quantity, and timestamp detail. Caching: results are cached for 10 minutes per(symbol, limit) pair. The cache is automatically cleared after any commit* call on the same symbol.
The Binance trading pair.
Maximum number of orders to return. Defaults to
25.Promise<IOrderData[]>
fetchPnl
Returns a daily PnL estimate for a symbol reconstructed from your trade history combined with 1-hour VWAP candle data. Caching: results are cached for 10 minutes per(symbol, limit) pair.
The Binance trading pair.
Number of days to include in the estimate. Defaults to
25.Promise<IDailyPnL[]>
| Field | Description |
|---|---|
date | Calendar day this row covers ("YYYY-MM-DD"). |
pnl | Estimated daily profit/loss in USDT. Positive = gain, negative = loss. |
walletCost | The USDT cost basis carried into that day. |
amountQty | Coin quantity attributed to that day’s activity. |
amountUSDT | USDT value of those coins at that day’s closing price. |
averagePrice | The average price derived from 1h VWAP candles. |