
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
kalshi-sdk
Advanced tools
An unofficial typescript client for https://kalshi.com/.
Currently only implements the Markets APIs:
yarn add kalshi-sdk
or npm install kalshi-sdk
To use the client, you will need an API key and API Key ID from Kalshi.
To instnatiate the client, you can either do so by providing a path to your .pem
file or by supplying the key directly:
Via a .pem
file
const kalshiClient = KalshiClient.fromFile(filePath, KALSHI_API_ID_HERE);
or via the key directly:
const kalshiClient = KalshiClient.fromKey(key, KALSHI_API_ID_HERE);
To use the client, you can invoke any of the market commands:
const market = await kalshiClient.markets.getMarket("KXEURUSDH-25FEB1416-T1.04899");
Currently supports the market, exchange, and collections APIs. (Websockets & Portfolio to come).
The current supported interface for the market types are:
getEvents(eventsRequest?: KalshiEventsRequest): Promise<KalshiEvent[]>;
getEvent(eventTicker: string, with_nested_markets: boolean): Promise<KalshiEvent>;
getMarkets(marketsRequest?: KalshiMarketsRequest): Promise<KalshiMarket[]>;
getMarket(marketTicker: string): Promise<KalshiMarket>;
getTrades(tradeRequest?: KalshiTradesRequest): Promise<KalshiTrade[]>;
getMarketOrderBook(marketTicker: string): Promise<KalshiOrderBook>;
getSeries(seriesTicker: string): Promise<KalshiSeries>;
getMarketCandlesticks(ticker: string,seriesTicker: string, candleStickRequest: KalshiCandlestickRequest): Promise<KalshiCandlestick[]>;
createKalshiOrder(orderRequest: KalshiOrderRequest): Promise<KalshiOrderResponse>;
cancelKalshiOrder(orderId: string): Promise<KalshiCancelResponse>;
For exchange:
getExchangeAnnouncment(): Promise<KalshiExchangeAnnouncement[]>
getExchangeSchedule(): Promise<KalshiExchangeSchedule>
getExchangeStatus(): Promise<KalshiExchangeStatus>
usage of client:
const market = await kalshiClient.exchange.getExchangeStatus();
For collections:
getMultivariateEventCollections(params?: KalshiMultivariateEventCollectionsRequest): Promise<KalshiMultivariateEventCollection[]>
getMultivariateEventCollection(collectionTicker: string): Promise<KalshiMultivariateEventCollection>
createMarketInMultivariateEventCollection(collectionTicker: string, selectedMarkets: KalshiSelectedMarket[]): Promise<KalshiEventMarket>
getMultivariateEventCollectionLookupHistory(collectionTicker: string, lookbackSeconds?: number): Promise<KalshiLookupPoint[]>
lookupTickersForMarketInMultivariateEventCollection(collectionTicker: string, selectedMarkets: KalshiSelectedMarket[]): Promise<KalshiEventMarket>
usage of client:
const market = await kalshiClient.collections.getMultivariateEventCollections();
FAQs
A public TypeScript SDK for Kalshi (https://kalshi.com/)
The npm package kalshi-sdk receives a total of 0 weekly downloads. As such, kalshi-sdk popularity was classified as not popular.
We found that kalshi-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.