@tealstreet/exchange-mcp 0.1.2 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -0
- package/dist/index.js +9559 -9169
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -12,6 +12,7 @@ EXCHANGE=bybit EXCHANGE_API_KEY=... EXCHANGE_API_SECRET=... npx @tealstreet/exch
|
|
|
12
12
|
|---|---|
|
|
13
13
|
| `EXCHANGE` | safe-cex exchange name, such as `bybit` or `bybitdemo`. Required |
|
|
14
14
|
| `EXCHANGE_TESTNET` | `true` for the exchange's testnet |
|
|
15
|
+
| `EXCHANGE_OPTIONS` | `true` to trade the exchange's options, where it offers them on the same account (`bybit` today) |
|
|
15
16
|
| `EXCHANGE_API_KEY` | API key |
|
|
16
17
|
| `EXCHANGE_API_SECRET` | API secret, to sign in this process |
|
|
17
18
|
| `EXCHANGE_API_PASSPHRASE` | passphrase, on exchanges that use one |
|
|
@@ -24,6 +25,10 @@ Set `EXCHANGE_API_SECRET` or the two signer variables. Signer mode needs an adap
|
|
|
24
25
|
|
|
25
26
|
`get_markets`, `get_tickers`, `get_candles`, `get_balance`, `get_positions`, `get_open_orders`, `get_order_history`, `get_fills`, `get_closed_pnl`, `get_income`, `place_order`, `amend_order`, `cancel_orders`, `cancel_all_orders`, `set_leverage`, `set_position_mode`, `set_margin_type`.
|
|
26
27
|
|
|
28
|
+
With `EXCHANGE_OPTIONS=true`: `get_option_expiries`, `get_option_chain` and `get_account_greeks`. `place_order` takes option symbols and an optional `impliedVolatility`. `get_markets` leaves options out unless they are named.
|
|
29
|
+
|
|
30
|
+
Results with times also carry `<field>Utc` ISO dates, because safe-cex keeps fill and candle times in seconds and the rest in milliseconds.
|
|
31
|
+
|
|
27
32
|
The server starts the exchange as soon as it connects, and fetches everything else when asked. It opens no public websockets and turns periodic polling off. Starting still fetches one snapshot of positions, orders and balance, and with a local `EXCHANGE_API_SECRET` most adapters also open their private websocket; signer mode does not, because the websocket login needs the secret.
|
|
28
33
|
|
|
29
34
|
## Develop
|