LogoLogo
  • Kaiko Knowledge Hub
  • Kaiko and Vinter
  • General
  • API
    • Overview
    • Multi Assets Indexes
      • Active Multi Assets
      • Multi Assets Parameters
      • Multi Assets Daily
      • Multi Assets Hourly
      • Multi Assets Real Time
      • Websocket - Multi Assets
    • Single Assets Reference Rates
      • Active Single Assets
      • Single Assets Daily
      • Single Assets Hourly
      • Single Assets Real Time
      • Websocket - Single Assets
      • Timeseries ID
    • Leveraged Indexes
      • Leveraged Single Assets
        • Leveraged Active Single Assets
        • Leveraged Single Assets Daily
      • Leveraged Multi Assets
        • Leveraged Active Multi Assets
        • Leveraged Multi Assets Daily
    • Vinter Taxonomy (VTAXO)
      • Active VTAXO
      • VTAXO
    • Net Asset Value (NAV)
      • Active Net Asset Value
      • Net Asset Value Daily
      • Net Asset Value Hourly
      • Net Asset Value Real Time
      • WebSocket - NAV
    • Staking Yield Reference Rates
      • Staking Tiers
        • On-Chain Tier
        • Staking Provider Tier
        • Exchange Tier
      • Active Staking Yields
      • Staking Yields Daily
    • API Requests Parameters
    • API Error Messages
  • FAQ
    • Onboarding
    • Product-related
    • Tech-related
Powered by GitBook
On this page

Was this helpful?

Export as PDF
  1. API
  2. Net Asset Value (NAV)

WebSocket - NAV

The WebSocket endpoint returns a WebSocket connection that can receive real-time updates on the NAV values for a specific instrument.

PreviousNet Asset Value Real TimeNextStaking Yield Reference Rates

Last updated 22 days ago

Was this helpful?

The endpoint accepts all three frequencies of symbols: daily, hourly and real-time .

You should pass the symbol of the index that you want to receive updates in the path.

The endpoint also requires an API key passed as a query parameter token for authentication.

The schema of the received data is the same for the corresponding REST endpoints. This means that if you request a real-time feed for the symbol "btc-usd-p-r" you receive the requested data on the same schema described . The same holds for hourly and daily frequencies, their schema is the same in the WebSocket endpoint as the corresponding REST endpoint.

URL Pattern:

wss://www.vinterapi.com/ws/nav/{symbol}/?token={your_secret_token}

Example URL for Symbol: vnfa-btca-15-h

wss://www.vinterapi.com/ws/nav/vnfa-btca-15-h/?token={your_secret_token}

Python code example:

# https://websocket-client.readthedocs.io/en/latest/examples.html

import websocket 
def on_message(wsapp, message):
    print(message)

url = f"wss://www.vinterapi.com/ws/nav/vnfa-btca-15-h/?token={your_secret_token}"
wsapp = websocket.WebSocketApp(url, on_message=on_message)
wsapp.run_forever()
here