quant1x 0.7.9.dev1__tar.gz → 0.7.9.dev2__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.
- quant1x-0.7.9.dev2/MANIFEST.in +46 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/PKG-INFO +1 -1
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x.egg-info/PKG-INFO +1 -1
- quant1x-0.7.9.dev2/quant1x.egg-info/SOURCES.txt +249 -0
- quant1x-0.7.9.dev1/MANIFEST.in +0 -26
- quant1x-0.7.9.dev1/go.mod +0 -33
- quant1x-0.7.9.dev1/go.sum +0 -68
- quant1x-0.7.9.dev1/quant1x/command/app.go +0 -150
- quant1x-0.7.9.dev1/quant1x/command/command_flag.go +0 -97
- quant1x-0.7.9.dev1/quant1x/command/command_update.go +0 -114
- quant1x-0.7.9.dev1/quant1x/config/base.go +0 -16
- quant1x-0.7.9.dev1/quant1x/config/config.go +0 -175
- quant1x-0.7.9.dev1/quant1x/config/config_exchange.go +0 -31
- quant1x-0.7.9.dev1/quant1x/config/config_test.go +0 -282
- quant1x-0.7.9.dev1/quant1x/config/number_range.go +0 -152
- quant1x-0.7.9.dev1/quant1x/config/number_range_test.go +0 -72
- quant1x-0.7.9.dev1/quant1x/config/rule_parameter.go +0 -63
- quant1x-0.7.9.dev1/quant1x/config/strategy_parameter.go +0 -56
- quant1x-0.7.9.dev1/quant1x/config/trader_parameter.go +0 -141
- quant1x-0.7.9.dev1/quant1x/config/trading_session.go +0 -11
- quant1x-0.7.9.dev1/quant1x/contrib/data/tdx/datasource.go +0 -63
- quant1x-0.7.9.dev1/quant1x/contrib/data/tdx/kline.go +0 -221
- quant1x-0.7.9.dev1/quant1x/contrib/data/tdx/kline_raw.go +0 -133
- quant1x-0.7.9.dev1/quant1x/contrib/data/tdx/sector.go +0 -43
- quant1x-0.7.9.dev1/quant1x/contrib/data/tdx/tdx_test.go +0 -17
- quant1x-0.7.9.dev1/quant1x/contrib/data/tdx/trans.go +0 -344
- quant1x-0.7.9.dev1/quant1x/contrib/data/tdx/xdxr.go +0 -119
- quant1x-0.7.9.dev1/quant1x/core/base.go +0 -184
- quant1x-0.7.9.dev1/quant1x/core/base_test.go +0 -18
- quant1x-0.7.9.dev1/quant1x/core/decode.go +0 -170
- quant1x-0.7.9.dev1/quant1x/core/decode_test.go +0 -91
- quant1x-0.7.9.dev1/quant1x/core/defaults.go +0 -259
- quant1x-0.7.9.dev1/quant1x/core/defaults_test.go +0 -61
- quant1x-0.7.9.dev1/quant1x/core/mic/doc.go +0 -13
- quant1x-0.7.9.dev1/quant1x/data/adapter.go +0 -229
- quant1x-0.7.9.dev1/quant1x/data/adjustment_factor.go +0 -57
- quant1x-0.7.9.dev1/quant1x/data/base.go +0 -17
- quant1x-0.7.9.dev1/quant1x/data/datasource.go +0 -63
- quant1x-0.7.9.dev1/quant1x/data/f10.go +0 -38
- quant1x-0.7.9.dev1/quant1x/data/feature.go +0 -1
- quant1x-0.7.9.dev1/quant1x/data/kline.go +0 -48
- quant1x-0.7.9.dev1/quant1x/data/kline_raw.go +0 -116
- quant1x-0.7.9.dev1/quant1x/data/market.go +0 -22
- quant1x-0.7.9.dev1/quant1x/data/meta/cache.go +0 -67
- quant1x-0.7.9.dev1/quant1x/data/meta/calendar.go +0 -347
- quant1x-0.7.9.dev1/quant1x/data/meta/calendar_test.go +0 -67
- quant1x-0.7.9.dev1/quant1x/data/meta/exchange.go +0 -234
- quant1x-0.7.9.dev1/quant1x/data/meta/frequency.go +0 -194
- quant1x-0.7.9.dev1/quant1x/data/meta/instrument.go +0 -259
- quant1x-0.7.9.dev1/quant1x/data/meta/region.go +0 -77
- quant1x-0.7.9.dev1/quant1x/data/meta/session.go +0 -805
- quant1x-0.7.9.dev1/quant1x/data/meta/session_test.go +0 -40
- quant1x-0.7.9.dev1/quant1x/data/meta/sina/decode_test.go +0 -28
- quant1x-0.7.9.dev1/quant1x/data/meta/sina/decoder.go +0 -611
- quant1x-0.7.9.dev1/quant1x/data/meta/timestamp.go +0 -406
- quant1x-0.7.9.dev1/quant1x/data/meta/timestamp_test.go +0 -368
- quant1x-0.7.9.dev1/quant1x/data/storage/csv.go +0 -58
- quant1x-0.7.9.dev1/quant1x/data/trans.go +0 -55
- quant1x-0.7.9.dev1/quant1x/data/update.go +0 -237
- quant1x-0.7.9.dev1/quant1x/data/xdxr.go +0 -56
- quant1x-0.7.9.dev1/quant1x/encoding/base64/base64.go +0 -71
- quant1x-0.7.9.dev1/quant1x/encoding/base64/base64_test.go +0 -28
- quant1x-0.7.9.dev1/quant1x/encoding/binary/cstruct/buffer.go +0 -917
- quant1x-0.7.9.dev1/quant1x/encoding/binary/cstruct/common.go +0 -13
- quant1x-0.7.9.dev1/quant1x/encoding/binary/cstruct/decode.go +0 -5
- quant1x-0.7.9.dev1/quant1x/encoding/binary/cstruct/encode.go +0 -10
- quant1x-0.7.9.dev1/quant1x/encoding/binary/cstruct/pointer_unsafe.go +0 -243
- quant1x-0.7.9.dev1/quant1x/encoding/binary/cstruct/properties.go +0 -222
- quant1x-0.7.9.dev1/quant1x/encoding/binary/cstruct/struct_test.go +0 -47
- quant1x-0.7.9.dev1/quant1x/encoding/binary/cstruct/tests/array_test.go +0 -81
- quant1x-0.7.9.dev1/quant1x/encoding/binary/cstruct/tests/nil_test.go +0 -107
- quant1x-0.7.9.dev1/quant1x/encoding/binary/cstruct/tests/slice_ignore_nil_test.go +0 -72
- quant1x-0.7.9.dev1/quant1x/encoding/binary/cstruct/tests/slice_struct_test.go +0 -71
- quant1x-0.7.9.dev1/quant1x/encoding/binary/cstruct/tests/x_test.go +0 -433
- quant1x-0.7.9.dev1/quant1x/encoding/binary/struc/bench_test.go +0 -203
- quant1x-0.7.9.dev1/quant1x/encoding/binary/struc/binary.go +0 -52
- quant1x-0.7.9.dev1/quant1x/encoding/binary/struc/custom.go +0 -33
- quant1x-0.7.9.dev1/quant1x/encoding/binary/struc/custom_float16.go +0 -78
- quant1x-0.7.9.dev1/quant1x/encoding/binary/struc/custom_float16_test.go +0 -56
- quant1x-0.7.9.dev1/quant1x/encoding/binary/struc/custom_test.go +0 -317
- quant1x-0.7.9.dev1/quant1x/encoding/binary/struc/field.go +0 -288
- quant1x-0.7.9.dev1/quant1x/encoding/binary/struc/field_test.go +0 -77
- quant1x-0.7.9.dev1/quant1x/encoding/binary/struc/fields.go +0 -177
- quant1x-0.7.9.dev1/quant1x/encoding/binary/struc/fields_test.go +0 -81
- quant1x-0.7.9.dev1/quant1x/encoding/binary/struc/legacy.go +0 -16
- quant1x-0.7.9.dev1/quant1x/encoding/binary/struc/packable_test.go +0 -123
- quant1x-0.7.9.dev1/quant1x/encoding/binary/struc/packer.go +0 -13
- quant1x-0.7.9.dev1/quant1x/encoding/binary/struc/parse.go +0 -230
- quant1x-0.7.9.dev1/quant1x/encoding/binary/struc/parse_test.go +0 -62
- quant1x-0.7.9.dev1/quant1x/encoding/binary/struc/struc.go +0 -122
- quant1x-0.7.9.dev1/quant1x/encoding/binary/struc/struc_test.go +0 -310
- quant1x-0.7.9.dev1/quant1x/encoding/binary/struc/test_pack_init/doc.go +0 -4
- quant1x-0.7.9.dev1/quant1x/encoding/binary/struc/test_pack_init/pack_init_test.go +0 -30
- quant1x-0.7.9.dev1/quant1x/encoding/binary/struc/types.go +0 -136
- quant1x-0.7.9.dev1/quant1x/encoding/binary/struc/types_test.go +0 -53
- quant1x-0.7.9.dev1/quant1x/encoding/charsets.go +0 -23
- quant1x-0.7.9.dev1/quant1x/encoding/csv.go +0 -58
- quant1x-0.7.9.dev1/quant1x/exchange/calendar.go +0 -347
- quant1x-0.7.9.dev1/quant1x/exchange/calendar_test.go +0 -67
- quant1x-0.7.9.dev1/quant1x/exchange/code.go +0 -230
- quant1x-0.7.9.dev1/quant1x/exchange/code_deprecated.go +0 -272
- quant1x-0.7.9.dev1/quant1x/exchange/exchange.go +0 -124
- quant1x-0.7.9.dev1/quant1x/exchange/instrument.go +0 -204
- quant1x-0.7.9.dev1/quant1x/exchange/rule.go +0 -548
- quant1x-0.7.9.dev1/quant1x/exchange/rule_test.go +0 -70
- quant1x-0.7.9.dev1/quant1x/exchange/session.go +0 -327
- quant1x-0.7.9.dev1/quant1x/exchange/sina/decode_test.go +0 -28
- quant1x-0.7.9.dev1/quant1x/exchange/sina/decoder.go +0 -611
- quant1x-0.7.9.dev1/quant1x/exchange/status.go +0 -67
- quant1x-0.7.9.dev1/quant1x/exchange/timestamp.go +0 -406
- quant1x-0.7.9.dev1/quant1x/exchange/timestamp_test.go +0 -235
- quant1x-0.7.9.dev1/quant1x/factors/base.go +0 -276
- quant1x-0.7.9.dev1/quant1x/factors/base_test.go +0 -233
- quant1x-0.7.9.dev1/quant1x/factors/doc.go +0 -4
- quant1x-0.7.9.dev1/quant1x/io/connection_pool.go +0 -352
- quant1x-0.7.9.dev1/quant1x/io/connection_pool_test.go +0 -99
- quant1x-0.7.9.dev1/quant1x/io/endpoint.go +0 -191
- quant1x-0.7.9.dev1/quant1x/io/endpoint_test.go +0 -89
- quant1x-0.7.9.dev1/quant1x/io/http.go +0 -233
- quant1x-0.7.9.dev1/quant1x/io/http_test.go +0 -51
- quant1x-0.7.9.dev1/quant1x/io/operation_handler.go +0 -25
- quant1x-0.7.9.dev1/quant1x/learn/bayesian/naive.go +0 -90
- quant1x-0.7.9.dev1/quant1x/learn/bayesian/naive_test.go +0 -36
- quant1x-0.7.9.dev1/quant1x/learn/cluster/cluster.go +0 -204
- quant1x-0.7.9.dev1/quant1x/learn/cluster/cluster_trade_tick.go +0 -251
- quant1x-0.7.9.dev1/quant1x/learn/cluster/cluster_trade_transaction.go +0 -6
- quant1x-0.7.9.dev1/quant1x/learn/cluster/dbscan.go +0 -157
- quant1x-0.7.9.dev1/quant1x/learn/cluster/dbscan_test.go +0 -486
- quant1x-0.7.9.dev1/quant1x/learn/cluster/k-means.go +0 -396
- quant1x-0.7.9.dev1/quant1x/learn/cluster/k-means_analysis.go +0 -183
- quant1x-0.7.9.dev1/quant1x/learn/cluster/k-means_test.go +0 -56
- quant1x-0.7.9.dev1/quant1x/learn/doc.go +0 -2
- quant1x-0.7.9.dev1/quant1x/learn/fpgrowth/fp_growth.go +0 -70
- quant1x-0.7.9.dev1/quant1x/learn/fpgrowth/fp_growth_core.go +0 -326
- quant1x-0.7.9.dev1/quant1x/learn/fpgrowth/fp_growth_test.go +0 -51
- quant1x-0.7.9.dev1/quant1x/learn/nn/neural-network.go +0 -197
- quant1x-0.7.9.dev1/quant1x/learn/nn/neural-network_test.go +0 -38
- quant1x-0.7.9.dev1/quant1x/learn/preprocessing/standard_scaler.go +0 -136
- quant1x-0.7.9.dev1/quant1x/level1/block_info.go +0 -78
- quant1x-0.7.9.dev1/quant1x/level1/block_meta.go +0 -70
- quant1x-0.7.9.dev1/quant1x/level1/client.go +0 -290
- quant1x-0.7.9.dev1/quant1x/level1/client_test.go +0 -290
- quant1x-0.7.9.dev1/quant1x/level1/config.go +0 -219
- quant1x-0.7.9.dev1/quant1x/level1/finance_info.go +0 -327
- quant1x-0.7.9.dev1/quant1x/level1/finance_info_test.go +0 -31
- quant1x-0.7.9.dev1/quant1x/level1/heartbeat.go +0 -43
- quant1x-0.7.9.dev1/quant1x/level1/hello1.go +0 -68
- quant1x-0.7.9.dev1/quant1x/level1/hello2.go +0 -44
- quant1x-0.7.9.dev1/quant1x/level1/helpers.go +0 -260
- quant1x-0.7.9.dev1/quant1x/level1/protocol.go +0 -287
- quant1x-0.7.9.dev1/quant1x/level1/security_bars.go +0 -284
- quant1x-0.7.9.dev1/quant1x/level1/security_list.go +0 -132
- quant1x-0.7.9.dev1/quant1x/level1/security_list_test.go +0 -59
- quant1x-0.7.9.dev1/quant1x/level1/security_quote.go +0 -388
- quant1x-0.7.9.dev1/quant1x/level1/transaction.go +0 -38
- quant1x-0.7.9.dev1/quant1x/level1/transaction_data.go +0 -153
- quant1x-0.7.9.dev1/quant1x/level1/transaction_history.go +0 -162
- quant1x-0.7.9.dev1/quant1x/level1/xdxr_info.go +0 -299
- quant1x-0.7.9.dev1/quant1x/log/logger.go +0 -177
- quant1x-0.7.9.dev1/quant1x/log/logger_config.go +0 -179
- quant1x-0.7.9.dev1/quant1x/log/logger_monitor.go +0 -20
- quant1x-0.7.9.dev1/quant1x/log/logger_test.go +0 -25
- quant1x-0.7.9.dev1/quant1x/log/logger_wapper.go +0 -41
- quant1x-0.7.9.dev1/quant1x/market/blocks.go +0 -458
- quant1x-0.7.9.dev1/quant1x/market/blocks_test.go +0 -24
- quant1x-0.7.9.dev1/quant1x/market/doc.go +0 -2
- quant1x-0.7.9.dev1/quant1x/market/finance.go +0 -3
- quant1x-0.7.9.dev1/quant1x/market/instruments.go +0 -165
- quant1x-0.7.9.dev1/quant1x/market/instruments_test.go +0 -11
- quant1x-0.7.9.dev1/quant1x/market/security.go +0 -170
- quant1x-0.7.9.dev1/quant1x/market/security_test.go +0 -24
- quant1x-0.7.9.dev1/quant1x/proto/security_info.pb.go +0 -496
- quant1x-0.7.9.dev1/quant1x/runtime/application.go +0 -24
- quant1x-0.7.9.dev1/quant1x/runtime/compile.go +0 -13
- quant1x-0.7.9.dev1/quant1x/runtime/compile_debug.go +0 -9
- quant1x-0.7.9.dev1/quant1x/runtime/compile_release.go +0 -9
- quant1x-0.7.9.dev1/quant1x/runtime/context.go +0 -108
- quant1x-0.7.9.dev1/quant1x/runtime/context_log.go +0 -17
- quant1x-0.7.9.dev1/quant1x/runtime/context_test.go +0 -10
- quant1x-0.7.9.dev1/quant1x/runtime/core.go +0 -40
- quant1x-0.7.9.dev1/quant1x/runtime/cpu.go +0 -12
- quant1x-0.7.9.dev1/quant1x/runtime/crash.go +0 -58
- quant1x-0.7.9.dev1/quant1x/runtime/crash_test.go +0 -37
- quant1x-0.7.9.dev1/quant1x/runtime/once.go +0 -189
- quant1x-0.7.9.dev1/quant1x/runtime/ringbuffer.go +0 -208
- quant1x-0.7.9.dev1/quant1x/runtime/ringbuffer_test.go +0 -489
- quant1x-0.7.9.dev1/quant1x/runtime/scheduler.go +0 -313
- quant1x-0.7.9.dev1/quant1x/runtime/scheduler_test.go +0 -154
- quant1x-0.7.9.dev1/quant1x/runtime/stdlib.go +0 -66
- quant1x-0.7.9.dev1/quant1x/runtime/stdlib_test.go +0 -27
- quant1x-0.7.9.dev1/quant1x/std/argparse/argparse.go +0 -2647
- quant1x-0.7.9.dev1/quant1x/std/argparse/argparse_test.go +0 -1339
- quant1x-0.7.9.dev1/quant1x/std/base.go +0 -2
- quant1x-0.7.9.dev1/quant1x/std/bits.go +0 -51
- quant1x-0.7.9.dev1/quant1x/std/bits_test.go +0 -139
- quant1x-0.7.9.dev1/quant1x/std/cache/cache.go +0 -313
- quant1x-0.7.9.dev1/quant1x/std/cache/cache_test.go +0 -64
- quant1x-0.7.9.dev1/quant1x/std/cache/embed.go +0 -43
- quant1x-0.7.9.dev1/quant1x/std/cache/embed_test.go +0 -20
- quant1x-0.7.9.dev1/quant1x/std/cache/mmap_common.go +0 -15
- quant1x-0.7.9.dev1/quant1x/std/cache/mmap_posix.go +0 -46
- quant1x-0.7.9.dev1/quant1x/std/cache/mmap_windows.go +0 -91
- quant1x-0.7.9.dev1/quant1x/std/cache/pool.go +0 -39
- quant1x-0.7.9.dev1/quant1x/std/cache/pool_test.go +0 -39
- quant1x-0.7.9.dev1/quant1x/std/closer.go +0 -10
- quant1x-0.7.9.dev1/quant1x/std/concurrent.go +0 -1
- quant1x-0.7.9.dev1/quant1x/std/cpu/cache_line_size.go +0 -8
- quant1x-0.7.9.dev1/quant1x/std/cron.go +0 -440
- quant1x-0.7.9.dev1/quant1x/std/cron_test.go +0 -133
- quant1x-0.7.9.dev1/quant1x/std/embed.go +0 -59
- quant1x-0.7.9.dev1/quant1x/std/embed_test.go +0 -20
- quant1x-0.7.9.dev1/quant1x/std/except.go +0 -39
- quant1x-0.7.9.dev1/quant1x/std/filesystem.go +0 -233
- quant1x-0.7.9.dev1/quant1x/std/filesystem_test.go +0 -166
- quant1x-0.7.9.dev1/quant1x/std/fs/filepath.go +0 -63
- quant1x-0.7.9.dev1/quant1x/std/fs/filepath_test.go +0 -34
- quant1x-0.7.9.dev1/quant1x/std/hex.go +0 -13
- quant1x-0.7.9.dev1/quant1x/std/hex_test.go +0 -37
- quant1x-0.7.9.dev1/quant1x/std/mem/page.go +0 -23
- quant1x-0.7.9.dev1/quant1x/std/mem/page_test.go +0 -29
- quant1x-0.7.9.dev1/quant1x/std/mem/pointer.go +0 -1
- quant1x-0.7.9.dev1/quant1x/std/mem/size.go +0 -18
- quant1x-0.7.9.dev1/quant1x/std/meta/tags.go +0 -122
- quant1x-0.7.9.dev1/quant1x/std/numeric.go +0 -270
- quant1x-0.7.9.dev1/quant1x/std/numeric_test.go +0 -64
- quant1x-0.7.9.dev1/quant1x/std/parallel.go +0 -1
- quant1x-0.7.9.dev1/quant1x/std/routine.go +0 -10
- quant1x-0.7.9.dev1/quant1x/std/routine_test.go +0 -11
- quant1x-0.7.9.dev1/quant1x/std/signal/notify.go +0 -16
- quant1x-0.7.9.dev1/quant1x/std/signal/signal_posix.go +0 -10
- quant1x-0.7.9.dev1/quant1x/std/signal/signal_windows.go +0 -10
- quant1x-0.7.9.dev1/quant1x/std/slices.go +0 -23
- quant1x-0.7.9.dev1/quant1x/std/strings.go +0 -102
- quant1x-0.7.9.dev1/quant1x/std/strings_bytes_above_120.go +0 -17
- quant1x-0.7.9.dev1/quant1x/std/strings_bytes_below_120.go +0 -23
- quant1x-0.7.9.dev1/quant1x/std/strings_camel.go +0 -37
- quant1x-0.7.9.dev1/quant1x/std/strings_camel_test.go +0 -56
- quant1x-0.7.9.dev1/quant1x/std/strings_helper.go +0 -71
- quant1x-0.7.9.dev1/quant1x/std/strings_kebab.go +0 -14
- quant1x-0.7.9.dev1/quant1x/std/strings_kebab_test.go +0 -56
- quant1x-0.7.9.dev1/quant1x/std/strings_snake.go +0 -58
- quant1x-0.7.9.dev1/quant1x/std/strings_snake_test.go +0 -56
- quant1x-0.7.9.dev1/quant1x/std/strings_test.go +0 -123
- quant1x-0.7.9.dev1/quant1x/std/time.go +0 -255
- quant1x-0.7.9.dev1/quant1x/std/time_test.go +0 -205
- quant1x-0.7.9.dev1/quant1x/util/compress.go +0 -157
- quant1x-0.7.9.dev1/quant1x/util/gitcmd.go +0 -98
- quant1x-0.7.9.dev1/quant1x/util/shell.go +0 -29
- quant1x-0.7.9.dev1/quant1x/util/version.go +0 -45
- quant1x-0.7.9.dev1/quant1x.egg-info/SOURCES.txt +0 -493
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/.clang-format +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/.clang-tidy +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/.editorconfig +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/.gitattributes +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/.gitignore +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/.vscode/c_cpp_properties.json +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/.vscode/settings.json +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/CHANGELOG.md +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/CMakeLists.txt +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/Cargo.lock +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/Cargo.toml +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/LICENSE +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/README.md +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/b2c.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/labs/akshare.ipynb +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/labs/qlib.ipynb +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/labs/quant1x.ipynb +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/logo.png +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/main.cpp +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/main.go +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/main.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/main.rs +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/proto/chips.proto +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/proto/snapshot.capnp +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/proto/test-snapshot.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/proto/trans.proto +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/proto/xdxr.proto +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/publish.bat +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/publish.ps1 +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/publish.sh +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/pyproject.toml +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/__init__.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/build-info.h.in +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/cli/__init__.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/config/__init__.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/config/config.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/contrib/__init__.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/contrib/data/__init__.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/contrib/data/tdx/__init__.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/contrib/data/tdx/client.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/contrib/data/tdx/config.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/contrib/data/tdx/datasource.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/contrib/data/tdx/instruments.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/contrib/data/tdx/kline.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/contrib/data/tdx/kline_raw.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/contrib/data/tdx/level1/__init__.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/contrib/data/tdx/level1/command.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/contrib/data/tdx/level1/em_dividend.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/contrib/data/tdx/level1/ext-category.md +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/contrib/data/tdx/level1/ext.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/contrib/data/tdx/level1/f10.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/contrib/data/tdx/level1/helpers.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/contrib/data/tdx/level1/std.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/contrib/data/tdx/level1/xdxr_hkex.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/contrib/data/tdx/market.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/contrib/data/tdx/money.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/contrib/data/tdx/protocol.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/contrib/data/tdx/sector.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/contrib/data/tdx/trans.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/contrib/data/tdx/xdxr.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/core/__init__.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/core/base.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/core/decode.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/core/defaults.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/data/__init__.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/data/adapter.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/data/base.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/data/cache.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/data/datasource.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/data/f10.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/data/kline.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/data/kline_raw.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/data/layout.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/data/market.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/data/market_old.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/data/meta/__init__.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/data/meta/asset_class.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/data/meta/calendar.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/data/meta/exchange.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/data/meta/forex.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/data/meta/frequency.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/data/meta/fund.md +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/data/meta/fund.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/data/meta/instrument.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/data/meta/region.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/data/meta/session.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/data/meta/sina/__init__.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/data/meta/sina/decoder.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/data/meta/ticker_rules/__init__.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/data/meta/ticker_rules/market_bse.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/data/meta/ticker_rules/market_hkex.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/data/meta/ticker_rules/market_sse.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/data/meta/ticker_rules/market_szse.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/data/meta/ticker_rules/market_usa.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/data/meta/ticker_rules/rule.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/data/meta/timestamp.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/data/schema/__init__.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/data/schema/adjustment.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/data/schema/bar.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/data/schema/company.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/data/schema/dividend.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/data/schema/sector.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/data/schema/trade.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/data/sector.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/data/security.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/data/status.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/data/storage/__init__.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/data/storage/csv.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/data/storage/storage.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/data/trans.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/data/xdxr.md +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/data/xdxr.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/device.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/devp.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/encoding/__init__.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/encoding/binary/README.md +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/encoding/binary/cstruct/FORK.md +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/encoding/binary/cstruct/LICENSE +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/encoding/binary/cstruct/README.md +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/encoding/binary/struc/LICENSE +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/encoding/binary/struc/README.md +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/encoding/json.md +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/encoding/yaml.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/exchange/__init__.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/exchange/calendar.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/exchange/code.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/exchange/margin_trading.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/exchange/rule.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/exchange/session.md +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/exchange/session.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/exchange/sina/decoder.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/exchange/status.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/exchange/timestamp.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/factors/__init__.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/factors/base.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/factors/f10.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/factors/financial_report.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/factors/notice.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/factors/safety_score.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/factors/share_holder.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/formula/README-MyTT.md +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/formula/__init__.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/formula/formula.ipynb +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/formula/formula.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/formula/formula_plus.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/indicators/README.md +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/indicators/__init__.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/indicators/cdtd.md +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/indicators/cdtd.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/indicators/f89k.md +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/indicators/f89k.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/indicators/hjk.md +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/indicators/hjk.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/indicators/ma1x.md +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/indicators/ma1x.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/indicators/p2fb.md +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/indicators/p2fb.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/indicators/winner.md +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/io/__init__.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/io/connection_pool.md +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/io/connection_pool.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/io/csv-reader.LICENSE +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/io/csv-reader.md +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/io/endpoint.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/io/operation_handler.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/learn/fpgrowth/README.md +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/learn/fpgrowth/fp_growth.md +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/learn/fpgrowth/fp_growth_example.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/level1/__init__.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/level1/block_info.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/level1/block_meta.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/level1/client.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/level1/config.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/level1/finance_info.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/level1/heartbeat.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/level1/hello1.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/level1/hello2.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/level1/helpers.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/level1/minute_time.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/level1/protocol.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/level1/security_bars.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/level1/security_count.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/level1/security_list.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/level1/security_quote.md +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/level1/security_quote.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/level1/transaction.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/level1/xdxr_info.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/log/__init__.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/log/logger.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/log4rs.yaml +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/market/__init__.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/market/blocks.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/market/instruments.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/market/security.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/net/__init__.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/net/conn.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/net/endpoint.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/net/handler.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/net/tcp_client_pool.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/network.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/proto/README.md +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/proto/security_info.proto +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/proto/snapshot.capnp.c++ +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/resources/README.md +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/resources/meta/tdxhy.inc +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/resources/meta/tdxzs.inc +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/resources/meta/tdxzs3.inc +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/runtime/__init__.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/runtime/once.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/runtime/ringbuffer.md +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/runtime/scheduler.md +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/runtime/scheduler.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/std/__init__.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/std/bits_amd64.s +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/std/bits_arm64.s +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/std/dataclass_utils.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/std/embed.go.copy +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/std/except.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/std/filesystem.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/std/numeric.md +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/std/numeric.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/std/pattern.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/std/singleton.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/std/strings.md +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/std/strings.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/std/system.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/std/time.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/ta/README.md +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/tools/inspect_blocks.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/types.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/util/SimHei.ttf +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/util/__init__.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/util/chart.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/util/font.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/util/util-font.ipynb +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x/version.py +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x.cer +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x.egg-info/dependency_links.txt +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x.egg-info/not-zip-safe +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x.egg-info/requires.txt +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x.egg-info/top_level.txt +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/quant1x.pfx +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/requirements.txt +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/rust-toolchain.toml +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/setup.cfg +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/test_loop.sh +0 -0
- {quant1x-0.7.9.dev1 → quant1x-0.7.9.dev2}/vcpkg.json +0 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# MANIFEST.in for Python sdist: keep only Python-related source and metadata.
|
|
2
|
+
# The project contains multiple languages, so non-Python directories/files should be excluded.
|
|
3
|
+
|
|
4
|
+
# 1) Exclude top-level non-Python directories that are not part of the Python package.
|
|
5
|
+
prune third_party
|
|
6
|
+
prune build
|
|
7
|
+
prune cmake
|
|
8
|
+
prune docs
|
|
9
|
+
prune examples
|
|
10
|
+
prune benches
|
|
11
|
+
prune target
|
|
12
|
+
prune vcpkg_installed
|
|
13
|
+
prune tools
|
|
14
|
+
prune user
|
|
15
|
+
prune scripts
|
|
16
|
+
prune tests
|
|
17
|
+
|
|
18
|
+
# 2) Exclude Go-related sources and metadata
|
|
19
|
+
recursive-exclude * *.go
|
|
20
|
+
exclude go.mod
|
|
21
|
+
exclude go.sum
|
|
22
|
+
|
|
23
|
+
# 3) Exclude Rust-related sources and metadata
|
|
24
|
+
recursive-exclude * *.rs
|
|
25
|
+
recursive-exclude * mod.rs
|
|
26
|
+
recursive-exclude * lib.rs
|
|
27
|
+
recursive-exclude * Cargo.toml
|
|
28
|
+
recursive-exclude * Cargo.lock
|
|
29
|
+
recursive-exclude * rust-toolchain
|
|
30
|
+
recursive-exclude * rust-toolchain.toml
|
|
31
|
+
|
|
32
|
+
# 4) Exclude C/C++ project sources and configuration files
|
|
33
|
+
recursive-exclude * *.c
|
|
34
|
+
recursive-exclude * *.cpp
|
|
35
|
+
recursive-exclude * *.cc
|
|
36
|
+
recursive-exclude * *.h
|
|
37
|
+
recursive-exclude * *.o
|
|
38
|
+
recursive-exclude * *.obj
|
|
39
|
+
recursive-exclude * *.so
|
|
40
|
+
recursive-exclude * *.a
|
|
41
|
+
recursive-exclude * *.lib
|
|
42
|
+
recursive-exclude * CMakeLists.txt
|
|
43
|
+
recursive-exclude * *.cmake
|
|
44
|
+
|
|
45
|
+
# 5) Exclude Python bytecode caches and build artifacts
|
|
46
|
+
recursive-exclude * __pycache__
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
.clang-format
|
|
2
|
+
.clang-tidy
|
|
3
|
+
.editorconfig
|
|
4
|
+
.gitattributes
|
|
5
|
+
.gitignore
|
|
6
|
+
CHANGELOG.md
|
|
7
|
+
CMakeLists.txt
|
|
8
|
+
Cargo.lock
|
|
9
|
+
Cargo.toml
|
|
10
|
+
LICENSE
|
|
11
|
+
MANIFEST.in
|
|
12
|
+
README.md
|
|
13
|
+
b2c.py
|
|
14
|
+
logo.png
|
|
15
|
+
main.cpp
|
|
16
|
+
main.go
|
|
17
|
+
main.py
|
|
18
|
+
main.rs
|
|
19
|
+
publish.bat
|
|
20
|
+
publish.ps1
|
|
21
|
+
publish.sh
|
|
22
|
+
pyproject.toml
|
|
23
|
+
quant1x.cer
|
|
24
|
+
quant1x.pfx
|
|
25
|
+
requirements.txt
|
|
26
|
+
rust-toolchain.toml
|
|
27
|
+
test_loop.sh
|
|
28
|
+
vcpkg.json
|
|
29
|
+
.vscode/c_cpp_properties.json
|
|
30
|
+
.vscode/settings.json
|
|
31
|
+
labs/akshare.ipynb
|
|
32
|
+
labs/qlib.ipynb
|
|
33
|
+
labs/quant1x.ipynb
|
|
34
|
+
proto/chips.proto
|
|
35
|
+
proto/snapshot.capnp
|
|
36
|
+
proto/test-snapshot.py
|
|
37
|
+
proto/trans.proto
|
|
38
|
+
proto/xdxr.proto
|
|
39
|
+
quant1x/__init__.py
|
|
40
|
+
quant1x/build-info.h.in
|
|
41
|
+
quant1x/device.py
|
|
42
|
+
quant1x/devp.py
|
|
43
|
+
quant1x/log4rs.yaml
|
|
44
|
+
quant1x/network.py
|
|
45
|
+
quant1x/types.py
|
|
46
|
+
quant1x/version.py
|
|
47
|
+
quant1x.egg-info/PKG-INFO
|
|
48
|
+
quant1x.egg-info/SOURCES.txt
|
|
49
|
+
quant1x.egg-info/dependency_links.txt
|
|
50
|
+
quant1x.egg-info/not-zip-safe
|
|
51
|
+
quant1x.egg-info/requires.txt
|
|
52
|
+
quant1x.egg-info/top_level.txt
|
|
53
|
+
quant1x/cli/__init__.py
|
|
54
|
+
quant1x/config/__init__.py
|
|
55
|
+
quant1x/config/config.py
|
|
56
|
+
quant1x/contrib/__init__.py
|
|
57
|
+
quant1x/contrib/data/__init__.py
|
|
58
|
+
quant1x/contrib/data/tdx/__init__.py
|
|
59
|
+
quant1x/contrib/data/tdx/client.py
|
|
60
|
+
quant1x/contrib/data/tdx/config.py
|
|
61
|
+
quant1x/contrib/data/tdx/datasource.py
|
|
62
|
+
quant1x/contrib/data/tdx/instruments.py
|
|
63
|
+
quant1x/contrib/data/tdx/kline.py
|
|
64
|
+
quant1x/contrib/data/tdx/kline_raw.py
|
|
65
|
+
quant1x/contrib/data/tdx/market.py
|
|
66
|
+
quant1x/contrib/data/tdx/money.py
|
|
67
|
+
quant1x/contrib/data/tdx/protocol.py
|
|
68
|
+
quant1x/contrib/data/tdx/sector.py
|
|
69
|
+
quant1x/contrib/data/tdx/trans.py
|
|
70
|
+
quant1x/contrib/data/tdx/xdxr.py
|
|
71
|
+
quant1x/contrib/data/tdx/level1/__init__.py
|
|
72
|
+
quant1x/contrib/data/tdx/level1/command.py
|
|
73
|
+
quant1x/contrib/data/tdx/level1/em_dividend.py
|
|
74
|
+
quant1x/contrib/data/tdx/level1/ext-category.md
|
|
75
|
+
quant1x/contrib/data/tdx/level1/ext.py
|
|
76
|
+
quant1x/contrib/data/tdx/level1/f10.py
|
|
77
|
+
quant1x/contrib/data/tdx/level1/helpers.py
|
|
78
|
+
quant1x/contrib/data/tdx/level1/std.py
|
|
79
|
+
quant1x/contrib/data/tdx/level1/xdxr_hkex.py
|
|
80
|
+
quant1x/core/__init__.py
|
|
81
|
+
quant1x/core/base.py
|
|
82
|
+
quant1x/core/decode.py
|
|
83
|
+
quant1x/core/defaults.py
|
|
84
|
+
quant1x/data/__init__.py
|
|
85
|
+
quant1x/data/adapter.py
|
|
86
|
+
quant1x/data/base.py
|
|
87
|
+
quant1x/data/cache.py
|
|
88
|
+
quant1x/data/datasource.py
|
|
89
|
+
quant1x/data/f10.py
|
|
90
|
+
quant1x/data/kline.py
|
|
91
|
+
quant1x/data/kline_raw.py
|
|
92
|
+
quant1x/data/layout.py
|
|
93
|
+
quant1x/data/market.py
|
|
94
|
+
quant1x/data/market_old.py
|
|
95
|
+
quant1x/data/sector.py
|
|
96
|
+
quant1x/data/security.py
|
|
97
|
+
quant1x/data/status.py
|
|
98
|
+
quant1x/data/trans.py
|
|
99
|
+
quant1x/data/xdxr.md
|
|
100
|
+
quant1x/data/xdxr.py
|
|
101
|
+
quant1x/data/meta/__init__.py
|
|
102
|
+
quant1x/data/meta/asset_class.py
|
|
103
|
+
quant1x/data/meta/calendar.py
|
|
104
|
+
quant1x/data/meta/exchange.py
|
|
105
|
+
quant1x/data/meta/forex.py
|
|
106
|
+
quant1x/data/meta/frequency.py
|
|
107
|
+
quant1x/data/meta/fund.md
|
|
108
|
+
quant1x/data/meta/fund.py
|
|
109
|
+
quant1x/data/meta/instrument.py
|
|
110
|
+
quant1x/data/meta/region.py
|
|
111
|
+
quant1x/data/meta/session.py
|
|
112
|
+
quant1x/data/meta/timestamp.py
|
|
113
|
+
quant1x/data/meta/sina/__init__.py
|
|
114
|
+
quant1x/data/meta/sina/decoder.py
|
|
115
|
+
quant1x/data/meta/ticker_rules/__init__.py
|
|
116
|
+
quant1x/data/meta/ticker_rules/market_bse.py
|
|
117
|
+
quant1x/data/meta/ticker_rules/market_hkex.py
|
|
118
|
+
quant1x/data/meta/ticker_rules/market_sse.py
|
|
119
|
+
quant1x/data/meta/ticker_rules/market_szse.py
|
|
120
|
+
quant1x/data/meta/ticker_rules/market_usa.py
|
|
121
|
+
quant1x/data/meta/ticker_rules/rule.py
|
|
122
|
+
quant1x/data/schema/__init__.py
|
|
123
|
+
quant1x/data/schema/adjustment.py
|
|
124
|
+
quant1x/data/schema/bar.py
|
|
125
|
+
quant1x/data/schema/company.py
|
|
126
|
+
quant1x/data/schema/dividend.py
|
|
127
|
+
quant1x/data/schema/sector.py
|
|
128
|
+
quant1x/data/schema/trade.py
|
|
129
|
+
quant1x/data/storage/__init__.py
|
|
130
|
+
quant1x/data/storage/csv.py
|
|
131
|
+
quant1x/data/storage/storage.py
|
|
132
|
+
quant1x/encoding/__init__.py
|
|
133
|
+
quant1x/encoding/json.md
|
|
134
|
+
quant1x/encoding/yaml.py
|
|
135
|
+
quant1x/encoding/binary/README.md
|
|
136
|
+
quant1x/encoding/binary/cstruct/FORK.md
|
|
137
|
+
quant1x/encoding/binary/cstruct/LICENSE
|
|
138
|
+
quant1x/encoding/binary/cstruct/README.md
|
|
139
|
+
quant1x/encoding/binary/struc/LICENSE
|
|
140
|
+
quant1x/encoding/binary/struc/README.md
|
|
141
|
+
quant1x/exchange/__init__.py
|
|
142
|
+
quant1x/exchange/calendar.py
|
|
143
|
+
quant1x/exchange/code.py
|
|
144
|
+
quant1x/exchange/margin_trading.py
|
|
145
|
+
quant1x/exchange/rule.py
|
|
146
|
+
quant1x/exchange/session.md
|
|
147
|
+
quant1x/exchange/session.py
|
|
148
|
+
quant1x/exchange/status.py
|
|
149
|
+
quant1x/exchange/timestamp.py
|
|
150
|
+
quant1x/exchange/sina/decoder.py
|
|
151
|
+
quant1x/factors/__init__.py
|
|
152
|
+
quant1x/factors/base.py
|
|
153
|
+
quant1x/factors/f10.py
|
|
154
|
+
quant1x/factors/financial_report.py
|
|
155
|
+
quant1x/factors/notice.py
|
|
156
|
+
quant1x/factors/safety_score.py
|
|
157
|
+
quant1x/factors/share_holder.py
|
|
158
|
+
quant1x/formula/README-MyTT.md
|
|
159
|
+
quant1x/formula/__init__.py
|
|
160
|
+
quant1x/formula/formula.ipynb
|
|
161
|
+
quant1x/formula/formula.py
|
|
162
|
+
quant1x/formula/formula_plus.py
|
|
163
|
+
quant1x/indicators/README.md
|
|
164
|
+
quant1x/indicators/__init__.py
|
|
165
|
+
quant1x/indicators/cdtd.md
|
|
166
|
+
quant1x/indicators/cdtd.py
|
|
167
|
+
quant1x/indicators/f89k.md
|
|
168
|
+
quant1x/indicators/f89k.py
|
|
169
|
+
quant1x/indicators/hjk.md
|
|
170
|
+
quant1x/indicators/hjk.py
|
|
171
|
+
quant1x/indicators/ma1x.md
|
|
172
|
+
quant1x/indicators/ma1x.py
|
|
173
|
+
quant1x/indicators/p2fb.md
|
|
174
|
+
quant1x/indicators/p2fb.py
|
|
175
|
+
quant1x/indicators/winner.md
|
|
176
|
+
quant1x/io/__init__.py
|
|
177
|
+
quant1x/io/connection_pool.md
|
|
178
|
+
quant1x/io/connection_pool.py
|
|
179
|
+
quant1x/io/csv-reader.LICENSE
|
|
180
|
+
quant1x/io/csv-reader.md
|
|
181
|
+
quant1x/io/endpoint.py
|
|
182
|
+
quant1x/io/operation_handler.py
|
|
183
|
+
quant1x/learn/fpgrowth/README.md
|
|
184
|
+
quant1x/learn/fpgrowth/fp_growth.md
|
|
185
|
+
quant1x/learn/fpgrowth/fp_growth_example.py
|
|
186
|
+
quant1x/level1/__init__.py
|
|
187
|
+
quant1x/level1/block_info.py
|
|
188
|
+
quant1x/level1/block_meta.py
|
|
189
|
+
quant1x/level1/client.py
|
|
190
|
+
quant1x/level1/config.py
|
|
191
|
+
quant1x/level1/finance_info.py
|
|
192
|
+
quant1x/level1/heartbeat.py
|
|
193
|
+
quant1x/level1/hello1.py
|
|
194
|
+
quant1x/level1/hello2.py
|
|
195
|
+
quant1x/level1/helpers.py
|
|
196
|
+
quant1x/level1/minute_time.py
|
|
197
|
+
quant1x/level1/protocol.py
|
|
198
|
+
quant1x/level1/security_bars.py
|
|
199
|
+
quant1x/level1/security_count.py
|
|
200
|
+
quant1x/level1/security_list.py
|
|
201
|
+
quant1x/level1/security_quote.md
|
|
202
|
+
quant1x/level1/security_quote.py
|
|
203
|
+
quant1x/level1/transaction.py
|
|
204
|
+
quant1x/level1/xdxr_info.py
|
|
205
|
+
quant1x/log/__init__.py
|
|
206
|
+
quant1x/log/logger.py
|
|
207
|
+
quant1x/market/__init__.py
|
|
208
|
+
quant1x/market/blocks.py
|
|
209
|
+
quant1x/market/instruments.py
|
|
210
|
+
quant1x/market/security.py
|
|
211
|
+
quant1x/net/__init__.py
|
|
212
|
+
quant1x/net/conn.py
|
|
213
|
+
quant1x/net/endpoint.py
|
|
214
|
+
quant1x/net/handler.py
|
|
215
|
+
quant1x/net/tcp_client_pool.py
|
|
216
|
+
quant1x/proto/README.md
|
|
217
|
+
quant1x/proto/security_info.proto
|
|
218
|
+
quant1x/proto/snapshot.capnp.c++
|
|
219
|
+
quant1x/resources/README.md
|
|
220
|
+
quant1x/resources/meta/tdxhy.inc
|
|
221
|
+
quant1x/resources/meta/tdxzs.inc
|
|
222
|
+
quant1x/resources/meta/tdxzs3.inc
|
|
223
|
+
quant1x/runtime/__init__.py
|
|
224
|
+
quant1x/runtime/once.py
|
|
225
|
+
quant1x/runtime/ringbuffer.md
|
|
226
|
+
quant1x/runtime/scheduler.md
|
|
227
|
+
quant1x/runtime/scheduler.py
|
|
228
|
+
quant1x/std/__init__.py
|
|
229
|
+
quant1x/std/bits_amd64.s
|
|
230
|
+
quant1x/std/bits_arm64.s
|
|
231
|
+
quant1x/std/dataclass_utils.py
|
|
232
|
+
quant1x/std/embed.go.copy
|
|
233
|
+
quant1x/std/except.py
|
|
234
|
+
quant1x/std/filesystem.py
|
|
235
|
+
quant1x/std/numeric.md
|
|
236
|
+
quant1x/std/numeric.py
|
|
237
|
+
quant1x/std/pattern.py
|
|
238
|
+
quant1x/std/singleton.py
|
|
239
|
+
quant1x/std/strings.md
|
|
240
|
+
quant1x/std/strings.py
|
|
241
|
+
quant1x/std/system.py
|
|
242
|
+
quant1x/std/time.py
|
|
243
|
+
quant1x/ta/README.md
|
|
244
|
+
quant1x/tools/inspect_blocks.py
|
|
245
|
+
quant1x/util/SimHei.ttf
|
|
246
|
+
quant1x/util/__init__.py
|
|
247
|
+
quant1x/util/chart.py
|
|
248
|
+
quant1x/util/font.py
|
|
249
|
+
quant1x/util/util-font.ipynb
|
quant1x-0.7.9.dev1/MANIFEST.in
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
# Exclude non-Python source trees from Python sdist
|
|
2
|
-
prune third_party
|
|
3
|
-
prune build
|
|
4
|
-
prune cmake
|
|
5
|
-
prune docs
|
|
6
|
-
prune examples
|
|
7
|
-
prune benches
|
|
8
|
-
prune target
|
|
9
|
-
prune vcpkg_installed
|
|
10
|
-
prune tools
|
|
11
|
-
prune user
|
|
12
|
-
prune scripts
|
|
13
|
-
prune tests
|
|
14
|
-
|
|
15
|
-
# Exclude compiled and non-Python source files from sdist
|
|
16
|
-
recursive-exclude * *.cpp
|
|
17
|
-
recursive-exclude * *.c
|
|
18
|
-
recursive-exclude * *.h
|
|
19
|
-
recursive-exclude * *.cc
|
|
20
|
-
recursive-exclude * *.rs
|
|
21
|
-
recursive-exclude * *.o
|
|
22
|
-
recursive-exclude * *.obj
|
|
23
|
-
recursive-exclude * *.so
|
|
24
|
-
recursive-exclude * *.a
|
|
25
|
-
recursive-exclude * *.lib
|
|
26
|
-
recursive-exclude * __pycache__
|
quant1x-0.7.9.dev1/go.mod
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
module gitee.com/quant1x/quant1x
|
|
2
|
-
|
|
3
|
-
go 1.26.0
|
|
4
|
-
|
|
5
|
-
require (
|
|
6
|
-
gitee.com/quant1x/num v0.7.13
|
|
7
|
-
gitee.com/quant1x/pkg v0.9.0
|
|
8
|
-
github.com/klauspost/cpuid/v2 v2.3.0
|
|
9
|
-
github.com/lestrrat-go/file-rotatelogs v2.4.0+incompatible
|
|
10
|
-
github.com/petermattis/goid v0.0.0-20250904145737-900bdf8bb490
|
|
11
|
-
github.com/spf13/cobra v1.10.1
|
|
12
|
-
github.com/stretchr/testify v1.11.1
|
|
13
|
-
go.uber.org/zap v1.27.1
|
|
14
|
-
golang.org/x/sys v0.36.0
|
|
15
|
-
golang.org/x/text v0.30.0
|
|
16
|
-
google.golang.org/protobuf v1.36.9
|
|
17
|
-
gopkg.in/yaml.v3 v3.0.1
|
|
18
|
-
)
|
|
19
|
-
|
|
20
|
-
require (
|
|
21
|
-
gitee.com/quant1x/gox v1.25.1 // indirect
|
|
22
|
-
github.com/davecgh/go-spew v1.1.1 // indirect
|
|
23
|
-
github.com/fsnotify/fsnotify v1.9.0 // indirect
|
|
24
|
-
github.com/inconshreveable/mousetrap v1.1.0 // indirect
|
|
25
|
-
github.com/jonboulle/clockwork v0.5.0 // indirect
|
|
26
|
-
github.com/lestrrat-go/strftime v1.1.1 // indirect
|
|
27
|
-
github.com/pkg/errors v0.9.1 // indirect
|
|
28
|
-
github.com/pmezard/go-difflib v1.0.0 // indirect
|
|
29
|
-
github.com/rivo/uniseg v0.4.7 // indirect
|
|
30
|
-
github.com/spf13/pflag v1.0.10 // indirect
|
|
31
|
-
go.uber.org/multierr v1.11.0 // indirect
|
|
32
|
-
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect
|
|
33
|
-
)
|
quant1x-0.7.9.dev1/go.sum
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
gitee.com/quant1x/gox v1.25.1 h1:daOlQK8I7iXcaZNFXHj1PYq7TwEcLVM+LjeUQiSRtg8=
|
|
2
|
-
gitee.com/quant1x/gox v1.25.1/go.mod h1:5KDJRyeY2tnAmqe4OOVRBEW6j/cB40PfDISTB3wThuQ=
|
|
3
|
-
gitee.com/quant1x/num v0.7.13 h1:tn5m1JmvMAh8EFT2LwhRftV/HwZ/9401obELUFhvAH4=
|
|
4
|
-
gitee.com/quant1x/num v0.7.13/go.mod h1:vSXTdXpwD2zDieH17LA5elGf4WhIjMaGHNKCt0MAbHs=
|
|
5
|
-
gitee.com/quant1x/pkg v0.9.0 h1:8gPkmwOu6IXW1gZhHitqAQcVOuZsWUnN5YRtF8Zeyks=
|
|
6
|
-
gitee.com/quant1x/pkg v0.9.0/go.mod h1:NwWkHtUEV+UePFVbFPwbf/Y2kO1UDT3M9GWe+PF0NrY=
|
|
7
|
-
github.com/cpuguy83/go-md2man/v2 v2.0.6/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g=
|
|
8
|
-
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
|
|
9
|
-
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
|
10
|
-
github.com/fsnotify/fsnotify v1.9.0 h1:2Ml+OJNzbYCTzsxtv8vKSFD9PbJjmhYF14k/jKC7S9k=
|
|
11
|
-
github.com/fsnotify/fsnotify v1.9.0/go.mod h1:8jBTzvmWwFyi3Pb8djgCCO5IBqzKJ/Jwo8TRcHyHii0=
|
|
12
|
-
github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU=
|
|
13
|
-
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
|
14
|
-
github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8=
|
|
15
|
-
github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw=
|
|
16
|
-
github.com/jonboulle/clockwork v0.5.0 h1:Hyh9A8u51kptdkR+cqRpT1EebBwTn1oK9YfGYbdFz6I=
|
|
17
|
-
github.com/jonboulle/clockwork v0.5.0/go.mod h1:3mZlmanh0g2NDKO5TWZVJAfofYk64M7XN3SzBPjZF60=
|
|
18
|
-
github.com/klauspost/cpuid/v2 v2.3.0 h1:S4CRMLnYUhGeDFDqkGriYKdfoFlDnMtqTiI/sFzhA9Y=
|
|
19
|
-
github.com/klauspost/cpuid/v2 v2.3.0/go.mod h1:hqwkgyIinND0mEev00jJYCxPNVRVXFQeu1XKlok6oO0=
|
|
20
|
-
github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=
|
|
21
|
-
github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk=
|
|
22
|
-
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
|
|
23
|
-
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
|
|
24
|
-
github.com/lestrrat-go/envload v0.0.0-20180220234015-a3eb8ddeffcc h1:RKf14vYWi2ttpEmkA4aQ3j4u9dStX2t4M8UM6qqNsG8=
|
|
25
|
-
github.com/lestrrat-go/envload v0.0.0-20180220234015-a3eb8ddeffcc/go.mod h1:kopuH9ugFRkIXf3YoqHKyrJ9YfUFsckUU9S7B+XP+is=
|
|
26
|
-
github.com/lestrrat-go/file-rotatelogs v2.4.0+incompatible h1:Y6sqxHMyB1D2YSzWkLibYKgg+SwmyFU9dF2hn6MdTj4=
|
|
27
|
-
github.com/lestrrat-go/file-rotatelogs v2.4.0+incompatible/go.mod h1:ZQnN8lSECaebrkQytbHj4xNgtg8CR7RYXnPok8e0EHA=
|
|
28
|
-
github.com/lestrrat-go/strftime v1.1.1 h1:zgf8QCsgj27GlKBy3SU9/8MMgegZ8UCzlCyHYrUF0QU=
|
|
29
|
-
github.com/lestrrat-go/strftime v1.1.1/go.mod h1:YDrzHJAODYQ+xxvrn5SG01uFIQAeDTzpxNVppCz7Nmw=
|
|
30
|
-
github.com/petermattis/goid v0.0.0-20250904145737-900bdf8bb490 h1:QTvNkZ5ylY0PGgA+Lih+GdboMLY/G9SEGLMEGVjTVA4=
|
|
31
|
-
github.com/petermattis/goid v0.0.0-20250904145737-900bdf8bb490/go.mod h1:pxMtw7cyUw6B2bRH0ZBANSPg+AoSud1I1iyJHI69jH4=
|
|
32
|
-
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
|
|
33
|
-
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
|
|
34
|
-
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
|
|
35
|
-
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
|
|
36
|
-
github.com/rivo/uniseg v0.4.7 h1:WUdvkW8uEhrYfLC4ZzdpI2ztxP1I582+49Oc5Mq64VQ=
|
|
37
|
-
github.com/rivo/uniseg v0.4.7/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88=
|
|
38
|
-
github.com/rogpeppe/go-internal v1.14.1 h1:UQB4HGPB6osV0SQTLymcB4TgvyWu6ZyliaW0tI/otEQ=
|
|
39
|
-
github.com/rogpeppe/go-internal v1.14.1/go.mod h1:MaRKkUm5W0goXpeCfT7UZI6fk/L7L7so1lCWt35ZSgc=
|
|
40
|
-
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
|
|
41
|
-
github.com/spf13/cobra v1.10.1 h1:lJeBwCfmrnXthfAupyUTzJ/J4Nc1RsHC/mSRU2dll/s=
|
|
42
|
-
github.com/spf13/cobra v1.10.1/go.mod h1:7SmJGaTHFVBY0jW4NXGluQoLvhqFQM+6XSKD+P4XaB0=
|
|
43
|
-
github.com/spf13/pflag v1.0.9/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
|
|
44
|
-
github.com/spf13/pflag v1.0.10 h1:4EBh2KAYBwaONj6b2Ye1GiHfwjqyROoF4RwYO+vPwFk=
|
|
45
|
-
github.com/spf13/pflag v1.0.10/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
|
|
46
|
-
github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U=
|
|
47
|
-
github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U=
|
|
48
|
-
go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto=
|
|
49
|
-
go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE=
|
|
50
|
-
go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0=
|
|
51
|
-
go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y=
|
|
52
|
-
go.uber.org/zap v1.27.1 h1:08RqriUEv8+ArZRYSTXy1LeBScaMpVSTBhCeaZYfMYc=
|
|
53
|
-
go.uber.org/zap v1.27.1/go.mod h1:GB2qFLM7cTU87MWRP2mPIjqfIDnGu+VIO4V/SdhGo2E=
|
|
54
|
-
golang.org/x/sys v0.36.0 h1:KVRy2GtZBrk1cBYA7MKu5bEZFxQk4NIDV6RLVcC8o0k=
|
|
55
|
-
golang.org/x/sys v0.36.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=
|
|
56
|
-
golang.org/x/text v0.30.0 h1:yznKA/E9zq54KzlzBEAWn1NXSQ8DIp/NYMy88xJjl4k=
|
|
57
|
-
golang.org/x/text v0.30.0/go.mod h1:yDdHFIX9t+tORqspjENWgzaCVXgk0yYnYuSZ8UzzBVM=
|
|
58
|
-
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4=
|
|
59
|
-
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
|
60
|
-
google.golang.org/protobuf v1.36.9 h1:w2gp2mA27hUeUzj9Ex9FBjsBm40zfaDtEWow293U7Iw=
|
|
61
|
-
google.golang.org/protobuf v1.36.9/go.mod h1:fuxRtAxBytpl4zzqUh6/eyUujkJdNiuEkXntxiD/uRU=
|
|
62
|
-
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
|
63
|
-
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk=
|
|
64
|
-
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q=
|
|
65
|
-
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ=
|
|
66
|
-
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw=
|
|
67
|
-
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
|
|
68
|
-
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
package command
|
|
2
|
-
|
|
3
|
-
import (
|
|
4
|
-
"fmt"
|
|
5
|
-
"os"
|
|
6
|
-
goruntime "runtime"
|
|
7
|
-
"strings"
|
|
8
|
-
_ "unsafe" // For go:linkname
|
|
9
|
-
|
|
10
|
-
//"gitee.com/quant1x/engine/models"
|
|
11
|
-
//"gitee.com/quant1x/engine/tracker"
|
|
12
|
-
"gitee.com/quant1x/num"
|
|
13
|
-
"gitee.com/quant1x/quant1x/quant1x/log"
|
|
14
|
-
"gitee.com/quant1x/quant1x/quant1x/runtime"
|
|
15
|
-
"github.com/klauspost/cpuid/v2" // For cpuid
|
|
16
|
-
cli "github.com/spf13/cobra"
|
|
17
|
-
)
|
|
18
|
-
|
|
19
|
-
var (
|
|
20
|
-
Application = "stock"
|
|
21
|
-
MinVersion = "0.0.1" // 主程序版本号
|
|
22
|
-
)
|
|
23
|
-
|
|
24
|
-
func init() {
|
|
25
|
-
Application = runtime.ApplicationName()
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
// UpdateApplicationName 更新应用(Application)名称
|
|
29
|
-
func UpdateApplicationName(name string) {
|
|
30
|
-
Application = name
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
// UpdateApplicationVersion 更新版本号
|
|
34
|
-
func UpdateApplicationVersion(v string) {
|
|
35
|
-
MinVersion = v
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
// 获取CPU型号
|
|
39
|
-
func cpuModelName() string {
|
|
40
|
-
return cpuid.CPU.BrandName
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
const (
|
|
44
|
-
KB = 1024 // Kilo Byte
|
|
45
|
-
MB = 1024 * KB // Mega Byte
|
|
46
|
-
GB = 1024 * MB // Giga Byte
|
|
47
|
-
)
|
|
48
|
-
|
|
49
|
-
var (
|
|
50
|
-
strategyNumber = uint64(1) // 策略编号
|
|
51
|
-
businessDebug = runtime.Debug() // 业务调试开关
|
|
52
|
-
cpuAvx2 = false // AVX2加速状态
|
|
53
|
-
cpuNum = goruntime.NumCPU() / 2 // cpu数量
|
|
54
|
-
)
|
|
55
|
-
|
|
56
|
-
var (
|
|
57
|
-
commandDefaultLongFlag = "" // 默认的长标志为空, 主要用在tools
|
|
58
|
-
)
|
|
59
|
-
|
|
60
|
-
// 输出欢迎语
|
|
61
|
-
func printMotd() {
|
|
62
|
-
fmt.Printf("CPU: %s, %dCores, AVX2: %t\n", cpuModelName(), goruntime.NumCPU(), num.GetAvx2Enabled())
|
|
63
|
-
fmt.Println()
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
// 初始化全部子命令
|
|
67
|
-
func initSubCommands() {
|
|
68
|
-
//initPrint()
|
|
69
|
-
//initRepair()
|
|
70
|
-
initUpdate()
|
|
71
|
-
//initRules()
|
|
72
|
-
//initSafes()
|
|
73
|
-
//initBackTesting()
|
|
74
|
-
//initTracker()
|
|
75
|
-
//initTools()
|
|
76
|
-
//initService()
|
|
77
|
-
//initBackTest()
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
// InitCommands 公开初始化函数
|
|
81
|
-
func InitCommands() {
|
|
82
|
-
initSubCommands()
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
// GlobalFlags engine支持的全部命令
|
|
86
|
-
func GlobalFlags() *cli.Command {
|
|
87
|
-
initSubCommands()
|
|
88
|
-
engineCmd := &cli.Command{
|
|
89
|
-
Use: Application,
|
|
90
|
-
Run: func(cmd *cli.Command, args []string) {
|
|
91
|
-
log.Warnf("stock default args:%+v", os.Args)
|
|
92
|
-
// model, err := models.CheckoutStrategy(strategyNumber)
|
|
93
|
-
// if err != nil {
|
|
94
|
-
// fmt.Println(err)
|
|
95
|
-
// return
|
|
96
|
-
// }
|
|
97
|
-
// // 输出欢迎语
|
|
98
|
-
// printMotd()
|
|
99
|
-
// barIndex := 1
|
|
100
|
-
// tracker.ExecuteStrategy(model, &barIndex)
|
|
101
|
-
},
|
|
102
|
-
PersistentPreRun: func(cmd *cli.Command, args []string) {
|
|
103
|
-
// 重置全局调试状态
|
|
104
|
-
runtime.SetDebug(businessDebug)
|
|
105
|
-
// AVX2 加速
|
|
106
|
-
num.SetAvx2Enabled(cpuAvx2)
|
|
107
|
-
// 设置CPU最大核数
|
|
108
|
-
runtime.GoMaxProcs(cpuNum)
|
|
109
|
-
},
|
|
110
|
-
PersistentPostRun: func(cmd *cli.Command, args []string) {
|
|
111
|
-
//
|
|
112
|
-
},
|
|
113
|
-
}
|
|
114
|
-
//engineCmd.Flags().Uint64Var(&strategyNumber, "strategy", models.DefaultStrategy, models.UsageStrategyList())
|
|
115
|
-
//engineCmd.Flags().IntVar(&models.CountDays, "count", 0, "统计多少天")
|
|
116
|
-
//engineCmd.Flags().IntVar(&models.CountTopN, "top", models.AllStockTopN(), "输出前排几名")
|
|
117
|
-
engineCmd.PersistentFlags().BoolVar(&businessDebug, "debug", businessDebug, "打开业务调试开关, 慎重使用!")
|
|
118
|
-
engineCmd.PersistentFlags().BoolVar(&cpuAvx2, "avx2", false, "Avx2 加速开关")
|
|
119
|
-
engineCmd.PersistentFlags().IntVar(&cpuNum, "cpu", cpuNum, "设置CPU最大核数")
|
|
120
|
-
//engineCmd.AddCommand(CmdVersion, CmdSafes, CmdBestIP, CmdConfig, CmdTools)
|
|
121
|
-
engineCmd.AddCommand(CmdUpdate)
|
|
122
|
-
//engineCmd.AddCommand(CmdRepair)
|
|
123
|
-
//engineCmd.AddCommand(CmdPrint)
|
|
124
|
-
|
|
125
|
-
//engineCmd.AddCommand(CmdBackTesting, CmdRules, CmdTracker)
|
|
126
|
-
//engineCmd.AddCommand(cmdBackTest)
|
|
127
|
-
//engineCmd.AddCommand(CmdService)
|
|
128
|
-
return engineCmd
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
func parseFlagError(err error) (flag, value string) {
|
|
132
|
-
before, _, ok := strings.Cut(err.Error(), "flag:")
|
|
133
|
-
if !ok {
|
|
134
|
-
return
|
|
135
|
-
}
|
|
136
|
-
before = strings.TrimSpace(before)
|
|
137
|
-
//_, err1 := fmt.Sscanf(before, "invalid argument \"%s\" for \"--%s\"", &value, &flag)
|
|
138
|
-
//if err1 != nil {
|
|
139
|
-
// return
|
|
140
|
-
//}
|
|
141
|
-
arr := strings.Split(before, "\"")
|
|
142
|
-
if len(arr) != 5 {
|
|
143
|
-
return
|
|
144
|
-
}
|
|
145
|
-
value = strings.TrimSpace(arr[1])
|
|
146
|
-
flag = strings.TrimSpace(arr[3])
|
|
147
|
-
arr = strings.Split(flag, "-")
|
|
148
|
-
flag = arr[len(arr)-1]
|
|
149
|
-
return
|
|
150
|
-
}
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
package command
|
|
2
|
-
|
|
3
|
-
import (
|
|
4
|
-
"strings"
|
|
5
|
-
"unsafe"
|
|
6
|
-
|
|
7
|
-
"gitee.com/quant1x/pkg/tablewriter"
|
|
8
|
-
"gitee.com/quant1x/quant1x/quant1x/data"
|
|
9
|
-
"gitee.com/quant1x/quant1x/quant1x/exchange"
|
|
10
|
-
"gitee.com/quant1x/quant1x/quant1x/std/meta"
|
|
11
|
-
cli "github.com/spf13/cobra"
|
|
12
|
-
)
|
|
13
|
-
|
|
14
|
-
const (
|
|
15
|
-
defaultFlagAll = "all" // 全部
|
|
16
|
-
)
|
|
17
|
-
|
|
18
|
-
var (
|
|
19
|
-
flagAll = cmdFlag[bool]{Name: "all", Value: false, Usage: "全部"}
|
|
20
|
-
flagBaseData = cmdFlag[string]{Name: "base", Value: "", Usage: "基础数据"}
|
|
21
|
-
flagFeatures = cmdFlag[string]{Name: "features", Value: "", Usage: "特征数据"}
|
|
22
|
-
flagStartDate = cmdFlag[string]{Name: "start", Value: exchange.LastTradingDay(exchange.NowTimestamp()).OnlyDate(), Usage: "开始日期"}
|
|
23
|
-
flagEndDate = cmdFlag[string]{Name: "end", Value: exchange.LastTradingDay(exchange.NowTimestamp()).OnlyDate(), Usage: "结束日期"}
|
|
24
|
-
flagDate = cmdFlag[string]{Name: "date", Value: "", Usage: "日期"}
|
|
25
|
-
)
|
|
26
|
-
|
|
27
|
-
type Command = cli.Command
|
|
28
|
-
|
|
29
|
-
type cmdFlag[T ~int | ~bool | ~string] struct {
|
|
30
|
-
Name string
|
|
31
|
-
Usage string
|
|
32
|
-
Value T
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
func (cf *cmdFlag[T]) init(cmd *cli.Command) {
|
|
36
|
-
switch v := any(cf.Value).(type) {
|
|
37
|
-
case bool:
|
|
38
|
-
cmd.Flags().BoolVar((*bool)(unsafe.Pointer(&cf.Value)), cf.Name, v, cf.Usage)
|
|
39
|
-
case int:
|
|
40
|
-
cmd.Flags().IntVar((*int)(unsafe.Pointer(&cf.Value)), cf.Name, v, cf.Usage)
|
|
41
|
-
case string:
|
|
42
|
-
cmd.Flags().StringVar((*string)(unsafe.Pointer(&cf.Value)), cf.Name, v, cf.Usage)
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
func commandInit[T ~int | ~bool | ~string](cmd *cli.Command, cf *cmdFlag[T]) {
|
|
47
|
-
switch v := any(cf.Value).(type) {
|
|
48
|
-
case bool:
|
|
49
|
-
cmd.Flags().BoolVar((*bool)(unsafe.Pointer(&cf.Value)), cf.Name, v, cf.Usage)
|
|
50
|
-
case int:
|
|
51
|
-
cmd.Flags().IntVar((*int)(unsafe.Pointer(&cf.Value)), cf.Name, v, cf.Usage)
|
|
52
|
-
case string:
|
|
53
|
-
cmd.Flags().StringVar((*string)(unsafe.Pointer(&cf.Value)), cf.Name, v, cf.Usage)
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
func parseFields(text string) (all bool, keywords []string) {
|
|
58
|
-
text = strings.TrimSpace(text)
|
|
59
|
-
if len(text) == 0 {
|
|
60
|
-
return
|
|
61
|
-
}
|
|
62
|
-
arr := strings.Split(text, ",")
|
|
63
|
-
var list []string
|
|
64
|
-
for _, v := range arr {
|
|
65
|
-
v := strings.TrimSpace(v)
|
|
66
|
-
if v == defaultFlagAll {
|
|
67
|
-
return true, keywords
|
|
68
|
-
} else if len(v) == 0 {
|
|
69
|
-
continue
|
|
70
|
-
} else {
|
|
71
|
-
list = append(list, v)
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
return false, list
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
type optionUsage struct {
|
|
78
|
-
Key string `name:"关键字"`
|
|
79
|
-
Name string `name:"概要"`
|
|
80
|
-
Provider string `name:"数据源"`
|
|
81
|
-
Usage string `name:"描述"`
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
// 获取插件的Usage信息
|
|
85
|
-
func getPluginsUsage(plugins []data.DataAdapter) string {
|
|
86
|
-
writer := strings.Builder{}
|
|
87
|
-
table := tablewriter.NewWriter(&writer)
|
|
88
|
-
table.SetHeader(meta.GetHeadersByTags(optionUsage{}))
|
|
89
|
-
table.Append(meta.GetValuesByTags(optionUsage{Key: defaultFlagAll, Name: "全部", Provider: ""}))
|
|
90
|
-
for _, plugin := range plugins {
|
|
91
|
-
ou := optionUsage{Key: plugin.Key(), Name: plugin.Name(), Provider: plugin.Owner(), Usage: plugin.Usage()}
|
|
92
|
-
table.Append(meta.GetValuesByTags(ou))
|
|
93
|
-
}
|
|
94
|
-
table.EnableBorder(false)
|
|
95
|
-
table.Render()
|
|
96
|
-
return writer.String()
|
|
97
|
-
}
|