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.2.dev1.tar.gz (88.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.2.dev1-py3-none-any.whl (40.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: qka-1.0.2.dev1.tar.gz
  • Upload date:
  • Size: 88.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.2.dev1.tar.gz
Algorithm Hash digest
SHA256 fc6d6b1141e6d4614af5c8c1e8c05947bc6861b1bd34eaa024cc284daabbac5a
MD5 1821349b01b5011856406fcf5d0f865f
BLAKE2b-256 19ee9d3598fce00054fd04fbb021b292fd92a57ca383bc3bcfbb88b4f5858fe8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: qka-1.0.2.dev1-py3-none-any.whl
  • Upload date:
  • Size: 40.8 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.2.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 570bd98ca2a551575d1552442634beda26d85e40dbd9197a1a9fad5300e96775
MD5 f4d31b0bdb91d9897573727da2f446b7
BLAKE2b-256 15975567e5dd6003ef1095d11d611e7bc7823d5b6250313271f34dc41b93a1a6

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