Expand description
A rust crate for making requests to the Kraken Rest API and subscribing to Kraken websockets feeds
Modules§
- ws
- An interface for getting data from Kraken websockets API, while another thread manages the updates from the websockets connection.
Structs§
- AddOrder
Response - Add order response
- Asset
Ticker Info - (Substructure within) Result of kraken public “Ticker” API call
- Cancel
AllOrders After Response - Cancel all orders after response
- Cancel
AllOrders Response - Cancel all orders response
- Cancel
Order Response - Cancel order response
- GetOpen
Orders Response - Get open orders response
- GetWeb
Sockets Token Response - WebSockets authenitcation token response, including token and expiry
- Kraken
Credentials - Credentials needed to use private Kraken APIs.
- Kraken
RestAPI - A connection to the Kraken REST API This only supports blocking http requests for now
- Kraken
Rest Client - A low-level https connection to kraken that can execute public or private methods.
- Kraken
Rest Config - Configuration needed to initialize a Kraken client. The credentials aren’t needed if only public APIs are used
- Limit
Order - A description of a limit order to place
- Market
Order - A description of a market order to place
- Order
Added - Substructure within AddOrderResponse
- Order
Info - Order-info used in OpenOrders and QueryOrders APIs
- System
Status Response - Result of kraken public “SystemStatus” API call
- Time
Response - Result of kraken public “Time” API call
Enums§
- BsType
- Type (buy/sell) These are kebab-case strings in json
- Error
- An error that can be generated from the low-level kraken client
- Order
Flag - Possible order flags in Kraken. These are options in a comma-separated list
- Order
Status - Possible order statuses in Kraken. These are kebab-case strings in json
- Order
Type - Possible order types in Kraken. These are kebab-case strings in json
Type Aliases§
- Asset
Pairs Response - Type alias for response of AssetPairs API call
- Assets
Response - Type alias for response of Assets API call
- Balance
Response - Type alias for response of Balance API call
- Result
- Alias for Result that contains the error type for this crate
- Ticker
Response - Type alias for response of Ticker API call
- TxId
- TxId are represented as String’s in kraken json api
- User
RefId - User-reference id’s are signed 32-bit in kraken json api