Skip to content

dpeachpeach/kalshi-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kalshi-rust

Rust Wrapper for the Kalshi trading API

This is a wrapper for the Kalshi trading API written by and for those using Rust. This wrapper is asynchronous and typically more performant than the official Python API provided by the developers, presented here: KalshiDevAPI.

Documentation

Read the fully-featured docs here and check the project out on crates.io.

Sample Bot

The Sample Bot directory is an example script that completes all the tasks required to obtain advanced API access from the developers.

Featurelist + Roadmap

HTTP Requests: ✅

As of now the project supports interacting with Kalshi's RESTful API fully.

However any user of this library can build a rust trading bot using this library if they wish!

Every function present in the library wraps around the Kalshi Trading API.

HTTP Feature Table

Feature Description Status
Auth/Login Retreiving your user token
Auth/Logout Deleting your user token
Exchange/GetSchedule Retrieve Exchange Schedule
Exchange/GetExchangeStatus Retreive Exchange Status
Portfolio/GetBalance Get User Balance
Portfolio/GetFills Get User's Fills that fit certain criteria
Portfolio/GetOrders Get User's orders that fit certain criteria
Portfolio/CreateOrder Submit an Order
Portfolio/BatchCreateOrders Submit multiple Orders
Portfolio/BatchCancelOrders Cancel Multiple Orders (Advanced Users Only)
Portfolio/GetOrder Get a single Order
Portfolio/CancelOrder Cancel an order
Portfolio/DecreaseOrder Decrease Order amount
Portfolio/GetPositions Get Positions (Get all the positions of logged in user)
Portfolio/GetPortfolioSettlements Get Portfolio Settlements (Get settlement history)
Market/GetEvents Get data about all events
Market/GetEvent Get data about a single event
Market/GetMarkets Get data about all markets
Market/GetTrades Get data about trades fitting certain criteria
Market/GetMarket Get data about a single market
Market/GetMarketHistory Get data about a single market's historical data
Market/GetMarketOrderBook Get a market's order book
Market/GetSeries Get data about a series

Releases

No releases published

Packages

No packages published