LogoLogo
  • Kaiko Knowledge Hub
  • General
    • 👋Introduction
    • â„šī¸General information
      • Response codes
      • API Key
      • Parameter patterns
      • Rate limiting
    • đŸŽī¸Quick-Start Guides
      • Quick-Start: Python
      • Quick-Start: cURL
  • Data Feeds
    • Introduction
    • Level 1 & Level 2 Data
      • Level 1 Aggregations
        • OHLCV
        • VWAP
      • Level 1 Tick-Level
        • All trades
        • Best bids and asks (top of book)
      • Level 2 Tick-Level
        • Bids and asks
    • Reference Data
      • Derivatives pricing
  • Analytics Solutions
    • Kaiko Best Execution
    • Kaiko Fair Market Value
      • Kaiko Fair Market Value (high liquidity pairs)
      • Kaiko Fair Market Value (low liquidity pairs)
    • Kaiko Derivatives Risk Indicators
      • Exchange-provided metrics
  • Legacy endpoints
    • Aggregated Quotes (v1)
    • OHLCV Candles (v1)
    • Trades (v1)
    • VWAP (v1)
    • Bids and asks: Market Update
  • BETA ENDPOINTS
    • Implied Volatility SVI (Closed Beta)
Powered by GitBook
On this page
  • What is this endpoint for?
  • Endpoints
  • Parameters
  • Fields
  • Request examples
  • Response Example

Was this helpful?

Export as PDF
  1. BETA ENDPOINTS

Implied Volatility SVI (Closed Beta)

PreviousBids and asks: Market Update

Last updated 8 months ago

Was this helpful?

This is a closed beta. Please contact your account manager if you'd like to be included in the program.

What is this endpoint for?

IV SVI stands for Implied Volatility Surface for Vanilla Instruments. This endpoint distributes the raw data we use to calculate our solution.

Endpoints

gateway-v0-grpc.kaiko.ovh
gateway-v0-http.kaiko.ovh
https://gateway-v0-http.kaiko.ovh/api/stream/iv_svi_parameters_v1

Parameters

Parameter
Description
Examples

assets

A nested object to configure following properties for your stream:

  • base (String) - The desired base as the underlying of the options.

  • quote (String) - The desired quote as the underlying of the options.

btc

usd

exchanges

The desired exchange as source of options data.

drbt

Fields

Field
Description

dataStartTime

Start time of the calculation window used.

dataEndTime

End time of the calculation window used.

expiry

Expiry date of the instrument.

exchanges

Exchanges included.

timeToExpiry

Time to expiry.

atmImpliedVariance

ATM implied variance.

atmSkew

ATM skew.

leftSlope

Left slope of IV smile.

rightSlope

Right slope of IV smile.

minImpliedVariance

Min implied variance.

currentSpot

Current spot.

interestRate

Interest rate.

tsEvent

Event generation timestamp (event created by Kaiko), after normalization.

Request examples

# This is a code example. Configure your parameters in the parameter configuration section #

from __future__ import print_function
import logging
import os

import grpc
from google.protobuf.json_format import MessageToJson
from google.protobuf import duration_pb2

from kaikosdk import sdk_pb2_grpc
from kaikosdk.core import instrument_criteria_pb2, assets_pb2
from kaikosdk.stream.aggregates_ohlcv_v1 import request_pb2 as pb_ohlcv
from kaikosdk.stream.aggregates_vwap_v1 import request_pb2 as pb_vwap
from kaikosdk.stream.market_update_v1 import request_pb2 as pb_market_update
from kaikosdk.stream.market_update_v1 import commodity_pb2 as pb_commodity
from kaikosdk.stream.trades_v1 import request_pb2 as pb_trades
from kaikosdk.stream.index_v1 import request_pb2 as pb_index
from kaikosdk.stream.index_multi_assets_v1 import request_pb2 as pb_index_multi_assets
from kaikosdk.stream.index_forex_rate_v1 import request_pb2 as pb_index_forex_rate
from kaikosdk.stream.aggregated_quote_v2 import request_pb2 as pb_aggregated_quote
from kaikosdk.stream.aggregates_spot_exchange_rate_v2 import request_pb2 as pb_spot_exchange_rate
from kaikosdk.stream.aggregates_direct_exchange_rate_v2 import request_pb2 as pb_direct_exchange_rate
from kaikosdk.stream.derivatives_instrument_metrics_v1 import request_pb2 as pb_derivatives_instrument_metrics
from kaikosdk.stream.iv_svi_parameters_v1 import request_pb2 as pb_iv_svi_parameters


def iv_svi_parameters_v1_request(channel: grpc.Channel):
    try:
        with channel:
            stub = sdk_pb2_grpc.StreamIvSviParametersServiceV1Stub(channel)

            responses = stub.Subscribe(pb_iv_svi_parameters.StreamIvSviParametersRequestV1(
                assets = assets_pb2.Assets(
                    base = "btc",
                    quote = "usd"
                ),
                exchanges = "drbt"
            ))
            for response in responses:
                print("Received message %s" % (MessageToJson(response, including_default_value_fields = True)))
    except grpc.RpcError as e:
        print(e.details(), e.code())



def run():
    credentials = grpc.ssl_channel_credentials(root_certificates=None)
    call_credentials = grpc.access_token_call_credentials(os.environ['KAIKO_API_KEY'])
    composite_credentials = grpc.composite_channel_credentials(credentials, call_credentials)
    channel = grpc.secure_channel('gateway-v0-grpc.kaiko.ovh', composite_credentials)

    iv_svi_parameters_v1_request(channel)

if __name__ == '__main__':
    logging.basicConfig()
    run()

cURL requests are intended for testing purposes only.

curl --request POST \
  --url https://gateway-v0-http.kaiko.ovh/api/stream/iv_svi_parameters_v1 \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: API_KEY' \
  --data '{"assets":{"base":"btc","quote":"usd"},"exchanges":"drbt"}'

Response Example

Explore codes and exchanges in the or by using the endpoint.

Explore codes and exchanges in the or by using the endpoint.

Make sure to read our before starting.

For more advanced users, you can access our full SDK , where you'll find more coding languages, examples and guidance.

Python quick-start guide
here
Instrument Explorer
Instrument Explorer
IV Smile
Reference API
Reference API