Skip to main content

Personal quantification tool

Project description

jettquant

PyPI - Version PyPI - Python Version


Table of Contents

Installation

pip install jettquant

Introduction

示例1:订阅全市场数据 from pandas import DataFrame

from jettquant import MarketEngine

market_engine = MarketEngine(is_verbose=True)

def on_all_tick(df: DataFrame): """每3秒推送一次截面数据""" print(df.head(5))

market_engine.subscribe_all(on_all_tick)

market_engine.start() market_engine.run_forever()

示例2:订阅单只标的 from jettquant import MarketEngine

market_engine = MarketEngine()

def func(data_dict: dict): """订阅单只标的""" print(data_dict)

xt_symbol = ["300750.SZ"] market_engine.subscribe(xt_symbol, func)

market_engine.start() market_engine.run_forever()

License

jettquant is distributed under the terms of the MIT license.

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

jettquant-0.0.1.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

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

jettquant-0.0.1-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file jettquant-0.0.1.tar.gz.

File metadata

  • Download URL: jettquant-0.0.1.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.25.2

File hashes

Hashes for jettquant-0.0.1.tar.gz
Algorithm Hash digest
SHA256 115b518a4db083c548390a37ced977840cb660e055f1d41ddd94ae1d15867249
MD5 78339a209b560e0bab39465d34bca4b9
BLAKE2b-256 e80828041e642cc8c68162b36de48845ce1432a4c156de1a4db82497c4d4b25e

See more details on using hashes here.

File details

Details for the file jettquant-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: jettquant-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.25.2

File hashes

Hashes for jettquant-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8bb4616b32afacdb2e2ca3fee0c0a3f193993aff02613abd2c27ec1f16a2150f
MD5 2f9e10285ed5b0bd0620e0d9afc372fb
BLAKE2b-256 952f967cab10bf170b4be115b55add08e02035c4dc57d2b79641c3995d5214ec

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