Skip to main content

上币监测、限价买入

Build Status

概括:Python3脚本持续监测huobi.pro的REST-API,在新币开放交易的时候快速买入

SDK直接复制粘贴的官方推荐写法。

效果预览

任务说明>> 我想用 btc 来买 ela
钱包状况>> 我有 0.88 个 btc
当前进度>> 暂未上币...
当前进度>> 暂未上币...
当前进度>> 已下买单
订单追踪>> 未买到,取消订单...
当前进度>> 已下买单
订单追踪>> 已经买入,任务完成

参数说明

例子:当ELA单价小于0.00153BTC,以卖1价购买10个ELA;

# 等待买入的币种(小写)
COIN1 = 'ela'
# 你想买进的COIN1的数量
COIN1_AMOUNT = 10
# 当COIN1的价格小于这个价位,程序允许买入,单位为COIN2
COIN1_PRICE = 0.00153
# 用来支付的币种,在USDT/BTC/ETH中间选择
COIN2 = 'btc'

启动前的准备

在 火币PRO-我的资产-API管理 中添加一个新的API;

解压压缩包,修改 huobi.pro-quick-in\plugins\huobi\Utils.py 中的 ACCESS_KEYSECRET_KEY

修改 huobi-quick-in\main.py 中的 COIN1COIN2。COIN2(例如BTC)代表用来支付COIN1(例如RUFF)的币种。

打开命令行,切换到文件夹目录;

运行 pip install -r requirements.txt

运行 python main.py

风险自担

十分感谢V2EX的Elephant696童鞋以身试BUG...我感到十分抱歉!给他造成了大的损失!

本次提交后,买入方法改为从深度图获取价格、限价单买入。

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

huobi_quick_in-1.1.4.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

huobi_quick_in-1.1.4-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file huobi_quick_in-1.1.4.tar.gz.

File metadata

  • Download URL: huobi_quick_in-1.1.4.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.2

File hashes

Hashes for huobi_quick_in-1.1.4.tar.gz
Algorithm Hash digest
SHA256 b63626fe3c3e09178011c50e0ed8baaf87e3deeb4abc5bc635848bc124a87d7f
MD5 4f04362e8722da561d8c44a09972cf35
BLAKE2b-256 f30069cf4b009dde421a21c36a19e945aba41de7368c31568c2fb16d7dfa2de2

See more details on using hashes here.

File details

Details for the file huobi_quick_in-1.1.4-py3-none-any.whl.

File metadata

  • Download URL: huobi_quick_in-1.1.4-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.2

File hashes

Hashes for huobi_quick_in-1.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 eb59bd976f3d212ff4198c8b6c4b32203271480a97cd8c6c073a5eb81ffcc3e7
MD5 e545c4af73b0b3bbc34b90e11430b608
BLAKE2b-256 6fc15469673a1fad030b03f45474eaf71e45305c68fc05e7be4edb27be1a6d76

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.1.4 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page