bykaranteli-mcp 0.26.2 → 0.27.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
@@ -2,12 +2,12 @@
2
2
 
3
3
  MCP (Model Context Protocol) server for **live crypto derivatives data**: funding rates, cross-exchange funding arbitrage, open interest pressure, liquidations, options, ETF flows, Fear & Greed and BTC dominance.
4
4
 
5
- 45 read-only tools over the public JSON API of [bykaranteli.com](https://bykaranteli.com/developers). Since 2026-09-17 the API asks programs for an account key: a **free key** comes with any verified account at <https://bykaranteli.com/dashboard/api> (30 requests a minute, public depth), and the Builder, Business and Scale plans raise the rate and unlock member depth (LiqMap on seven timeframes, 5-minute series, the x402 catalog included). Set it as `BYKARANTELI_API_KEY`. Data covers Binance USDT-M perpetuals (funding arbitrage additionally compares OKX, Bybit, Gate, HTX, BingX, Kraken, MEXC and Bitget).
5
+ 46 read-only tools over the public JSON API of [bykaranteli.com](https://bykaranteli.com/developers). Since 2026-09-10 the API asks programs for an account key: a **free key** comes with any verified account at <https://bykaranteli.com/dashboard/api> (30 requests a minute, public depth), and the Builder, Business and Scale plans raise the rate and unlock member depth (LiqMap on seven timeframes, 5-minute series, the x402 catalog included). Set it as `BYKARANTELI_API_KEY`. Data covers Binance USDT-M perpetuals (funding arbitrage additionally compares OKX, Bybit, Gate, HTX, BingX, Kraken, MEXC and Bitget).
6
6
 
7
7
  ## Hosted endpoint (no install)
8
8
 
9
9
  Paste `https://mcp.bykaranteli.com` as a custom connector in any MCP-capable
10
- assistant. Same 45 tools, nothing to install. Without a key it runs on the
10
+ assistant. Same 46 tools, nothing to install. Without a key it runs on the
11
11
  shared Free pool; a connector header `Authorization: Bearer bk_...` (Builder
12
12
  and above) brings your own rate limit and member depth.
13
13
 
@@ -97,7 +97,7 @@ All responses are JSON and carry a `generatedAt` timestamp plus a `source` URL t
97
97
 
98
98
  | Env var | Default | Purpose |
99
99
  |---|---|---|
100
- | `BYKARANTELI_API_KEY` | none | Account key (`bk_...`) sent as `Authorization: Bearer`. Free at <https://bykaranteli.com/dashboard/api>; required for programs from 2026-09-17 |
100
+ | `BYKARANTELI_API_KEY` | none | Account key (`bk_...`) sent as `Authorization: Bearer`. Free at <https://bykaranteli.com/dashboard/api>; required for programs from 2026-09-10 |
101
101
  | `BYKARANTELI_BASE_URL` | `https://bykaranteli.com` | Override the API host (testing only) |
102
102
 
103
103
  ## Data notes
package/dist/tools.d.ts CHANGED
@@ -16,7 +16,7 @@ export type RegisterOptions = {
16
16
  /** Version string for the outbound user-agent. */
17
17
  version?: string;
18
18
  /** Account API key (bk_...) sent as Authorization: Bearer on every fetch.
19
- * Since 2026-09-17 the public API asks programs for one; a free key comes
19
+ * Since 2026-09-10 the public API asks programs for one; a free key comes
20
20
  * with any verified account (https://bykaranteli.com/dashboard/api) and paid
21
21
  * plans raise the rate and unlock member depth. Falls back to the
22
22
  * BYKARANTELI_API_KEY environment variable. */
package/dist/tools.js CHANGED
@@ -946,6 +946,29 @@ export function registerByKaranteliTools(server, options) {
946
946
  return fail(err);
947
947
  }
948
948
  });
949
+ server.registerTool("get_turkey_premium", {
950
+ title: "Turkey premium: TRY reference prices from Turkish venues and the premium over the global price",
951
+ description: "Call this when the user asks about Bitcoin, Ether or USDT prices in Turkish lira, the Turkey premium, the USDT/TRY rate or dollar premium in Turkey, or which Turkish exchanges (BtcTurk, Bitlo, CoinTR, OKX TR, Binance TR, Bybit TR, KuCoin TR, Bitexen) trade above or below the global price. Returns the live board: five reference prices (median of eligible order books), per-venue book status, spread and depth, premiums in basis points. Pass pair and history_days for 15-minute history of one pair.",
952
+ inputSchema: {
953
+ pair: z.string().trim().toUpperCase().regex(/^(BTC-TRY|ETH-TRY|USDT-TRY|BTC-USDT|ETH-USDT)$/).optional().describe("Pair: BTC-TRY, ETH-TRY, USDT-TRY, BTC-USDT or ETH-USDT"),
954
+ history_days: z.number().int().min(1).max(30).optional().describe("Include 15-minute index history for the pair, 1..30 days"),
955
+ },
956
+ annotations: READ_ONLY,
957
+ }, async ({ pair, history_days }) => {
958
+ try {
959
+ const q = new URLSearchParams();
960
+ if (pair)
961
+ q.set("pair", pair);
962
+ if (history_days)
963
+ q.set("days", String(history_days));
964
+ const qs = q.toString();
965
+ const path = `/api/public/turkey-premium${qs ? `?${qs}` : ""}`;
966
+ return ok(withProvenance(await fetchJson(path), path));
967
+ }
968
+ catch (err) {
969
+ return fail(err);
970
+ }
971
+ });
949
972
  server.registerTool("get_jupiter_perps", {
950
973
  title: "Jupiter Perps (Solana): exact long/short OI, utilization, borrow rates, weekly top traders",
951
974
  description: "Call this when the user asks about Jupiter perpetuals on Solana: long versus short open interest per market (SOL, ETH, BTC) read from the on-chain custody state, pool utilization and hourly borrow rates, JLP pool AUM and APR, 24h volume, or the week's top traders by realized PnL. Pass base and history_days for the hourly OI history.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bykaranteli-mcp",
3
- "version": "0.26.2",
3
+ "version": "0.27.0",
4
4
  "description": "MCP server for live crypto derivatives data from bykaranteli.com: funding rates, funding arbitrage, open interest pressure, liquidations, options, ETF flows, Fear & Greed and BTC dominance. 45 read-only tools, free account key, paid depth via plans or x402.",
5
5
  "type": "module",
6
6
  "bin": {