Skip to main content

A juejin quant lib to myself package

Project description

掘金量化的简化函数包(第三方)

个人自用包,出问题了欢迎提 Issue。

功能列表

A 股

获取信息

  1. 获取所有指数(股票市场、当前有效): get_all_index
  2. 获取所有股票(股票市场、当前有效): get_all_security
  3. 获取龙虎榜股票列表: get_dragon_tiger_list

执行交易

  1. 买指定数量的股票: buy_count(stock: str, count: int, price: float)
  2. 卖指定数量的股票: sell_count(stock: str, count: int, price: float)
  3. 调整仓位(到特定数量): order_target_count(stock: str, volume: int, price: float)
  4. 调整仓位(到特定价值): order_target_money(stock: str, worth: int, price: float)

记录日志

  1. 日志输出且保存: log_all,兼容 gm.log
  2. 日志不输出仅保存: log_save,兼容 gm.log
  3. 日志输出不保存,gm.print 即可

打包

  1. 更新 pyproject.toml 文件
  2. 执行 python -m build
  3. 执行 python -m twine upload dist/*
  4. 对输入框,输入账号: __token__ 并回车
  5. 最后输入 API token 即可

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

gm_libs-0.0.10.tar.gz (4.1 kB view hashes)

Uploaded Source

Built Distribution

gm_libs-0.0.10-py3-none-any.whl (5.6 kB view hashes)

Uploaded Python 3

Supported by

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