squidlor 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
squidlor/__init__.py ADDED
@@ -0,0 +1,54 @@
1
+ """Python client for the Squidlor Aggregator REST API.
2
+
3
+ Squidlor is a price-oracle network. Its REST API exposes the on-chain
4
+ aggregator state as JSON: live feed medians with per-source breakdowns,
5
+ recorded history, OHLC candles, a per-source audit trail, provider
6
+ scorecards, point-in-time reads with Merkle proofs, a 1-second realtime
7
+ off-chain price feed, and a permanent daily price book.
8
+
9
+ The API works without a key; an optional ``sq_live_...`` key raises rate
10
+ limits. See https://docs.squidlor.com/api for the full reference and the
11
+ machine-readable spec at https://api.squidlor.com/aggregator/openapi.json.
12
+
13
+ Example::
14
+
15
+ from squidlor import SquidlorClient
16
+
17
+ with SquidlorClient() as client:
18
+ print(client.get_value("BTC/USD").value)
19
+ """
20
+
21
+ from .client import (
22
+ DEFAULT_BASE_URL,
23
+ DEFAULT_CHAIN,
24
+ AsyncSquidlorClient,
25
+ ResponseInfo,
26
+ SquidlorClient,
27
+ )
28
+ from .errors import (
29
+ AuthenticationError,
30
+ NotFoundError,
31
+ RateLimitError,
32
+ ServiceUnavailableError,
33
+ SquidlorApiError,
34
+ SquidlorError,
35
+ SquidlorTransportError,
36
+ )
37
+
38
+ __version__ = "0.1.0"
39
+
40
+ __all__ = [
41
+ "DEFAULT_BASE_URL",
42
+ "DEFAULT_CHAIN",
43
+ "AsyncSquidlorClient",
44
+ "AuthenticationError",
45
+ "NotFoundError",
46
+ "RateLimitError",
47
+ "ResponseInfo",
48
+ "ServiceUnavailableError",
49
+ "SquidlorApiError",
50
+ "SquidlorClient",
51
+ "SquidlorError",
52
+ "SquidlorTransportError",
53
+ "__version__",
54
+ ]