insight-proxy-client
Python client for the insight_proxy TCP service. Data APIs target Insight 6.1.2;
the import namespace is insight_proxy.com.insight.
This is an independent adapter, not the official Insight SDK.
Installation
python -m pip install insight-proxy-client==0.0.1
Supports Python 3.9–3.12. pandas and NumPy are installed as dependencies. The client does not require the vendor SDK or native DLLs. A separately deployed insight_proxy server with Insight 6.1.2 and valid data access is required. This package does not include the server executable or account credentials.
Quick start
from datetime import datetime
from insight_proxy.com.insight import Client
from insight_proxy.com.insight.market_service import market_service
class Market(market_service):
def on_subscribe_tick(self, result):
print(result)
def on_query_response(self, result):
print(result)
# Both Client() and Client(Market()) are supported.
# Defaults: host="127.0.0.1", port=8765, token="123456".
# The token must match the server configuration.
with Client(Market()) as client:
frame = client.query.get_kline(
"601688.SH",
[datetime(2026, 10, 19), datetime(2026, 10, 26, 23, 59, 59)],
frequency="daily", fq="none",
)
print(frame)
client.subscribe.subscribe_tick_by_id(["601688.SH"], mode="coverage")
input("Press Enter to close the subscription session.\n")
Construction does not open a connection. Use client.connect() / client.close()
or a with block. Override connection settings using keyword arguments:
Client(Market(), host="127.0.0.1", port=8765, token="your-server-token").
Example dates are fixed historical values; select dates and instruments available
to your server account.
Migrating SDK data calls
Replace insight_python.com.insight imports with insight_proxy.com.insight.
Replace SDK login and initialization with the proxy connection:
from insight_proxy.com.insight import connect, close, query, subscribe, playback
connect() # or connect(Market(), host="...", port=8765, token="...")
try:
result = query.get_kline() # retains the SDK's missing-argument response
finally:
close()
The compatibility layer exposes 80 query functions, 11 data subscription functions,
local subscribe.sync(), two playback functions and the market_service callbacks.
It preserves Insight 6.1.2 data function signatures, DataFrame/Series values,
column ordering, indexes, dtypes, datetime values, tuples and callback names.
SDK login/logging helpers and native gateway types are outside this client API.
One compatibility session exclusively owns the server's native SDK login.
Native SDK permissions and availability still determine which requests succeed.
Do not install the older combined insight_proxy distribution alongside this
client package in the same environment: they provide the same import namespace.
Metadata
Release files for insight-proxy-client 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| insight_proxy_client-0.0.1.tar.gz | 15.5 kB | Without provenance | Details for insight_proxy_client-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| insight_proxy_client-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for insight_proxy_client-0.0.1-py3-none-any.whl |
Total release size: 32.8 kB
Release files / insight_proxy_client-0.0.1.tar.gz
| Download URL | insight_proxy_client-0.0.1.tar.gz |
|---|---|
| Size | 15.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5f145c6a302620689462d3c6e0d9ad03e82efca066db65767798f4aeb96bf0b1
|
|
BLAKE2b-256 checksum How to use checksums |
2cf8bc876e9de26c372a021216e554043a68da5cb087092d5484bf71545d70ef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.1
|
Release files / insight_proxy_client-0.0.1-py3-none-any.whl
| Download URL | insight_proxy_client-0.0.1-py3-none-any.whl |
|---|---|
| Size | 17.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b8da98e3c21fcdb0c6a5f03b19f2c935bfd723f7fb71fe8db6477db5b17b31c8
|
|
BLAKE2b-256 checksum How to use checksums |
5c7b1bd99f32b4dbca5886fdb1588ab27a363a3ac24a3d6a3b602b144749ee16
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.1
|
Security for insight-proxy-client 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.