Skip to main content

Kaiko

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.42.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kaikosdk 1.42.0
File Size Uploaded Provenance Actions
kaikosdk-1.42.0.tar.gz 29.5 kB Without provenance Details for kaikosdk-1.42.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for kaikosdk 1.42.0
File Interpreter ABI Platform Actions
kaikosdk-1.42.0-py3-none-any.whl Python 3 none any Details for kaikosdk-1.42.0-py3-none-any.whl

Total release size: 123.7 kB

Release files / kaikosdk-1.42.0.tar.gz

Download URL kaikosdk-1.42.0.tar.gz
Size 29.5 kB
Tags Source
SHA-256 checksum
How to use checksums
d4d6b36637be06f116b513ed4d838ddcfc91aff4e27b56dc97bc1e1d598ebeef
BLAKE2b-256 checksum
How to use checksums
43be8411c2d1fa6a5a8e072f89ede375a16f95ea5538d0afc5bbea13dd18d6c7
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.42.0-py3-none-any.whl

Download URL kaikosdk-1.42.0-py3-none-any.whl
Size 94.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
72e085f4f2074f3122dcf1fe9999fa00c288d697b924274cb0fb6fe5760b9d23
BLAKE2b-256 checksum
How to use checksums
d64d0c27db7b0531814f63abcdca5e0f6c538bbd96d73dc32fb785b5084ff6f0
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.42.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.

Release history Release notifications | RSS feed

This release

1.42.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page