Skip to main content

Openfund-core.

Project description

jiezhen

读秒循环接针

视频说明地址https://www.youtube.com/watch?v=b-LhdQomOxk

环境python3.9 开平仓模式 ,不支持单向持仓 策略原理 :上次在火币看到一些很长的针,就想着如何把针接住,本质很简单,

  1. 用ema判断短期趋势,尽可能下面挂单接住插下来的针。
  2. 如果跑15m周期以上,建议用1h的ema判断多空,或者人工介入判断

源码配置 : config_bak.json 改成config.json

apiKey: OKX API 的公钥,用于身份验证。

secret: OKX API 的私钥,用于签名请求。

password: OKX 的交易密码(或 API 密码)。

leverage: 默认持仓杠杆倍数

feishu_webhook: 飞书通知地址

monitor_interval: 循环间隔周期 / 单位秒

每个交易对都可以单独设置其交易参数:

long_amount_usdt: 做多交易时每笔订单分配的资金量(以 USDT 为单位)。

short_amount_usdt: 做空交易时每笔订单分配的资金量(以 USDT 为单位)。

value_multiplier: 用于放大交易价值的乘数,适合调整风险/回报比。

zhen.py 跟 zhen_2.py 的区别是:https://x.com/huojichuanqi/status/1858991226877603902

打赏地址trc20: TUunBuqQ1ZDYt9WrA3ZarndFPQgefXqZAM

Project details


Download files

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

Source Distribution

openfund_core-1.0.5.tar.gz (15.6 kB view details)

Uploaded Source

Built Distribution

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

openfund_core-1.0.5-py3-none-any.whl (19.5 kB view details)

Uploaded Python 3

File details

Details for the file openfund_core-1.0.5.tar.gz.

File metadata

  • Download URL: openfund_core-1.0.5.tar.gz
  • Upload date:
  • Size: 15.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.12.8 Darwin/22.6.0

File hashes

Hashes for openfund_core-1.0.5.tar.gz
Algorithm Hash digest
SHA256 c183411c5d044e6f8c2680f86551592e2f246dff190fa4ee54c612af87964f3b
MD5 a96bab2de12ed34befec68334bc1b1c8
BLAKE2b-256 2d6b471c8b03bbe60dd96330005c0e98a0cde313a207544d1be4073bdb908651

See more details on using hashes here.

File details

Details for the file openfund_core-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: openfund_core-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 19.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.12.8 Darwin/22.6.0

File hashes

Hashes for openfund_core-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 be6028f5616e40e66a0c443eec3f195bee87b3868f966b1a5b6e0a01db263811
MD5 b3e2458003677adb8d9d28997787cb8a
BLAKE2b-256 6af9534a373ced4c991ab6e00a3a81201edf0533cdfb687c6be667fe82d7256c

See more details on using hashes here.

Supported by

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