hiveq-sdk 0.3.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- hiveq_sdk-0.3.7/LICENSE +201 -0
- hiveq_sdk-0.3.7/MANIFEST.in +4 -0
- hiveq_sdk-0.3.7/PKG-INFO +228 -0
- hiveq_sdk-0.3.7/README.md +201 -0
- hiveq_sdk-0.3.7/docs/README.md +29 -0
- hiveq_sdk-0.3.7/docs/data_driver/llms.txt +1382 -0
- hiveq_sdk-0.3.7/docs/llms.txt +1794 -0
- hiveq_sdk-0.3.7/pyproject.toml +66 -0
- hiveq_sdk-0.3.7/setup.cfg +4 -0
- hiveq_sdk-0.3.7/setup.py +38 -0
- hiveq_sdk-0.3.7/src/hiveq/__init__.py +1 -0
- hiveq_sdk-0.3.7/src/hiveq/cli.py +224 -0
- hiveq_sdk-0.3.7/src/hiveq/datasets.py +434 -0
- hiveq_sdk-0.3.7/src/hiveq/datetime/__init__.py +29 -0
- hiveq_sdk-0.3.7/src/hiveq/dd.py +51 -0
- hiveq_sdk-0.3.7/src/hiveq/dd.pyi +93 -0
- hiveq_sdk-0.3.7/src/hiveq/docs/data_driver/llms.txt +1382 -0
- hiveq_sdk-0.3.7/src/hiveq/docs/llms.txt +1794 -0
- hiveq_sdk-0.3.7/src/hiveq/driver/__init__.py +0 -0
- hiveq_sdk-0.3.7/src/hiveq/driver/_qpython_compat.py +2 -0
- hiveq_sdk-0.3.7/src/hiveq/driver/config_property_manager.py +23 -0
- hiveq_sdk-0.3.7/src/hiveq/driver/csv_transport.py +6 -0
- hiveq_sdk-0.3.7/src/hiveq/driver/data_driver.py +6 -0
- hiveq_sdk-0.3.7/src/hiveq/driver/data_driver_interface.py +10 -0
- hiveq_sdk-0.3.7/src/hiveq/driver/date_time_utils.py +19 -0
- hiveq_sdk-0.3.7/src/hiveq/driver/hdf5_transport.py +6 -0
- hiveq_sdk-0.3.7/src/hiveq/driver/hiveq_subscriber.py +12 -0
- hiveq_sdk-0.3.7/src/hiveq/driver/hiveq_transport.py +6 -0
- hiveq_sdk-0.3.7/src/hiveq/driver/kdb_subscriber.py +6 -0
- hiveq_sdk-0.3.7/src/hiveq/driver/kdb_transport.py +6 -0
- hiveq_sdk-0.3.7/src/hiveq/driver/template_utils.py +2 -0
- hiveq_sdk-0.3.7/src/hiveq/driver/utils.py +2 -0
- hiveq_sdk-0.3.7/src/hiveq/flow/__init__.py +435 -0
- hiveq_sdk-0.3.7/src/hiveq/flow/_client.py +411 -0
- hiveq_sdk-0.3.7/src/hiveq/flow/_payload.py +52 -0
- hiveq_sdk-0.3.7/src/hiveq/flow/_source_bundle.py +377 -0
- hiveq_sdk-0.3.7/src/hiveq/flow/auth.py +331 -0
- hiveq_sdk-0.3.7/src/hiveq/flow/config.py +835 -0
- hiveq_sdk-0.3.7/src/hiveq/flow/context.py +323 -0
- hiveq_sdk-0.3.7/src/hiveq/flow/data/__init__.py +25 -0
- hiveq_sdk-0.3.7/src/hiveq/flow/data/data_types.py +46 -0
- hiveq_sdk-0.3.7/src/hiveq/flow/data/data_types.pyi +245 -0
- hiveq_sdk-0.3.7/src/hiveq/flow/data/reader.py +152 -0
- hiveq_sdk-0.3.7/src/hiveq/flow/deploy_task.py +233 -0
- hiveq_sdk-0.3.7/src/hiveq/flow/events/__init__.py +154 -0
- hiveq_sdk-0.3.7/src/hiveq/flow/events/event_types.py +64 -0
- hiveq_sdk-0.3.7/src/hiveq/flow/events/event_types.pyi +105 -0
- hiveq_sdk-0.3.7/src/hiveq/flow/functions.py +401 -0
- hiveq_sdk-0.3.7/src/hiveq/flow/job_deploy.py +196 -0
- hiveq_sdk-0.3.7/src/hiveq/flow/jobs.py +62 -0
- hiveq_sdk-0.3.7/src/hiveq/flow/logger/__init__.py +239 -0
- hiveq_sdk-0.3.7/src/hiveq/flow/metrics/__init__.py +9 -0
- hiveq_sdk-0.3.7/src/hiveq/flow/metrics/report.py +821 -0
- hiveq_sdk-0.3.7/src/hiveq/flow/oms/__init__.py +7 -0
- hiveq_sdk-0.3.7/src/hiveq/flow/oms/sigma/__init__.py +9 -0
- hiveq_sdk-0.3.7/src/hiveq/flow/oms/sigma/sigma_context.py +47 -0
- hiveq_sdk-0.3.7/src/hiveq/flow/oms/sigma/sigma_context.pyi +107 -0
- hiveq_sdk-0.3.7/src/hiveq/flow/oms/sigma/types/__init__.py +28 -0
- hiveq_sdk-0.3.7/src/hiveq/flow/oms/sigma/types/bar.py +13 -0
- hiveq_sdk-0.3.7/src/hiveq/flow/oms/sigma/types/bar.pyi +29 -0
- hiveq_sdk-0.3.7/src/hiveq/flow/oms/sigma/types/custom_data.py +13 -0
- hiveq_sdk-0.3.7/src/hiveq/flow/oms/sigma/types/custom_data.pyi +23 -0
- hiveq_sdk-0.3.7/src/hiveq/flow/oms/sigma/types/executor.py +13 -0
- hiveq_sdk-0.3.7/src/hiveq/flow/oms/sigma/types/executor.pyi +31 -0
- hiveq_sdk-0.3.7/src/hiveq/flow/oms/sigma/types/fill.py +13 -0
- hiveq_sdk-0.3.7/src/hiveq/flow/oms/sigma/types/fill.pyi +26 -0
- hiveq_sdk-0.3.7/src/hiveq/flow/oms/sigma/types/order.py +13 -0
- hiveq_sdk-0.3.7/src/hiveq/flow/oms/sigma/types/order.pyi +68 -0
- hiveq_sdk-0.3.7/src/hiveq/flow/oms/sigma/types/portfolio.py +16 -0
- hiveq_sdk-0.3.7/src/hiveq/flow/oms/sigma/types/portfolio.pyi +53 -0
- hiveq_sdk-0.3.7/src/hiveq/flow/oms/sigma/types/position.py +13 -0
- hiveq_sdk-0.3.7/src/hiveq/flow/oms/sigma/types/position.pyi +38 -0
- hiveq_sdk-0.3.7/src/hiveq/flow/oms/sigma/types/quote_tick.py +13 -0
- hiveq_sdk-0.3.7/src/hiveq/flow/oms/sigma/types/quote_tick.pyi +27 -0
- hiveq_sdk-0.3.7/src/hiveq/flow/oms/sigma/types/snap.py +13 -0
- hiveq_sdk-0.3.7/src/hiveq/flow/oms/sigma/types/snap.pyi +43 -0
- hiveq_sdk-0.3.7/src/hiveq/flow/oms/sigma/types/trade_stats.py +13 -0
- hiveq_sdk-0.3.7/src/hiveq/flow/oms/sigma/types/trade_stats.pyi +14 -0
- hiveq_sdk-0.3.7/src/hiveq/flow/oms/sigma/types/trade_tick.py +13 -0
- hiveq_sdk-0.3.7/src/hiveq/flow/oms/sigma/types/trade_tick.pyi +23 -0
- hiveq_sdk-0.3.7/src/hiveq/flow/py.typed +0 -0
- hiveq_sdk-0.3.7/src/hiveq/flow/runs.py +628 -0
- hiveq_sdk-0.3.7/src/hiveq/flow/trading/__init__.py +5 -0
- hiveq_sdk-0.3.7/src/hiveq/flow/trading/price_utils.py +94 -0
- hiveq_sdk-0.3.7/src/hiveq/flow/trading_types.py +143 -0
- hiveq_sdk-0.3.7/src/hiveq/flow/uploads.py +398 -0
- hiveq_sdk-0.3.7/src/hiveq/flow/utils/__init__.py +314 -0
- hiveq_sdk-0.3.7/src/hiveq/flow/utils/date_calendar.py +269 -0
- hiveq_sdk-0.3.7/src/hiveq/flow/utils/timezone_utils.py +360 -0
- hiveq_sdk-0.3.7/src/hiveq/logger/__init__.py +7 -0
- hiveq_sdk-0.3.7/src/hiveq/py.typed +0 -0
- hiveq_sdk-0.3.7/src/hiveq/subscriber.py +9 -0
- hiveq_sdk-0.3.7/src/hiveq/symbol.py +41 -0
- hiveq_sdk-0.3.7/src/hiveq/utils/__init__.py +1 -0
- hiveq_sdk-0.3.7/src/hiveq/utils/datetime_utils.py +10 -0
- hiveq_sdk-0.3.7/src/hiveq/utils/single_ton_meta.py +5 -0
- hiveq_sdk-0.3.7/src/hiveq_data/__init__.py +29 -0
- hiveq_sdk-0.3.7/src/hiveq_data/base_client.py +6 -0
- hiveq_sdk-0.3.7/src/hiveq_data/config.py +21 -0
- hiveq_sdk-0.3.7/src/hiveq_data/exceptions.py +26 -0
- hiveq_sdk-0.3.7/src/hiveq_data/historical/__init__.py +36 -0
- hiveq_sdk-0.3.7/src/hiveq_data/historical/client.py +33 -0
- hiveq_sdk-0.3.7/src/hiveq_data/instrument_reference/__init__.py +46 -0
- hiveq_sdk-0.3.7/src/hiveq_data/instrument_reference/base.py +6 -0
- hiveq_sdk-0.3.7/src/hiveq_data/instrument_reference/client.py +48 -0
- hiveq_sdk-0.3.7/src/hiveq_data/instrument_reference/equity_referene.py +6 -0
- hiveq_sdk-0.3.7/src/hiveq_data/instrument_reference/futures_reference.py +6 -0
- hiveq_sdk-0.3.7/src/hiveq_data/instrument_reference/index_reference.py +6 -0
- hiveq_sdk-0.3.7/src/hiveq_data/instrument_reference/options_reference.py +6 -0
- hiveq_sdk-0.3.7/src/hiveq_data/instrument_reference/symbol_parser.py +29 -0
- hiveq_sdk-0.3.7/src/hiveq_data/internal/__init__.py +0 -0
- hiveq_sdk-0.3.7/src/hiveq_data/internal/async_http_client.py +2 -0
- hiveq_sdk-0.3.7/src/hiveq_data/live/__init__.py +31 -0
- hiveq_sdk-0.3.7/src/hiveq_data/live/client.py +30 -0
- hiveq_sdk-0.3.7/src/hiveq_data/metadata/__init__.py +19 -0
- hiveq_sdk-0.3.7/src/hiveq_data/metadata/client.py +18 -0
- hiveq_sdk-0.3.7/src/hiveq_data/publisher/__init__.py +64 -0
- hiveq_sdk-0.3.7/src/hiveq_data/publisher/base_publisher.py +47 -0
- hiveq_sdk-0.3.7/src/hiveq_data/publisher/client.py +28 -0
- hiveq_sdk-0.3.7/src/hiveq_data/py.typed +0 -0
- hiveq_sdk-0.3.7/src/hiveq_sdk.egg-info/PKG-INFO +228 -0
- hiveq_sdk-0.3.7/src/hiveq_sdk.egg-info/SOURCES.txt +124 -0
- hiveq_sdk-0.3.7/src/hiveq_sdk.egg-info/dependency_links.txt +1 -0
- hiveq_sdk-0.3.7/src/hiveq_sdk.egg-info/entry_points.txt +4 -0
- hiveq_sdk-0.3.7/src/hiveq_sdk.egg-info/requires.txt +14 -0
- hiveq_sdk-0.3.7/src/hiveq_sdk.egg-info/top_level.txt +2 -0
hiveq_sdk-0.3.7/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2026 HiveQ
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
hiveq_sdk-0.3.7/PKG-INFO
ADDED
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: hiveq-sdk
|
|
3
|
+
Version: 0.3.7
|
|
4
|
+
Summary: Thin HiveQ Flow client SDK — author strategies and deploy backtests to the HiveQ platform. Ships type stubs + the deploy/observe client only (no engine).
|
|
5
|
+
Author: HiveQ
|
|
6
|
+
License-Expression: Apache-2.0
|
|
7
|
+
Classifier: Programming Language :: Python :: 3
|
|
8
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
9
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
10
|
+
Requires-Python: >=3.11
|
|
11
|
+
Description-Content-Type: text/markdown
|
|
12
|
+
License-File: LICENSE
|
|
13
|
+
Requires-Dist: pandas>=2.3.2
|
|
14
|
+
Requires-Dist: colorlog==6.9.0
|
|
15
|
+
Requires-Dist: requests>=2.25.0
|
|
16
|
+
Requires-Dist: cloudpickle>=2.0.0
|
|
17
|
+
Requires-Dist: tqdm>=4.0.0
|
|
18
|
+
Requires-Dist: quantstats>=0.0.62
|
|
19
|
+
Requires-Dist: matplotlib>=3.5.0
|
|
20
|
+
Requires-Dist: weasyprint>=60
|
|
21
|
+
Provides-Extra: dev
|
|
22
|
+
Requires-Dist: pytest; extra == "dev"
|
|
23
|
+
Requires-Dist: mypy; extra == "dev"
|
|
24
|
+
Requires-Dist: build; extra == "dev"
|
|
25
|
+
Requires-Dist: twine; extra == "dev"
|
|
26
|
+
Dynamic: license-file
|
|
27
|
+
|
|
28
|
+
# HiveQ SDK
|
|
29
|
+
|
|
30
|
+
**Institutional-grade quantitative trading and backtesting — in a few lines of Python.**
|
|
31
|
+
|
|
32
|
+
HiveQ is the platform that has executed billions of dollars in trades across
|
|
33
|
+
equities, futures, and options over years of live operation. The HiveQ SDK puts
|
|
34
|
+
that same engine behind a single Python import: you write a strategy on your
|
|
35
|
+
machine, and HiveQ runs it on its platform — sourcing the market data, simulating
|
|
36
|
+
execution against real market microstructure, and handing you back a full
|
|
37
|
+
performance report.
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
pip install hiveq-sdk
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Optional one-time sign-in, useful before direct data-driver work:
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
hiveq login
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
Backtests trigger the same browser sign-in automatically on first use. To find
|
|
50
|
+
the docs bundled inside the installed wheel:
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
hiveq docs
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
List the datasets and schemas available to your account:
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
hiveq datasets
|
|
60
|
+
hiveq datasets fields HIVEQ_US_EQ bars_1m
|
|
61
|
+
hiveq datasets sample HIVEQ_US_EQ bars_1m --limit 5
|
|
62
|
+
hiveq datasets sample HIVEQ_US_EQ bars_1m --filters '{"symbol":"AAPL"}' --start 2026-06-01 --end 2026-06-01
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
The sample command derives a small valid symbol/date window from metadata when
|
|
66
|
+
you do not pass filters. Use `--filters`, `--start`, and `--end` when you want a
|
|
67
|
+
specific slice.
|
|
68
|
+
|
|
69
|
+
You write the *what* (your trading logic). The platform handles the *how* — data,
|
|
70
|
+
execution, settlement, analytics, and scale.
|
|
71
|
+
|
|
72
|
+
## Why HiveQ
|
|
73
|
+
|
|
74
|
+
- **A simulator built to mirror production.** Backtests run on a robust
|
|
75
|
+
execution simulator that tracks real production order flow closely, so what you
|
|
76
|
+
validate in research behaves like it will in live — no rewrite to go from
|
|
77
|
+
research to live.
|
|
78
|
+
- **Every run is tracked and versioned.** Strategy code and config changes are
|
|
79
|
+
captured and versioned per run, so a backtest that performed well is always
|
|
80
|
+
reproducible — go back, inspect the exact code and configuration behind it, and
|
|
81
|
+
build from there.
|
|
82
|
+
- **Realistic execution, not fills-at-close.** Orders clear against real market
|
|
83
|
+
microstructure: tick-level data, exchange session windows, opening/closing
|
|
84
|
+
auctions routed to the primary exchange, per-asset fee models, slippage, and
|
|
85
|
+
tick-size rounding. What you see in a backtest is what you'd get.
|
|
86
|
+
- **Built-in execution algorithms.** Work orders with production execution
|
|
87
|
+
algos — POV, TWAP, and market-on-open / market-on-close auctions — the same
|
|
88
|
+
ones used in live trading, not approximations.
|
|
89
|
+
- **Multi-asset and multi-strategy.** Equities, futures (including continuous
|
|
90
|
+
contracts with automatic rollover), and options (down to 0DTE) — trade them
|
|
91
|
+
together, run a portfolio of strategies in one backtest.
|
|
92
|
+
- **Research → live in one click.** The strategy you backtest runs unchanged in
|
|
93
|
+
live and paper trading — same code, just a live config. Promote a validated
|
|
94
|
+
backtest to a live or paper simulation from the HiveQ platform with a single
|
|
95
|
+
click; no rewrite, no redeploy dance.
|
|
96
|
+
- **Institutional analytics out of the box.** Performance reports, positions and
|
|
97
|
+
trades over time, daily P&L, transaction-cost analysis (TCA), realtime metrics,
|
|
98
|
+
and exportable PDF tearsheets.
|
|
99
|
+
- **Nothing to manage.** No clusters to provision, no engine to install — even
|
|
100
|
+
your API key is generated for you. The platform fetches data and runs the
|
|
101
|
+
compute; you just write strategies.
|
|
102
|
+
- **Run your own scripts — on a schedule, no dev help.** Beyond strategies, run
|
|
103
|
+
arbitrary Python on the platform as a job: compute signals, scores, or any
|
|
104
|
+
derived calculation your trading depends on, and publish them as a dataset your
|
|
105
|
+
strategies subscribe to. Configure a script to run on a schedule (e.g. nightly
|
|
106
|
+
or pre-open) so fresh signals are ready before the session — you manage these
|
|
107
|
+
end-to-end yourself, no engineering team in the loop.
|
|
108
|
+
- **A reusable, versioned function registry.** Push a Python function once and
|
|
109
|
+
reference it by name and version from any strategy or script. Indicators,
|
|
110
|
+
signal models, and shared utilities live in one place, versioned — so research
|
|
111
|
+
reuses production logic instead of re-implementing it, and you can roll forward
|
|
112
|
+
or back with confidence.
|
|
113
|
+
- **Bring your own data.** Upload custom datasets to the platform and reference
|
|
114
|
+
them from strategies the same way you reference market data.
|
|
115
|
+
- **One console for everything.** The HiveQ platform gives you a single place to
|
|
116
|
+
track and manage all your work — backtests, live simulations, and your own
|
|
117
|
+
scheduled scripts — with their results, logs, and versioned history side by
|
|
118
|
+
side.
|
|
119
|
+
- **An AI-native platform.** HiveQ ships with an AI assistant fine-tuned for the
|
|
120
|
+
platform — author and refine strategies, explain results, and build signals in
|
|
121
|
+
natural language, with an assistant that already knows the HiveQ API.
|
|
122
|
+
|
|
123
|
+
## How it feels to use
|
|
124
|
+
|
|
125
|
+
A strategy is a plain Python class with one method per event. Subscribe to data
|
|
126
|
+
in `on_start`, react to it as it arrives, and place orders through the `ctx`
|
|
127
|
+
handle that every callback receives.
|
|
128
|
+
|
|
129
|
+
```python
|
|
130
|
+
import hiveq.flow as hf
|
|
131
|
+
from hiveq.flow import StrategyConfig, AssetType
|
|
132
|
+
|
|
133
|
+
class BuyAndHold:
|
|
134
|
+
def __init__(self):
|
|
135
|
+
self.bought = False
|
|
136
|
+
|
|
137
|
+
def on_start(self, ctx, event):
|
|
138
|
+
ctx.subscribe_bars(ctx.strategy_config.symbols,
|
|
139
|
+
asset_type=AssetType.EQUITY, interval='1m')
|
|
140
|
+
|
|
141
|
+
def on_bar(self, ctx, event):
|
|
142
|
+
bar = event.data()
|
|
143
|
+
if not self.bought and ctx.is_flat(bar.symbol):
|
|
144
|
+
ctx.buy_order(bar.symbol, quantity=100)
|
|
145
|
+
self.bought = True
|
|
146
|
+
|
|
147
|
+
run = hf.run_backtest(
|
|
148
|
+
strategy_configs=[StrategyConfig(name='BuyAndHold', type='BuyAndHold')],
|
|
149
|
+
symbols=['AAPL'],
|
|
150
|
+
start_date='2025-08-01',
|
|
151
|
+
end_date='2025-08-31',
|
|
152
|
+
)
|
|
153
|
+
|
|
154
|
+
run.wait() # deploy returns immediately — this blocks with a live progress bar
|
|
155
|
+
print(run.report().return_stats.to_string())
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
Run it like any script:
|
|
159
|
+
|
|
160
|
+
```bash
|
|
161
|
+
python my_strategy.py
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
That's the whole loop: author locally, call `run_backtest`, and the platform
|
|
165
|
+
deploys your strategy, runs it on the engine, and returns a **run handle** for
|
|
166
|
+
inspecting results.
|
|
167
|
+
|
|
168
|
+
## You get back a full performance report
|
|
169
|
+
|
|
170
|
+
`run_backtest` returns a `Run` — the single handle for everything the strategy
|
|
171
|
+
produced:
|
|
172
|
+
|
|
173
|
+
```python
|
|
174
|
+
run.report() # full performance report (returns, drawdown, ratios)
|
|
175
|
+
run.positions() # positions over time (DataFrame)
|
|
176
|
+
run.trades() # executed trades (DataFrame)
|
|
177
|
+
run.daily_returns() # daily P&L (DataFrame)
|
|
178
|
+
run.logs() # execution logs
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
The same handle works for any past run — `hf.get_run(run_id)` reattaches to it.
|
|
182
|
+
|
|
183
|
+
## The strategy model
|
|
184
|
+
|
|
185
|
+
- **One class, callback methods.** Implement the events you care about —
|
|
186
|
+
`on_start`, `on_bar`, `on_trade`, `on_order`, `on_position`, `on_timer`, and
|
|
187
|
+
more. `StrategyConfig.type` is just the class name as a string.
|
|
188
|
+
- **Subscribe in `on_start`.** Call `ctx.subscribe_bars(...)` (and friends)
|
|
189
|
+
there so your data is registered before the run begins.
|
|
190
|
+
- **Place orders through `ctx`.** Market, limit, and stop orders, brackets,
|
|
191
|
+
modify/cancel, plus production execution algorithms (POV, TWAP, auctions).
|
|
192
|
+
- **Everything flows through events.** Each callback receives an `event`; call
|
|
193
|
+
`event.data()` for the bar, trade, order, or position that triggered it.
|
|
194
|
+
|
|
195
|
+
## Supported markets
|
|
196
|
+
|
|
197
|
+
Equities, futures (including continuous contracts with automatic rollover),
|
|
198
|
+
and options — plus your own custom data feeds, all tradable in one backtest.
|
|
199
|
+
|
|
200
|
+
## Learn more
|
|
201
|
+
|
|
202
|
+
- **[`examples/`](examples/)** — complete, runnable strategies: intraday
|
|
203
|
+
momentum, bracket orders, pairs trading, 0DTE options, futures sessions,
|
|
204
|
+
scheduled timers, custom data, and more.
|
|
205
|
+
- **[`docs/llms.txt`](docs/llms.txt)** — the complete API
|
|
206
|
+
reference in a **single file**: every callback, order type, execution
|
|
207
|
+
algorithm, and result accessor, with the dataset/schema catalog as an
|
|
208
|
+
appendix (use `hiveq datasets` for the live catalog from HiveQ metadata).
|
|
209
|
+
It always matches the SDK release (the version is stated in its header),
|
|
210
|
+
and a copy ships inside the wheel — `hiveq docs` prints the installed path.
|
|
211
|
+
- **[`docs/data_driver/llms.txt`](docs/data_driver/llms.txt)**
|
|
212
|
+
— reference for the separate data-driver config DSL (`hiveq.driver`); Part II
|
|
213
|
+
of the same file covers the underlying `hiveq_data` SDK client.
|
|
214
|
+
|
|
215
|
+
### How to read the docs
|
|
216
|
+
|
|
217
|
+
Each reference is one plain-markdown file (`llms.txt`) sized to be loaded in a
|
|
218
|
+
single read (~31k tokens for the flow spec). This applies whether you're a
|
|
219
|
+
human, Claude, Codex, Kimi, or any other agent reading this repo — there is no
|
|
220
|
+
special tooling involved:
|
|
221
|
+
|
|
222
|
+
1. Load the whole file in **one** read — one read is cheap; dozens of
|
|
223
|
+
fragmented reads of the same content are not.
|
|
224
|
+
2. For a targeted question, jump straight to a section: search for a line
|
|
225
|
+
starting `## N.` — prose cross-references use `§N` (`§A.N` for the data
|
|
226
|
+
appendix, `§II.N` for the driver file's Part II).
|
|
227
|
+
3. Read §0 (hard rules) of the flow spec at least once per session — it's
|
|
228
|
+
short and every other section assumes you've read it.
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
# HiveQ SDK
|
|
2
|
+
|
|
3
|
+
**Institutional-grade quantitative trading and backtesting — in a few lines of Python.**
|
|
4
|
+
|
|
5
|
+
HiveQ is the platform that has executed billions of dollars in trades across
|
|
6
|
+
equities, futures, and options over years of live operation. The HiveQ SDK puts
|
|
7
|
+
that same engine behind a single Python import: you write a strategy on your
|
|
8
|
+
machine, and HiveQ runs it on its platform — sourcing the market data, simulating
|
|
9
|
+
execution against real market microstructure, and handing you back a full
|
|
10
|
+
performance report.
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
pip install hiveq-sdk
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
Optional one-time sign-in, useful before direct data-driver work:
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
hiveq login
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Backtests trigger the same browser sign-in automatically on first use. To find
|
|
23
|
+
the docs bundled inside the installed wheel:
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
hiveq docs
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
List the datasets and schemas available to your account:
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
hiveq datasets
|
|
33
|
+
hiveq datasets fields HIVEQ_US_EQ bars_1m
|
|
34
|
+
hiveq datasets sample HIVEQ_US_EQ bars_1m --limit 5
|
|
35
|
+
hiveq datasets sample HIVEQ_US_EQ bars_1m --filters '{"symbol":"AAPL"}' --start 2026-06-01 --end 2026-06-01
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
The sample command derives a small valid symbol/date window from metadata when
|
|
39
|
+
you do not pass filters. Use `--filters`, `--start`, and `--end` when you want a
|
|
40
|
+
specific slice.
|
|
41
|
+
|
|
42
|
+
You write the *what* (your trading logic). The platform handles the *how* — data,
|
|
43
|
+
execution, settlement, analytics, and scale.
|
|
44
|
+
|
|
45
|
+
## Why HiveQ
|
|
46
|
+
|
|
47
|
+
- **A simulator built to mirror production.** Backtests run on a robust
|
|
48
|
+
execution simulator that tracks real production order flow closely, so what you
|
|
49
|
+
validate in research behaves like it will in live — no rewrite to go from
|
|
50
|
+
research to live.
|
|
51
|
+
- **Every run is tracked and versioned.** Strategy code and config changes are
|
|
52
|
+
captured and versioned per run, so a backtest that performed well is always
|
|
53
|
+
reproducible — go back, inspect the exact code and configuration behind it, and
|
|
54
|
+
build from there.
|
|
55
|
+
- **Realistic execution, not fills-at-close.** Orders clear against real market
|
|
56
|
+
microstructure: tick-level data, exchange session windows, opening/closing
|
|
57
|
+
auctions routed to the primary exchange, per-asset fee models, slippage, and
|
|
58
|
+
tick-size rounding. What you see in a backtest is what you'd get.
|
|
59
|
+
- **Built-in execution algorithms.** Work orders with production execution
|
|
60
|
+
algos — POV, TWAP, and market-on-open / market-on-close auctions — the same
|
|
61
|
+
ones used in live trading, not approximations.
|
|
62
|
+
- **Multi-asset and multi-strategy.** Equities, futures (including continuous
|
|
63
|
+
contracts with automatic rollover), and options (down to 0DTE) — trade them
|
|
64
|
+
together, run a portfolio of strategies in one backtest.
|
|
65
|
+
- **Research → live in one click.** The strategy you backtest runs unchanged in
|
|
66
|
+
live and paper trading — same code, just a live config. Promote a validated
|
|
67
|
+
backtest to a live or paper simulation from the HiveQ platform with a single
|
|
68
|
+
click; no rewrite, no redeploy dance.
|
|
69
|
+
- **Institutional analytics out of the box.** Performance reports, positions and
|
|
70
|
+
trades over time, daily P&L, transaction-cost analysis (TCA), realtime metrics,
|
|
71
|
+
and exportable PDF tearsheets.
|
|
72
|
+
- **Nothing to manage.** No clusters to provision, no engine to install — even
|
|
73
|
+
your API key is generated for you. The platform fetches data and runs the
|
|
74
|
+
compute; you just write strategies.
|
|
75
|
+
- **Run your own scripts — on a schedule, no dev help.** Beyond strategies, run
|
|
76
|
+
arbitrary Python on the platform as a job: compute signals, scores, or any
|
|
77
|
+
derived calculation your trading depends on, and publish them as a dataset your
|
|
78
|
+
strategies subscribe to. Configure a script to run on a schedule (e.g. nightly
|
|
79
|
+
or pre-open) so fresh signals are ready before the session — you manage these
|
|
80
|
+
end-to-end yourself, no engineering team in the loop.
|
|
81
|
+
- **A reusable, versioned function registry.** Push a Python function once and
|
|
82
|
+
reference it by name and version from any strategy or script. Indicators,
|
|
83
|
+
signal models, and shared utilities live in one place, versioned — so research
|
|
84
|
+
reuses production logic instead of re-implementing it, and you can roll forward
|
|
85
|
+
or back with confidence.
|
|
86
|
+
- **Bring your own data.** Upload custom datasets to the platform and reference
|
|
87
|
+
them from strategies the same way you reference market data.
|
|
88
|
+
- **One console for everything.** The HiveQ platform gives you a single place to
|
|
89
|
+
track and manage all your work — backtests, live simulations, and your own
|
|
90
|
+
scheduled scripts — with their results, logs, and versioned history side by
|
|
91
|
+
side.
|
|
92
|
+
- **An AI-native platform.** HiveQ ships with an AI assistant fine-tuned for the
|
|
93
|
+
platform — author and refine strategies, explain results, and build signals in
|
|
94
|
+
natural language, with an assistant that already knows the HiveQ API.
|
|
95
|
+
|
|
96
|
+
## How it feels to use
|
|
97
|
+
|
|
98
|
+
A strategy is a plain Python class with one method per event. Subscribe to data
|
|
99
|
+
in `on_start`, react to it as it arrives, and place orders through the `ctx`
|
|
100
|
+
handle that every callback receives.
|
|
101
|
+
|
|
102
|
+
```python
|
|
103
|
+
import hiveq.flow as hf
|
|
104
|
+
from hiveq.flow import StrategyConfig, AssetType
|
|
105
|
+
|
|
106
|
+
class BuyAndHold:
|
|
107
|
+
def __init__(self):
|
|
108
|
+
self.bought = False
|
|
109
|
+
|
|
110
|
+
def on_start(self, ctx, event):
|
|
111
|
+
ctx.subscribe_bars(ctx.strategy_config.symbols,
|
|
112
|
+
asset_type=AssetType.EQUITY, interval='1m')
|
|
113
|
+
|
|
114
|
+
def on_bar(self, ctx, event):
|
|
115
|
+
bar = event.data()
|
|
116
|
+
if not self.bought and ctx.is_flat(bar.symbol):
|
|
117
|
+
ctx.buy_order(bar.symbol, quantity=100)
|
|
118
|
+
self.bought = True
|
|
119
|
+
|
|
120
|
+
run = hf.run_backtest(
|
|
121
|
+
strategy_configs=[StrategyConfig(name='BuyAndHold', type='BuyAndHold')],
|
|
122
|
+
symbols=['AAPL'],
|
|
123
|
+
start_date='2025-08-01',
|
|
124
|
+
end_date='2025-08-31',
|
|
125
|
+
)
|
|
126
|
+
|
|
127
|
+
run.wait() # deploy returns immediately — this blocks with a live progress bar
|
|
128
|
+
print(run.report().return_stats.to_string())
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
Run it like any script:
|
|
132
|
+
|
|
133
|
+
```bash
|
|
134
|
+
python my_strategy.py
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
That's the whole loop: author locally, call `run_backtest`, and the platform
|
|
138
|
+
deploys your strategy, runs it on the engine, and returns a **run handle** for
|
|
139
|
+
inspecting results.
|
|
140
|
+
|
|
141
|
+
## You get back a full performance report
|
|
142
|
+
|
|
143
|
+
`run_backtest` returns a `Run` — the single handle for everything the strategy
|
|
144
|
+
produced:
|
|
145
|
+
|
|
146
|
+
```python
|
|
147
|
+
run.report() # full performance report (returns, drawdown, ratios)
|
|
148
|
+
run.positions() # positions over time (DataFrame)
|
|
149
|
+
run.trades() # executed trades (DataFrame)
|
|
150
|
+
run.daily_returns() # daily P&L (DataFrame)
|
|
151
|
+
run.logs() # execution logs
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
The same handle works for any past run — `hf.get_run(run_id)` reattaches to it.
|
|
155
|
+
|
|
156
|
+
## The strategy model
|
|
157
|
+
|
|
158
|
+
- **One class, callback methods.** Implement the events you care about —
|
|
159
|
+
`on_start`, `on_bar`, `on_trade`, `on_order`, `on_position`, `on_timer`, and
|
|
160
|
+
more. `StrategyConfig.type` is just the class name as a string.
|
|
161
|
+
- **Subscribe in `on_start`.** Call `ctx.subscribe_bars(...)` (and friends)
|
|
162
|
+
there so your data is registered before the run begins.
|
|
163
|
+
- **Place orders through `ctx`.** Market, limit, and stop orders, brackets,
|
|
164
|
+
modify/cancel, plus production execution algorithms (POV, TWAP, auctions).
|
|
165
|
+
- **Everything flows through events.** Each callback receives an `event`; call
|
|
166
|
+
`event.data()` for the bar, trade, order, or position that triggered it.
|
|
167
|
+
|
|
168
|
+
## Supported markets
|
|
169
|
+
|
|
170
|
+
Equities, futures (including continuous contracts with automatic rollover),
|
|
171
|
+
and options — plus your own custom data feeds, all tradable in one backtest.
|
|
172
|
+
|
|
173
|
+
## Learn more
|
|
174
|
+
|
|
175
|
+
- **[`examples/`](examples/)** — complete, runnable strategies: intraday
|
|
176
|
+
momentum, bracket orders, pairs trading, 0DTE options, futures sessions,
|
|
177
|
+
scheduled timers, custom data, and more.
|
|
178
|
+
- **[`docs/llms.txt`](docs/llms.txt)** — the complete API
|
|
179
|
+
reference in a **single file**: every callback, order type, execution
|
|
180
|
+
algorithm, and result accessor, with the dataset/schema catalog as an
|
|
181
|
+
appendix (use `hiveq datasets` for the live catalog from HiveQ metadata).
|
|
182
|
+
It always matches the SDK release (the version is stated in its header),
|
|
183
|
+
and a copy ships inside the wheel — `hiveq docs` prints the installed path.
|
|
184
|
+
- **[`docs/data_driver/llms.txt`](docs/data_driver/llms.txt)**
|
|
185
|
+
— reference for the separate data-driver config DSL (`hiveq.driver`); Part II
|
|
186
|
+
of the same file covers the underlying `hiveq_data` SDK client.
|
|
187
|
+
|
|
188
|
+
### How to read the docs
|
|
189
|
+
|
|
190
|
+
Each reference is one plain-markdown file (`llms.txt`) sized to be loaded in a
|
|
191
|
+
single read (~31k tokens for the flow spec). This applies whether you're a
|
|
192
|
+
human, Claude, Codex, Kimi, or any other agent reading this repo — there is no
|
|
193
|
+
special tooling involved:
|
|
194
|
+
|
|
195
|
+
1. Load the whole file in **one** read — one read is cheap; dozens of
|
|
196
|
+
fragmented reads of the same content are not.
|
|
197
|
+
2. For a targeted question, jump straight to a section: search for a line
|
|
198
|
+
starting `## N.` — prose cross-references use `§N` (`§A.N` for the data
|
|
199
|
+
appendix, `§II.N` for the driver file's Part II).
|
|
200
|
+
3. Read §0 (hard rules) of the flow spec at least once per session — it's
|
|
201
|
+
short and every other section assumes you've read it.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# HiveQ SDK — documentation
|
|
2
|
+
|
|
3
|
+
The complete reference documentation, versioned per SDK release. Each reference
|
|
4
|
+
is a **single plain-markdown file** (`llms.txt`) designed to be loaded in one
|
|
5
|
+
read — by a human, Claude, Codex, Kimi, or any other agent. No special tooling.
|
|
6
|
+
|
|
7
|
+
## Layout
|
|
8
|
+
|
|
9
|
+
| Path | What it is |
|
|
10
|
+
|---|---|
|
|
11
|
+
| [`llms.txt`](llms.txt) | **The HiveQ Flow API spec** — every callback, order type, execution algorithm, and result accessor (§0–§16), with the dataset/schema catalog as an appendix (§A.1–§A.4). Always matches the SDK release; the version is stated in its header. |
|
|
12
|
+
| [`data_driver/llms.txt`](data_driver/llms.txt) | The data-driver config DSL (`hiveq.driver`) reference (§1–§21); Part II (§II.N) covers the underlying `hiveq_data` SDK client. |
|
|
13
|
+
|
|
14
|
+
A copy of these files ships inside the installed wheel — run `hiveq docs` to
|
|
15
|
+
print their installed paths (this repo's `docs/` is the canonical source; the
|
|
16
|
+
bundled copy is generated from it at build time).
|
|
17
|
+
|
|
18
|
+
## How to read
|
|
19
|
+
|
|
20
|
+
1. Load the whole file in **one** read (~31k tokens for the flow spec) — one
|
|
21
|
+
read is cheap; dozens of fragmented reads of the same content are not.
|
|
22
|
+
2. For a targeted question, jump straight to a section: search for a line
|
|
23
|
+
starting `## N.` — prose cross-references use `§N` (`§A.N` for the data
|
|
24
|
+
appendix, `§II.N` for the driver file's Part II).
|
|
25
|
+
3. Read §0 (hard rules) of the flow spec at least once per session — it's
|
|
26
|
+
short and every other section assumes you've read it.
|
|
27
|
+
|
|
28
|
+
Available datasets/schemas: the appendix lists them, and `hiveq datasets`
|
|
29
|
+
prints the live catalog from HiveQ metadata.
|