Skip to main content

Keel SDK (Python)

统一访问 Keel 四个模块:payment / wallet / data / account,基于 https://keel.codes。

安装

pip install keelcodes

用法

from keelcodes import Keel

keel = Keel(api_key="sk_payment_xxx")

# payment
res = keel.payment.charge(
    payer="0x...", amount_wei="1000000000000000",
    method="x402", reference="charge_1",
)
print(res)

# data
bars = keel.data.bars(symbol="BTC", timeframe="1d")

# account
key = keel.account.apikey_create(tenant_id="t1", module="data")

模块

  • keel.payment — 收费/付费/查账/核验/访问
  • keel.wallet — 建钱包/签名/转账/链上读写/多签/会话
  • keel.data — 取行情/K线/因子/预测/事件/知识
  • keel.account — 租户/密钥/订阅

鉴权

统一 Bearer API key(按模块订阅签发 sk_<module>_*),传入 Keel(api_key=...)。

Metadata

Release files for keelcodes 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for keelcodes 1.0.0
File Size Uploaded
keelcodes-1.0.0.tar.gz 5.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for keelcodes 1.0.0
File Interpreter ABI Platform
keelcodes-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 13.0 kB

Release files / keelcodes-1.0.0.tar.gz

Download URL keelcodes-1.0.0.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
92a7302fabff924f1536e72166d5eae051b69f1bab8942ba85eaa489b44b03b7
BLAKE2b-256 checksum
How to use checksums
c91e85cd5afbbed920ca63bb1655f85912188c59e986d3ecd27ecaa7f64e7801
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.12

Release files / keelcodes-1.0.0-py3-none-any.whl

Download URL keelcodes-1.0.0-py3-none-any.whl
Size 7.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d6ac42072beab313faf6107e5d0a409806c7aea6cab89a2b509e85f806758bc7
BLAKE2b-256 checksum
How to use checksums
e9c533fe37ef47c604bb69a3b98dcc92d97df673ba3b056ae348274a44016cca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.12

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page