Expand description
CoinAPI API key resolution and validation.
REST and WebSocket requests send the same key in the X-CoinAPI-Key header.
Constants§
- COINAPI_
API_ KEY - Environment variable read when no API key is configured.
Functions§
- is_
valid_ api_ key - Returns whether an API key is non-empty visible ASCII, as HTTP headers require.
- resolve_
api_ key - Resolves the API key from
api_key, or fromCOINAPI_API_KEYwhen it isNone.