@sigrex/client 4.0.0 → 4.1.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/dist/index.d.mts CHANGED
@@ -4246,15 +4246,18 @@ interface paths {
4246
4246
  path?: never;
4247
4247
  cookie?: never;
4248
4248
  };
4249
- /** Get prediction market by slug */
4249
+ /**
4250
+ * Get prediction market by slug
4251
+ * @description Resolves a market or an event. An event with several markets is returned with its markets to choose from and no single market chosen.
4252
+ */
4250
4253
  get: {
4251
4254
  parameters: {
4252
4255
  query?: never;
4253
4256
  header?: never;
4254
4257
  path: {
4255
- /** @description Prediction market exchange */
4258
+ /** @description Prediction market exchange (polymarket, outcome or kalshi) */
4256
4259
  exchange: string;
4257
- /** @description The prediction market slug */
4260
+ /** @description Polymarket market or event slug, Kalshi market or event ticker, or Outcome.xyz event id (e.g. q199, o30154) or market id (e.g. 1481) */
4258
4261
  slug: string;
4259
4262
  };
4260
4263
  cookie?: never;
@@ -5883,7 +5886,7 @@ interface paths {
5883
5886
  [name: string]: unknown;
5884
5887
  };
5885
5888
  content: {
5886
- "application/json": components["schemas"]["SuccessResponse"];
5889
+ "application/json": components["schemas"]["BotWebhook"];
5887
5890
  };
5888
5891
  };
5889
5892
  /** @description Missing webhook id or invalid password */
@@ -8638,7 +8641,7 @@ interface paths {
8638
8641
  header?: never;
8639
8642
  path: {
8640
8643
  /** @description Signal source */
8641
- source: "webhook" | "email" | "telegram" | "llm-session" | "code-strategy" | "llm-reaction" | "code-reaction";
8644
+ source: "webhook" | "email" | "telegram" | "llm-session" | "code-strategy" | "llm-reaction" | "code-reaction" | "mcp";
8642
8645
  };
8643
8646
  cookie?: never;
8644
8647
  };
@@ -8697,7 +8700,7 @@ interface paths {
8697
8700
  header?: never;
8698
8701
  path: {
8699
8702
  /** @description Signal source */
8700
- source: "webhook" | "email" | "telegram" | "llm-session" | "code-strategy" | "llm-reaction" | "code-reaction";
8703
+ source: "webhook" | "email" | "telegram" | "llm-session" | "code-strategy" | "llm-reaction" | "code-reaction" | "mcp";
8701
8704
  /** @description Id of the signal source */
8702
8705
  id: string;
8703
8706
  };
@@ -9325,6 +9328,7 @@ interface components {
9325
9328
  */
9326
9329
  apiKey: string;
9327
9330
  };
9331
+ /** @description Polymarket / Outcome require funderAddress + walletPrivateKey, Kalshi requires publicKey (API key ID) + privateKey (PEM) */
9328
9332
  CreatePredictionApiKeyRequest: {
9329
9333
  /**
9330
9334
  * @description The name of the API key max 255 characters
@@ -9337,16 +9341,29 @@ interface components {
9337
9341
  */
9338
9342
  exchangeId: number;
9339
9343
  /**
9340
- * @description PolyMarket platform funder address
9344
+ * @description Polymarket profile (deposit) address, or your main Hyperliquid wallet address for Outcome.xyz (Polymarket / Outcome.xyz only)
9341
9345
  * @example 0x0fca5sdvv94baa59a362a83sdf31d9c4a25970effe68
9342
9346
  */
9343
- funderAddress: string;
9347
+ funderAddress?: string;
9344
9348
  /**
9345
- * @description Signer wallet private key
9349
+ * @description Polymarket: the private key of the wallet that owns the account, only used to create a session key and never stored. Outcome.xyz: the private key of a Hyperliquid API wallet (Polymarket / Outcome.xyz only)
9346
9350
  * @example dfgsdfgsdfmnc3n39745c547aSBp89bs450fb1dfacf86af8ed32
9347
9351
  */
9348
- walletPrivateKey: string;
9352
+ walletPrivateKey?: string;
9353
+ /**
9354
+ * @description Kalshi API key ID (Kalshi only, replaces funderAddress / walletPrivateKey)
9355
+ * @example a952bcbe-ec3b-4b5b-b8f9-11dae589608c
9356
+ */
9357
+ publicKey?: string;
9358
+ /**
9359
+ * @description Kalshi API private key in PEM format, RSA or Ed25519 (Kalshi only)
9360
+ * @example -----BEGIN PRIVATE KEY-----
9361
+ * ...
9362
+ * -----END PRIVATE KEY-----
9363
+ */
9364
+ privateKey?: string;
9349
9365
  };
9366
+ /** @description Polymarket / Outcome require funderAddress + walletPrivateKey, Kalshi requires publicKey (API key ID) + privateKey (PEM) */
9350
9367
  TestPredictionApiKeyRequest: {
9351
9368
  /**
9352
9369
  * @description The id of a Exchange
@@ -9354,15 +9371,27 @@ interface components {
9354
9371
  */
9355
9372
  exchangeId: number;
9356
9373
  /**
9357
- * @description PolyMarket platform funder address
9374
+ * @description Polymarket profile (deposit) address, or your main Hyperliquid wallet address for Outcome.xyz (Polymarket / Outcome.xyz only)
9358
9375
  * @example 0x0fca5sdvv94baa59a362a83sdf31d9c4a25970effe68
9359
9376
  */
9360
- funderAddress: string;
9377
+ funderAddress?: string;
9361
9378
  /**
9362
- * @description Signer wallet private key
9379
+ * @description Polymarket: the private key of the wallet that owns the account, only used to create a session key and never stored. Outcome.xyz: the private key of a Hyperliquid API wallet (Polymarket / Outcome.xyz only)
9363
9380
  * @example dfgsdfgsdfmnc3n39745c547aSBp89bs450fb1dfacf86af8ed32
9364
9381
  */
9365
- walletPrivateKey: string;
9382
+ walletPrivateKey?: string;
9383
+ /**
9384
+ * @description Kalshi API key ID (Kalshi only, replaces funderAddress / walletPrivateKey)
9385
+ * @example a952bcbe-ec3b-4b5b-b8f9-11dae589608c
9386
+ */
9387
+ publicKey?: string;
9388
+ /**
9389
+ * @description Kalshi API private key in PEM format, RSA or Ed25519 (Kalshi only)
9390
+ * @example -----BEGIN PRIVATE KEY-----
9391
+ * ...
9392
+ * -----END PRIVATE KEY-----
9393
+ */
9394
+ privateKey?: string;
9366
9395
  };
9367
9396
  CreateCexSignalBotRequest: {
9368
9397
  /**
@@ -9574,17 +9603,17 @@ interface components {
9574
9603
  */
9575
9604
  slug_from_signal: boolean;
9576
9605
  /**
9577
- * @description The market url (required if slug_from_signal is false)
9606
+ * @description The market URL (required if slug_from_signal is false). An event URL with several markets has to point to one of them: Polymarket /event/<event>/<market>, Kalshi ?market=<TICKER>, Outcome.xyz ?outcome=<market id>. Closed or settled markets are rejected.
9578
9607
  * @example https://polymarket.com/event/elon-musk-of-tweets-april-21-april-28/elon-musk-of-tweets-april-21-april-28-180-199#xpkQ2pz
9579
9608
  */
9580
9609
  url?: string;
9581
9610
  /**
9582
- * @description Set if amount is coming from signal
9611
+ * @description Take the size from each signal's size field: BUY in USDC (USD on Kalshi), SELL in shares (capped at the held position). Signals without a size are ignored.
9583
9612
  * @example false
9584
9613
  */
9585
9614
  amount_from_signal: boolean;
9586
9615
  /**
9587
- * @description Real trade size of each order in USDC, placed with live funds. Used only if amount_from_signal is false.
9616
+ * @description Buy size of each order in USDC (USD on Kalshi), placed with live funds. Used only if amount_from_signal is false. A SELL closes the whole position of the outcome.
9588
9617
  * @example 100
9589
9618
  */
9590
9619
  amount?: number;
@@ -9621,17 +9650,17 @@ interface components {
9621
9650
  */
9622
9651
  slug_from_signal: boolean;
9623
9652
  /**
9624
- * @description The market url (required if slug_from_signal is false)
9653
+ * @description The market URL (required if slug_from_signal is false). An event URL with several markets has to point to one of them: Polymarket /event/<event>/<market>, Kalshi ?market=<TICKER>, Outcome.xyz ?outcome=<market id>. Closed or settled markets are rejected.
9625
9654
  * @example https://polymarket.com/event/elon-musk-of-tweets-april-21-april-28/elon-musk-of-tweets-april-21-april-28-180-199#xpkQ2pz
9626
9655
  */
9627
9656
  url?: string;
9628
9657
  /**
9629
- * @description Set if amount is coming from signal
9658
+ * @description Take the size from each signal's size field: BUY in USDC (USD on Kalshi), SELL in shares (capped at the held position). Signals without a size are ignored.
9630
9659
  * @example false
9631
9660
  */
9632
9661
  amount_from_signal: boolean;
9633
9662
  /**
9634
- * @description Real trade size of each order in USDC, placed with live funds. Used only if amount_from_signal is false.
9663
+ * @description Buy size of each order in USDC (USD on Kalshi), placed with live funds. Used only if amount_from_signal is false. A SELL closes the whole position of the outcome.
9635
9664
  * @example 100
9636
9665
  */
9637
9666
  amount?: number;
package/dist/index.d.ts CHANGED
@@ -4246,15 +4246,18 @@ interface paths {
4246
4246
  path?: never;
4247
4247
  cookie?: never;
4248
4248
  };
4249
- /** Get prediction market by slug */
4249
+ /**
4250
+ * Get prediction market by slug
4251
+ * @description Resolves a market or an event. An event with several markets is returned with its markets to choose from and no single market chosen.
4252
+ */
4250
4253
  get: {
4251
4254
  parameters: {
4252
4255
  query?: never;
4253
4256
  header?: never;
4254
4257
  path: {
4255
- /** @description Prediction market exchange */
4258
+ /** @description Prediction market exchange (polymarket, outcome or kalshi) */
4256
4259
  exchange: string;
4257
- /** @description The prediction market slug */
4260
+ /** @description Polymarket market or event slug, Kalshi market or event ticker, or Outcome.xyz event id (e.g. q199, o30154) or market id (e.g. 1481) */
4258
4261
  slug: string;
4259
4262
  };
4260
4263
  cookie?: never;
@@ -5883,7 +5886,7 @@ interface paths {
5883
5886
  [name: string]: unknown;
5884
5887
  };
5885
5888
  content: {
5886
- "application/json": components["schemas"]["SuccessResponse"];
5889
+ "application/json": components["schemas"]["BotWebhook"];
5887
5890
  };
5888
5891
  };
5889
5892
  /** @description Missing webhook id or invalid password */
@@ -8638,7 +8641,7 @@ interface paths {
8638
8641
  header?: never;
8639
8642
  path: {
8640
8643
  /** @description Signal source */
8641
- source: "webhook" | "email" | "telegram" | "llm-session" | "code-strategy" | "llm-reaction" | "code-reaction";
8644
+ source: "webhook" | "email" | "telegram" | "llm-session" | "code-strategy" | "llm-reaction" | "code-reaction" | "mcp";
8642
8645
  };
8643
8646
  cookie?: never;
8644
8647
  };
@@ -8697,7 +8700,7 @@ interface paths {
8697
8700
  header?: never;
8698
8701
  path: {
8699
8702
  /** @description Signal source */
8700
- source: "webhook" | "email" | "telegram" | "llm-session" | "code-strategy" | "llm-reaction" | "code-reaction";
8703
+ source: "webhook" | "email" | "telegram" | "llm-session" | "code-strategy" | "llm-reaction" | "code-reaction" | "mcp";
8701
8704
  /** @description Id of the signal source */
8702
8705
  id: string;
8703
8706
  };
@@ -9325,6 +9328,7 @@ interface components {
9325
9328
  */
9326
9329
  apiKey: string;
9327
9330
  };
9331
+ /** @description Polymarket / Outcome require funderAddress + walletPrivateKey, Kalshi requires publicKey (API key ID) + privateKey (PEM) */
9328
9332
  CreatePredictionApiKeyRequest: {
9329
9333
  /**
9330
9334
  * @description The name of the API key max 255 characters
@@ -9337,16 +9341,29 @@ interface components {
9337
9341
  */
9338
9342
  exchangeId: number;
9339
9343
  /**
9340
- * @description PolyMarket platform funder address
9344
+ * @description Polymarket profile (deposit) address, or your main Hyperliquid wallet address for Outcome.xyz (Polymarket / Outcome.xyz only)
9341
9345
  * @example 0x0fca5sdvv94baa59a362a83sdf31d9c4a25970effe68
9342
9346
  */
9343
- funderAddress: string;
9347
+ funderAddress?: string;
9344
9348
  /**
9345
- * @description Signer wallet private key
9349
+ * @description Polymarket: the private key of the wallet that owns the account, only used to create a session key and never stored. Outcome.xyz: the private key of a Hyperliquid API wallet (Polymarket / Outcome.xyz only)
9346
9350
  * @example dfgsdfgsdfmnc3n39745c547aSBp89bs450fb1dfacf86af8ed32
9347
9351
  */
9348
- walletPrivateKey: string;
9352
+ walletPrivateKey?: string;
9353
+ /**
9354
+ * @description Kalshi API key ID (Kalshi only, replaces funderAddress / walletPrivateKey)
9355
+ * @example a952bcbe-ec3b-4b5b-b8f9-11dae589608c
9356
+ */
9357
+ publicKey?: string;
9358
+ /**
9359
+ * @description Kalshi API private key in PEM format, RSA or Ed25519 (Kalshi only)
9360
+ * @example -----BEGIN PRIVATE KEY-----
9361
+ * ...
9362
+ * -----END PRIVATE KEY-----
9363
+ */
9364
+ privateKey?: string;
9349
9365
  };
9366
+ /** @description Polymarket / Outcome require funderAddress + walletPrivateKey, Kalshi requires publicKey (API key ID) + privateKey (PEM) */
9350
9367
  TestPredictionApiKeyRequest: {
9351
9368
  /**
9352
9369
  * @description The id of a Exchange
@@ -9354,15 +9371,27 @@ interface components {
9354
9371
  */
9355
9372
  exchangeId: number;
9356
9373
  /**
9357
- * @description PolyMarket platform funder address
9374
+ * @description Polymarket profile (deposit) address, or your main Hyperliquid wallet address for Outcome.xyz (Polymarket / Outcome.xyz only)
9358
9375
  * @example 0x0fca5sdvv94baa59a362a83sdf31d9c4a25970effe68
9359
9376
  */
9360
- funderAddress: string;
9377
+ funderAddress?: string;
9361
9378
  /**
9362
- * @description Signer wallet private key
9379
+ * @description Polymarket: the private key of the wallet that owns the account, only used to create a session key and never stored. Outcome.xyz: the private key of a Hyperliquid API wallet (Polymarket / Outcome.xyz only)
9363
9380
  * @example dfgsdfgsdfmnc3n39745c547aSBp89bs450fb1dfacf86af8ed32
9364
9381
  */
9365
- walletPrivateKey: string;
9382
+ walletPrivateKey?: string;
9383
+ /**
9384
+ * @description Kalshi API key ID (Kalshi only, replaces funderAddress / walletPrivateKey)
9385
+ * @example a952bcbe-ec3b-4b5b-b8f9-11dae589608c
9386
+ */
9387
+ publicKey?: string;
9388
+ /**
9389
+ * @description Kalshi API private key in PEM format, RSA or Ed25519 (Kalshi only)
9390
+ * @example -----BEGIN PRIVATE KEY-----
9391
+ * ...
9392
+ * -----END PRIVATE KEY-----
9393
+ */
9394
+ privateKey?: string;
9366
9395
  };
9367
9396
  CreateCexSignalBotRequest: {
9368
9397
  /**
@@ -9574,17 +9603,17 @@ interface components {
9574
9603
  */
9575
9604
  slug_from_signal: boolean;
9576
9605
  /**
9577
- * @description The market url (required if slug_from_signal is false)
9606
+ * @description The market URL (required if slug_from_signal is false). An event URL with several markets has to point to one of them: Polymarket /event/<event>/<market>, Kalshi ?market=<TICKER>, Outcome.xyz ?outcome=<market id>. Closed or settled markets are rejected.
9578
9607
  * @example https://polymarket.com/event/elon-musk-of-tweets-april-21-april-28/elon-musk-of-tweets-april-21-april-28-180-199#xpkQ2pz
9579
9608
  */
9580
9609
  url?: string;
9581
9610
  /**
9582
- * @description Set if amount is coming from signal
9611
+ * @description Take the size from each signal's size field: BUY in USDC (USD on Kalshi), SELL in shares (capped at the held position). Signals without a size are ignored.
9583
9612
  * @example false
9584
9613
  */
9585
9614
  amount_from_signal: boolean;
9586
9615
  /**
9587
- * @description Real trade size of each order in USDC, placed with live funds. Used only if amount_from_signal is false.
9616
+ * @description Buy size of each order in USDC (USD on Kalshi), placed with live funds. Used only if amount_from_signal is false. A SELL closes the whole position of the outcome.
9588
9617
  * @example 100
9589
9618
  */
9590
9619
  amount?: number;
@@ -9621,17 +9650,17 @@ interface components {
9621
9650
  */
9622
9651
  slug_from_signal: boolean;
9623
9652
  /**
9624
- * @description The market url (required if slug_from_signal is false)
9653
+ * @description The market URL (required if slug_from_signal is false). An event URL with several markets has to point to one of them: Polymarket /event/<event>/<market>, Kalshi ?market=<TICKER>, Outcome.xyz ?outcome=<market id>. Closed or settled markets are rejected.
9625
9654
  * @example https://polymarket.com/event/elon-musk-of-tweets-april-21-april-28/elon-musk-of-tweets-april-21-april-28-180-199#xpkQ2pz
9626
9655
  */
9627
9656
  url?: string;
9628
9657
  /**
9629
- * @description Set if amount is coming from signal
9658
+ * @description Take the size from each signal's size field: BUY in USDC (USD on Kalshi), SELL in shares (capped at the held position). Signals without a size are ignored.
9630
9659
  * @example false
9631
9660
  */
9632
9661
  amount_from_signal: boolean;
9633
9662
  /**
9634
- * @description Real trade size of each order in USDC, placed with live funds. Used only if amount_from_signal is false.
9663
+ * @description Buy size of each order in USDC (USD on Kalshi), placed with live funds. Used only if amount_from_signal is false. A SELL closes the whole position of the outcome.
9635
9664
  * @example 100
9636
9665
  */
9637
9666
  amount?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sigrex/client",
3
- "version": "4.0.0",
3
+ "version": "4.1.0",
4
4
  "description": "TypeScript API Client for Sigrex with automatic HMAC-SHA256 request signing and support for ML-DSA44",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",