@tealstreet/exchange-mcp 0.1.2 → 0.3.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 CHANGED
@@ -12,6 +12,8 @@ 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). An exchange that trades only options (`binanceoptions`) has them on without it |
16
+ | `EXCHANGE_INVERSE` | `true` to trade the exchange's inverse contracts, where it offers them on the same account (`bybit` today) |
15
17
  | `EXCHANGE_API_KEY` | API key |
16
18
  | `EXCHANGE_API_SECRET` | API secret, to sign in this process |
17
19
  | `EXCHANGE_API_PASSPHRASE` | passphrase, on exchanges that use one |
@@ -24,6 +26,12 @@ Set `EXCHANGE_API_SECRET` or the two signer variables. Signer mode needs an adap
24
26
 
25
27
  `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
28
 
29
+ With `EXCHANGE_OPTIONS=true`, or on `binanceoptions`: `get_option_expiries`, `get_option_chain` and `get_account_greeks`. `place_order` takes option symbols and an optional `impliedVolatility` where the venue prices by it (`bybit`; `binanceoptions` refuses it). `get_markets` leaves options out unless they are named, so on `binanceoptions` it lists nothing until you name symbols.
30
+
31
+ With `EXCHANGE_INVERSE=true`: the inverse markets join every tool. They carry `isInverse`, and their order amounts are USD contracts.
32
+
33
+ Results with times also carry `<field>Utc` ISO dates, because safe-cex keeps fill and candle times in seconds and the rest in milliseconds.
34
+
27
35
  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
36
 
29
37
  ## Develop
@@ -1031,7 +1031,7 @@ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
1031
1031
  ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
1032
1032
  OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1033
1033
 
1034
- ## @modelcontextprotocol/sdk@1.31.0 (MIT)
1034
+ ## @modelcontextprotocol/sdk@1.32.1 (MIT)
1035
1035
 
1036
1036
  MIT License
1037
1037
 
@@ -3531,7 +3531,7 @@ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
3531
3531
  ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
3532
3532
  IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
3533
3533
 
3534
- ## set-cookie-parser@3.1.2 (MIT)
3534
+ ## set-cookie-parser@3.1.4 (MIT)
3535
3535
 
3536
3536
  The MIT License (MIT)
3537
3537