Skip to main content

快捷量化助手(Quick Quantitative Assistant)- 简洁易用的A股量化交易框架

Project description

qka (快量化)

快捷量化助手(Quick Quantitative Assistant)是一个简洁易用,可实操A股的量化交易框架。

安装

pip install qka

使用方法

QMTServer

from qka.server import QMTServer

server = QMTServer("YOUR_ACCOUNT_ID", "YOUR_QMT_PATH")
# 服务器启动时会打印生成的token
server.start()

QMTClient

查询

from qka.client import QMTClient

client = QMTClient(token="服务器打印的token")
# 调用接口
result = client.api("query_stock_asset")

下单

from qka.client import QMTClient
from xtquant import xtconstant

client = QMTClient(token="服务器打印的token", url="服务端地址")
# 调用接口
result = client.api("order_stock", stock_code='600000.SH', order_type=xtconstant.STOCK_BUY, order_volume =1000, price_type=xtconstant.FIX_PRICE, price=10.5)

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

qka-1.0.4.tar.gz (89.8 kB view details)

Uploaded Source

Built Distribution

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

qka-1.0.4-py3-none-any.whl (39.6 kB view details)

Uploaded Python 3

File details

Details for the file qka-1.0.4.tar.gz.

File metadata

  • Download URL: qka-1.0.4.tar.gz
  • Upload date:
  • Size: 89.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for qka-1.0.4.tar.gz
Algorithm Hash digest
SHA256 a434ba270173fc315368f16df6f645d8817092b312648c366f05a9f4a9c1b5bf
MD5 8e43849615818255b89e7f1a42af4e8f
BLAKE2b-256 fb3ef2f53de588c66c3cd36aea42f20e3030ac05e04676d358b324cdad65decb

See more details on using hashes here.

File details

Details for the file qka-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: qka-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 39.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for qka-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f0e6b324d5c4fd9da93740fd6fd7023e84256d3aef1f84c96e6d0b4fbad5a7df
MD5 928f296fcce8492c3a55a44930f0f713
BLAKE2b-256 45fbd152a4a668ff35f3b5751b21f025e746ed8c7be0b34de33ce15b3f2ae7d4

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