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.dev1.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.dev1-py3-none-any.whl (39.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: qka-1.0.4.dev1.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.dev1.tar.gz
Algorithm Hash digest
SHA256 b66cd55517b02ef6f7d8ed62b952212f7a4bdbdcb676ba7a535165b0a2fae124
MD5 90c7b98d9acff6eea57411f960b2f956
BLAKE2b-256 ce83d919e33e6c982c0f200613d7e9d980e6063afd325d252e9621bf0a090553

See more details on using hashes here.

File details

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

File metadata

  • Download URL: qka-1.0.4.dev1-py3-none-any.whl
  • Upload date:
  • Size: 39.7 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.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 b1807fc98d152130a42f8b3345c29982b88f767276b4607db179dd1635c1be6c
MD5 4a29d33e40f9098c97b2544f9f08e3b8
BLAKE2b-256 66b9a634700733d60dec70641b5f4de61e9cea9cef9137620b4f2ff02ab34713

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