Skip to content

Commit 1a9aba1

Browse files
committed
v3.0.19
1 parent 42a6aba commit 1a9aba1

12 files changed

Lines changed: 145 additions & 57 deletions

File tree

.github/workflows/check_docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
uses: actions/checkout@v4
4444
with:
4545
submodules: true
46-
- uses: actions/setup-java@v4
46+
- uses: actions/setup-java@v5
4747
with:
4848
java-version: "11"
4949
distribution: "temurin"

.github/workflows/ci.yml

Lines changed: 13 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
strategy:
2929
fail-fast: true
3030
matrix:
31-
os: [ubuntu-22.04, windows-latest, macos-13]
31+
os: [ubuntu-22.04, windows-latest, macos-14]
3232
runs-on: ${{ matrix.os }}
3333
steps:
3434
- uses: actions/checkout@v4
@@ -53,9 +53,8 @@ jobs:
5353
strategy:
5454
fail-fast: true
5555
matrix:
56-
os: [ubuntu-22.04, windows-latest, macos-13]
57-
python-version:
58-
["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
56+
os: [ubuntu-22.04, windows-latest, macos-14]
57+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
5958
runs-on: ${{ matrix.os }}
6059
steps:
6160
- uses: actions/checkout@v4
@@ -89,13 +88,11 @@ jobs:
8988
build-python-sdk-macos:
9089
needs:
9190
- check-python-sdk
92-
runs-on: macos-13
91+
runs-on: macos-14
9392
strategy:
9493
fail-fast: true
9594
matrix:
9695
python:
97-
- version: "3.7"
98-
universal2: false
9996
- version: "3.8"
10097
universal2: true
10198
- version: "3.9"
@@ -153,8 +150,7 @@ jobs:
153150
strategy:
154151
fail-fast: true
155152
matrix:
156-
python-version:
157-
["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
153+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
158154
target: [x64, x86]
159155
steps:
160156
- name: Checkout
@@ -191,8 +187,7 @@ jobs:
191187
strategy:
192188
fail-fast: true
193189
matrix:
194-
python-version:
195-
["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
190+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
196191
target: [x86_64, i686]
197192
steps:
198193
- name: Checkout
@@ -226,8 +221,7 @@ jobs:
226221
strategy:
227222
fail-fast: true
228223
matrix:
229-
python-version:
230-
["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
224+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
231225
target: [aarch64]
232226
steps:
233227
- name: Checkout
@@ -292,7 +286,7 @@ jobs:
292286
yarn build:debug --target aarch64-unknown-linux-gnu
293287
aarch64-unknown-linux-gnu-strip *.node
294288
295-
- host: macos-13
289+
- host: macos-14
296290
architecture: x64
297291
build: |
298292
rustup install 1.89.0
@@ -314,7 +308,7 @@ jobs:
314308
yarn build:debug
315309
strip *.node
316310
317-
- host: macos-13
311+
- host: macos-14
318312
target: aarch64-apple-darwin
319313
build: |
320314
sudo rm -Rf /Library/Developer/CommandLineTools/SDKs/*;
@@ -388,7 +382,7 @@ jobs:
388382
strategy:
389383
fail-fast: true
390384
matrix:
391-
os: [ubuntu-22.04, windows-latest, macos-13]
385+
os: [ubuntu-22.04, windows-latest, macos-14]
392386
java-version: ["8"]
393387
runs-on: ${{ matrix.os }}
394388
steps:
@@ -397,7 +391,7 @@ jobs:
397391
submodules: true
398392

399393
- name: Install JDK
400-
uses: actions/setup-java@v4
394+
uses: actions/setup-java@v5
401395
with:
402396
java-version: ${{ matrix.java-version }}
403397
distribution: "temurin"
@@ -424,7 +418,7 @@ jobs:
424418
strategy:
425419
fail-fast: true
426420
matrix:
427-
os: [ubuntu-22.04, windows-latest, macos-13]
421+
os: [ubuntu-22.04, windows-latest, macos-14]
428422
runs-on: ${{ matrix.os }}
429423
steps:
430424
- uses: actions/checkout@v4
@@ -467,7 +461,7 @@ jobs:
467461
platform: OS64
468462
- target: aarch64-apple-ios-sim
469463
platform: SIMULATOR64
470-
runs-on: macos-13
464+
runs-on: macos-14
471465
steps:
472466
- uses: actions/checkout@v4
473467
with:

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
check-latest: true
2828

2929
- name: Install JDK
30-
uses: actions/setup-java@v4
30+
uses: actions/setup-java@v5
3131
with:
3232
java-version: "11"
3333
distribution: "temurin"

.github/workflows/release-mcp.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ jobs:
2525
target: x86_64-pc-windows-msvc
2626
bin: longport-mcp
2727
bin_suffix: .exe
28-
- host: macos-13
28+
- host: macos-14
2929
target: x86_64-apple-darwin
3030
bin: longport-mcp
31-
- host: macos-13
31+
- host: macos-14
3232
target: aarch64-apple-darwin
3333
bin: longport-mcp
3434
runs-on: ${{ matrix.settings.host }}

.github/workflows/release.yml

Lines changed: 15 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,11 @@ on:
66

77
jobs:
88
build-python-sdk-macos:
9-
runs-on: macos-13
9+
runs-on: macos-14
1010
strategy:
1111
fail-fast: true
1212
matrix:
1313
python:
14-
- version: "3.7"
15-
universal2: false
1614
- version: "3.8"
1715
universal2: true
1816
- version: "3.9"
@@ -68,8 +66,7 @@ jobs:
6866
strategy:
6967
fail-fast: true
7068
matrix:
71-
python-version:
72-
["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
69+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
7370
target: [x64, x86]
7471
steps:
7572
- name: Checkout
@@ -104,8 +101,7 @@ jobs:
104101
strategy:
105102
fail-fast: true
106103
matrix:
107-
python-version:
108-
["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
104+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
109105
target: [x86_64, i686]
110106
steps:
111107
- name: Checkout
@@ -137,8 +133,7 @@ jobs:
137133
strategy:
138134
fail-fast: true
139135
matrix:
140-
python-version:
141-
["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
136+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
142137
target: [aarch64]
143138
steps:
144139
- name: Checkout
@@ -211,7 +206,7 @@ jobs:
211206
# /aarch64-linux-musl-cross/bin/aarch64-linux-musl-strip *.node
212207
# artifact-name: linux-aarch64-musl
213208

214-
- host: macos-13
209+
- host: macos-14
215210
architecture: x64
216211
build: |
217212
rustup install 1.89.0
@@ -236,7 +231,7 @@ jobs:
236231
strip *.node
237232
artifact-name: linux-x64
238233

239-
- host: macos-13
234+
- host: macos-14
240235
target: aarch64-apple-darwin
241236
build: |
242237
sudo rm -Rf /Library/Developer/CommandLineTools/SDKs/*;
@@ -314,11 +309,11 @@ jobs:
314309
- host: windows-latest
315310
lib_suffix: ".dll"
316311
target: x86_64-pc-windows-msvc
317-
- host: macos-13
312+
- host: macos-14
318313
lib_prefix: "lib"
319314
lib_suffix: ".dylib"
320315
target: x86_64-apple-darwin
321-
- host: macos-13
316+
- host: macos-14
322317
lib_prefix: "lib"
323318
lib_suffix: ".dylib"
324319
target: aarch64-apple-darwin
@@ -390,11 +385,11 @@ jobs:
390385
- host: windows-latest
391386
target: x86_64-pc-windows-msvc
392387
platform: x86_64_windows
393-
- host: macos-13
388+
- host: macos-14
394389
target: x86_64-apple-darwin
395390
platform: x86_64_macos
396391
dylib_ext: dylib
397-
- host: macos-13
392+
- host: macos-14
398393
target: aarch64-apple-darwin
399394
platform: aarch64_macos
400395
dylib_ext: dylib
@@ -470,11 +465,11 @@ jobs:
470465
- host: windows-latest
471466
target: x86_64-pc-windows-msvc
472467
platform: x86_64_windows
473-
- host: macos-13
468+
- host: macos-14
474469
target: x86_64-apple-darwin
475470
platform: x86_64_macos
476471
dylib_ext: dylib
477-
- host: macos-13
472+
- host: macos-14
478473
target: aarch64-apple-darwin
479474
platform: aarch64_macos
480475
dylib_ext: dylib
@@ -563,7 +558,7 @@ jobs:
563558
build-type: Release
564559
target-dir: release
565560
cargo-args: -r
566-
runs-on: macos-13
561+
runs-on: macos-14
567562
steps:
568563
- uses: actions/checkout@v4
569564
with:
@@ -825,7 +820,7 @@ jobs:
825820
merge-multiple: true
826821
- uses: actions/setup-python@v5
827822
with:
828-
python-version: 3.7
823+
python-version: 3.8
829824
- name: Publish to PyPi
830825
uses: pypa/gh-action-pypi-publish@release/v1
831826

@@ -874,7 +869,7 @@ jobs:
874869
submodules: true
875870

876871
- name: Install JDK
877-
uses: actions/setup-java@v4
872+
uses: actions/setup-java@v5
878873
with:
879874
java-version: "8"
880875
distribution: "temurin"

Cargo.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@ resolver = "3"
33
members = ["rust", "python", "nodejs", "java", "c", "mcp"]
44

55
[workspace.package]
6-
version = "3.0.18"
6+
version = "3.0.19"
77
edition = "2024"
88

99
[profile.release]
1010
lto = true
1111

1212
[workspace.dependencies]
13-
longport-wscli = { path = "rust/crates/wsclient", version = "3.0.18" }
14-
longport-httpcli = { path = "rust/crates/httpclient", version = "3.0.18" }
15-
longport-proto = { path = "rust/crates/proto", version = "3.0.18" }
16-
longport-candlesticks = { path = "rust/crates/candlesticks", version = "3.0.18" }
17-
longport = { path = "rust", version = "3.0.18" }
13+
longport-wscli = { path = "rust/crates/wsclient", version = "3.0.19" }
14+
longport-httpcli = { path = "rust/crates/httpclient", version = "3.0.19" }
15+
longport-proto = { path = "rust/crates/proto", version = "3.0.19" }
16+
longport-candlesticks = { path = "rust/crates/candlesticks", version = "3.0.19" }
17+
longport = { path = "rust", version = "3.0.19" }
1818

1919
tokio = "1.47.1"
2020
tokio-tungstenite = "0.27.0"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ LongPort OpenAPI provides programmatic quote trading interfaces for investors wi
1515
| Name | Document | Description |
1616
|-----------------------------|-----------------------------------------------------------------------|---------------------------------------------------|
1717
| [Rust](rust/README.md) | [Doc](https://longportapp.github.io/openapi/rust/longport/index.html) | LongPort OpenAPI for Rust `(>= 1.89.0)` |
18-
| [Python](python/README.md) | [Doc](https://longportapp.github.io/openapi/python/index.html) | LongPort OpenAPI for Python 3 `(>= 3.7)` |
18+
| [Python](python/README.md) | [Doc](https://longportapp.github.io/openapi/python/index.html) | LongPort OpenAPI for Python 3 `(>= 3.8)` |
1919
| [Node.js](nodejs/README.md) | [Doc](https://longportapp.github.io/openapi/nodejs/index.html) | LongPort OpenAPI for Node.js `(>= 10)` |
2020
| [Java](java/README.md) | [Doc](https://longportapp.github.io/openapi/java/index.html) | LongPort OpenAPI for Java `(>= 1.8)` |
2121
| [C](c/README.md) | [Doc](https://longportapp.github.io/openapi/c/index.html) | LongPort OpenAPI for C `(>= C99)` |

nodejs/index.d.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1016,11 +1016,11 @@ export declare class QuoteContext {
10161016
* QuoteContext.new(config)
10171017
* .then((ctx) => {
10181018
* ctx.setOnQuote((_, event) => console.log(event.toString()));
1019-
* ctx.subscribe(["700.HK", "AAPL.US"], [SubType.Quote], true);
1019+
* ctx.subscribe(["700.HK", "AAPL.US"], [SubType.Quote]);
10201020
* });
10211021
* ```
10221022
*/
1023-
subscribe(symbols: Array<string>, subTypes: Array<SubType>, isFirstPush: boolean): Promise<void>
1023+
subscribe(symbols: Array<string>, subTypes: Array<SubType>): Promise<void>
10241024
/**
10251025
* Unsubscribe
10261026
*
@@ -3044,7 +3044,11 @@ export declare const enum SecurityBoard {
30443044
/** Singapore Straits Index */
30453045
STI = 23,
30463046
/** SG Industry Board */
3047-
SGSector = 24
3047+
SGSector = 24,
3048+
/** S&P 500 Index */
3049+
SPXIndex = 25,
3050+
/** CBOE Volatility Index */
3051+
VIXIndex = 26
30483052
}
30493053

30503054
/** Security list category */

nodejs/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
},
2323
"homepage": "https://open.longportapp.com/en/",
2424
"devDependencies": {
25-
"@napi-rs/cli": "^3.0.3"
25+
"@napi-rs/cli": "^3.5.0"
2626
},
2727
"engines": {
2828
"node": ">= 10"
@@ -34,4 +34,4 @@
3434
"prepublishOnly": "napi prepublish -t npm",
3535
"version": "napi version"
3636
}
37-
}
37+
}

python/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ classifiers = [
1010
description = "A Python library for LongPort Open API"
1111
readme = "README.md"
1212
repository = "https://github.com/longportapp/openapi"
13-
requires-python = ">=3.7"
13+
requires-python = ">=3.8"
1414
dependencies = []
1515

1616
[license]

0 commit comments

Comments
 (0)