方法一览
两种语言的全部方法。
每个调用都用创建客户端时给的 API key。需要本人登录的账户管理(API key、添加 webhook、开通或更改套餐)仍在网站上操作。
榜单与钱包
| Node | Python | 作用 |
|---|
leaderboard(query) | leaderboard(**query) | 按条件查榜单 · 接口说明 |
periods() | periods() | 已发布的统计窗口(30d、7d)与计算时间 |
entity(id) | entity(id) | 一个钱包的完整数据,传 handle 或地址 |
latency() | latency() | 实测推送延迟 |
地址
| Node | Python | 作用 |
|---|
buyReveal({ entityId, maxPriceCents }) | buy_reveal(id, max_price_cents) | 用余额买地址,扣费不超过你给的上限 · 接口说明 |
unlockWithPlan(id) | unlock_with_plan(id) | 用套餐额度解锁,不扣余额 |
myAddresses(query) | my_addresses(**query) | 解锁过的全部地址、解锁方式(unlockedBy)与推送状态 |
reveals() | reveals() | 地址购买记录 |
推送与成交
| Node | Python | 作用 |
|---|
subscribe({ entityId, channels }) | subscribe(id, channels) | 订阅一个钱包的成交推送(按小时计费,或占套餐免费名额) |
subscriptions() | subscriptions() | 进行中与已暂停的订阅 |
cancelSubscription(id) | cancel_subscription(id) | 取消订阅 |
resumeSubscription(id) | resume_subscription(id) | 恢复已暂停的订阅 |
fills(cursor) / fillsSince(cursor) | fills(...) / fills_since(cursor) | 按游标补发成交(一页 / 全部) |
信号与雷达
| Node | Python | 作用 |
|---|
signals(opts) | signals(**query) | 聪明钱信号,或你的规则触发的信号 |
radar(opts) | radar(smart, **query) | 全市场大额吃单成交 |
signalRules() / saveSignalRule(kind, rule) | signal_rules() / save_signal_rule(kind, rule) | 读取或设置推送规则 |
walletGroups() / createWalletGroup(name) | wallet_groups() / create_wallet_group(name) | 你的钱包组 |
editWalletGroup(id, change) / deleteWalletGroup(id) | edit_wallet_group(id, **change) / delete_wallet_group(id) | 修改或删除钱包组 |
quickAddWallets(id, filters) | quick_add_wallets(id, count, **filters) | 从榜单批量添加钱包 |
followedWalletGroup() | followed_wallet_group() | 你订阅的钱包(自动同步) |
套餐、邀请与状态
| Node | Python | 作用 |
|---|
quotePlanChange(tier) | quote_plan_change(tier) | 改档的结果和费用,不扣费 |
buyPlan({ tier, maxCents, requestId }) | buy_plan(tier, max_cents=, request_id=) | 用余额买 30 天;重试时 requestId 保持不变 |
me() | me() | 密钥对应的账户 |
invite() / invitees() / bindInviteCode(code) | invite() / invitees() / bind_invite_code(code) | 邀请码、受邀人和绑定邀请码 |
markets() | markets() | 最热门市场的聚合数据 |
ready() / latencyShape() / latencyIncidents() | ready() / latency_shape() / latency_incidents() | 服务状态和实测延迟 |
交易历史导出
| Node | Python | 作用 |
|---|
exportWindow() | export_window() | 当前可买的日期范围 |
exportRateCard() | export_rate_card() | 按天价目 |
exportQuote(input) | export_quote(...) | 询价,不扣费 |
createExport(input) | create_export(...) | 用余额购买 · 接口说明 |
createPlanExport(ids) | create_plan_export(ids) | 用套餐导出额度导出整个可卖区间 |
exports() / getExport(id) / exportFiles(id) | exports() / get_export(id) / export_files(id) | 导出订单与每单包含的按天文件 |
downloadExportFile(wallet, day) | download_export_file(wallet, day) | 下载一个文件(key 不会发给存储) |
账户
| Node | Python | 作用 |
|---|
plan() | plan() | 我的套餐、本期起止与额度用量 |
plans() | plans() | 在售套餐与价格 |
billing() | billing() | 余额 |
ledger({ limit, cursor }) | ledger(limit, cursor) | 账户流水,分页 |
Webhook
| Node | Python | 作用 |
|---|
webhooks() | webhooks() | 你的 webhook 及是否被停用(增删要在网站上) |
reactivateWebhook(id) | reactivate_webhook(id) | 恢复被停用的 webhook,并恢复因此暂停的订阅 |
deliveries({ limit, cursor }) | deliveries(limit, cursor) | 投递记录,最新在前 |
deliveryStats({ hours }) | delivery_stats(hours) | 投递成功率与延迟 |