sifting/io
Python 3.9+

Python SDK.

Official SiftingIO Python SDK. Sync and async clients for live and historical market data over REST and WebSocket (crypto, forex, stocks, and commodities), fully type-hinted.

View on PyPI
1 · Install
install · pip
pip install siftingio
2 · Fetch a price

Set your API key and request the latest price. The same call works for every market, just change the asset class and symbol.

main.py
from siftingio import SiftingClient client = SiftingClient(api_key="sft_...") # Latest Bitcoin pricetrade = client.last.trade("crypto", "BTCUSD")print(trade["p"], trade["t"])
3 · async client
async client
import asynciofrom siftingio import AsyncSiftingClient async def main():    async with AsyncSiftingClient(api_key="sft_...") as client:        quote = await client.last.quote("crypto", "ETHUSD")        print(quote["b"], quote["a"]) asyncio.run(main())