kaikosdk
Python client library for the Kaiko gRPC API. This SDK provides auto-generated gRPC stubs for streaming cryptocurrency market data.
Installation
pip install kaikosdk
Requirements
- Python 3.9+
- A valid Kaiko API key
Usage
import grpc
from kaikosdk import sdk_pb2_grpc
from kaikosdk.stream.trades_v1 import request_pb2 as trades_request
from kaikosdk.core import instrument_criteria_pb2
channel = grpc.secure_channel("gateway-v0-grpc.kaiko.ovh:443", grpc.ssl_channel_credentials())
stub = sdk_pb2_grpc.StreamTradesServiceV1Stub(channel)
metadata = [("authorization", "Bearer <YOUR_API_KEY>")]
request = trades_request.StreamTradesRequestV1(
instrument_criteria=instrument_criteria_pb2.InstrumentCriteria(
exchange="cbse",
instrument_class="spot",
code="btc-usd",
)
)
for response in stub.Subscribe(request, metadata=metadata):
print(f"Trade: {response}")
Available Services
All services expose a Subscribe method that returns a server-side stream.
| Service | Description |
|---|---|
StreamTradesServiceV1 |
Real-time trades |
StreamMarketUpdateServiceV1 |
Market updates |
StreamAggregatedQuoteServiceV2 |
Aggregated quotes |
StreamAggregatedPriceServiceV1 |
Aggregated prices |
StreamAggregatedStatePriceServiceV1 |
Aggregated state prices |
StreamAggregatesOHLCVServiceV1 |
OHLCV aggregates |
StreamAggregatesVWAPServiceV1 |
VWAP aggregates |
StreamAggregatesSpotExchangeRateV2ServiceV1 |
Spot exchange rates |
StreamAggregatesSpotDirectExchangeRateV2ServiceV1 |
Direct exchange rates |
StreamOrderbookL2ServiceV1 |
Level 2 order book |
StreamOrderbookL2ReplayServiceV1 |
Level 2 order book replay |
StreamIndexServiceV1 |
Index values |
StreamIndexMultiAssetsServiceV1 |
Multi-asset index values |
StreamIndexForexRateServiceV1 |
Index forex rates |
StreamCompositeIndicesServiceV1 |
Composite indices |
StreamConstantDurationIndicesServiceV1 |
Constant duration indices |
StreamExoticIndicesServiceV1 |
Exotic indices |
StreamDerivativesInstrumentMetricsServiceV1 |
Derivatives instrument metrics |
StreamIvSviParametersServiceV1 |
IV SVI parameters |
StreamStakingRatesServiceV1 |
Staking rates |
StreamCantonOracleServiceV1 |
Signed Canton pull-oracle data (crypto / NAV feeds) |
StreamCantonOracleServiceV2 |
Signed Canton pull-oracle payloads V2 |
StreamEvmOracleServiceV1 |
EVM pull-oracle EIP-712 signed prices |
Examples
For more complete examples, see the kaiko-sdk-examples repository.
Metadata
Release files for kaikosdk 1.41.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| kaikosdk-1.41.0.tar.gz | 29.5 kB | Without provenance | Details for kaikosdk-1.41.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kaikosdk-1.41.0-py3-none-any.whl | Python 3 | none | any | Details for kaikosdk-1.41.0-py3-none-any.whl |
Total release size: 123.7 kB
Release files / kaikosdk-1.41.0.tar.gz
| Download URL | kaikosdk-1.41.0.tar.gz |
|---|---|
| Size | 29.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3f03e4ae8f8ac9949512e46569f1814f6cf77569fd123e26cae34b40f696e931
|
|
BLAKE2b-256 checksum How to use checksums |
9f248ddb5955d0d40b0999da637f3d3c66124be9d5b96e0b8dfc20b9392c5329
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / kaikosdk-1.41.0-py3-none-any.whl
| Download URL | kaikosdk-1.41.0-py3-none-any.whl |
|---|---|
| Size | 94.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6362c3e6d48bc197f55e2a81fa6cae011b87bf3cea8bed0935cd20bac1a083d5
|
|
BLAKE2b-256 checksum How to use checksums |
d95eb0a44da3e2a1b028fbf35a0c7e27b169171e1953f8369ab9996a0d28b089
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Security for kaikosdk 1.41.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.