Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
576 commits
Select commit Hold shift + click to select a range
34987dd
Update ci.yml
sunli829 Apr 18, 2024
0734811
Update ci.yml
sunli829 Apr 18, 2024
8a3f075
Update ci.yml
sunli829 Apr 18, 2024
0a939ed
Update ci.yml
sunli829 Apr 18, 2024
c6b9e12
Update ci.yml
sunli829 Apr 18, 2024
67caa6b
Update ci.yml
sunli829 Apr 18, 2024
db23a9d
Create CMakeLists.txt
sunli829 Apr 18, 2024
87b1cfc
update ci
sunli829 Apr 18, 2024
d2e9a3d
Update ci.yml
sunli829 Apr 18, 2024
0b5fca4
update ci
sunli829 Apr 18, 2024
4bdeb65
Update ci.yml
sunli829 Apr 18, 2024
3a1abec
Update release.yml
sunli829 Apr 18, 2024
e64dcae
Update release.yml
sunli829 Apr 18, 2024
30e3156
Update release.yml
sunli829 Apr 18, 2024
8fa388a
Update release.yml
sunli829 Apr 18, 2024
60de3ec
update ci
sunli829 Apr 19, 2024
b042720
Update release.yml
sunli829 Apr 19, 2024
e2bc0ad
Release 1.0.23
sunli829 Apr 19, 2024
cdaaa46
Update openapi.pyi
sunli829 Apr 26, 2024
dd7643d
add suppport enable overnight quote
sunli829 May 14, 2024
7045ccc
add suppport overnight order
sunli829 May 15, 2024
c6e4028
update ci
sunli829 May 15, 2024
30a9568
update c\src\trade_context\enum_types.rs
sunli829 May 15, 2024
6e1b26f
update ci
sunli829 May 15, 2024
f18dc11
Update context.rs
sunli829 May 15, 2024
71dd5a6
clippy clean
sunli829 May 15, 2024
81ec8ce
Update ci.yml
sunli829 May 16, 2024
3e474f7
Update ci.yml
sunli829 May 16, 2024
110f69e
Update ci.yml
sunli829 May 16, 2024
70d3fcb
add security_list
sunli829 May 17, 2024
5272451
Update docs.yml
sunli829 May 17, 2024
6230b00
Release 1.0.24
sunli829 May 17, 2024
c5726e1
Update FundPosition.java
sunli829 May 21, 2024
41bcb66
Release 1.0.25
sunli829 May 21, 2024
b89c680
Add issue templates
huacnlee May 31, 2024
3e74b38
Add GitHub Issue workflow
huacnlee May 31, 2024
fc701e8
Update context.rs
sunli829 Jun 6, 2024
9542c5f
Release 1.0.26
sunli829 Jun 8, 2024
7aaecfd
bump `pyo3` from `0.20.3` to `0.21.2`
sunli829 Jun 11, 2024
f5a4bbd
add Decimal::round_dp method
sunli829 Jun 11, 2024
5994ee4
Release 1.0.27
sunli829 Jun 11, 2024
05470a1
Remove `GitHub:` prefix from feishu notify.
huacnlee Jun 13, 2024
d90c86a
Avoid feishu notify twice.
huacnlee Jun 25, 2024
f353e09
Update serde_utils.rs
sunli829 Jul 3, 2024
27f90bb
add support for specify push candlestick mode
sunli829 Jul 11, 2024
5976295
add support for specify push candlestick mode 2
sunli829 Jul 11, 2024
8298c82
add support for specify push candlestick mode 3
sunli829 Jul 11, 2024
0a4aadd
Update CMakeLists.txt
sunli829 Jul 11, 2024
c8913fb
Update CMakeLists.txt
sunli829 Jul 11, 2024
79243df
Update Makefile.toml
sunli829 Jul 11, 2024
d6e4807
Release 1.0.28
sunli829 Jul 11, 2024
e239dff
fix: add missing field remark
sunfuze Jul 25, 2024
046ad48
remark can be null
sunfuze Jul 26, 2024
89a7e81
Merge pull request #49 from longportapp/fix-cpp-order-remark
sunli829 Jul 26, 2024
3b4cd4b
Release 1.0.29
sunli829 Jul 26, 2024
977900a
Update Cargo.toml
sunli829 Aug 20, 2024
2484b84
add buy_power field to AcccountBlanance
sunli829 Aug 21, 2024
f36aa81
Release 1.0.30
sunli829 Aug 21, 2024
bdc74af
update ci
sunli829 Aug 22, 2024
20c3b48
Release 1.0.31
sunli829 Aug 22, 2024
75413b1
update examples
Aug 26, 2024
a71f674
make Depth.price to optional
sunli829 Aug 28, 2024
db2d292
Release 1.0.32
sunli829 Aug 28, 2024
311df94
update ci
sunli829 Aug 29, 2024
998c31a
fix examples
sunli829 Sep 4, 2024
297e4c6
Update README.md, fix typo (#63)
wy-z Sep 8, 2024
bc250ac
add toJSON method to the JsObject
sunli829 Sep 17, 2024
4c74826
1.0.33
sunli829 Sep 17, 2024
3eb106a
Update ci.yml
sunli829 Sep 17, 2024
ce5b0a4
Update release.yml
sunli829 Sep 17, 2024
f262613
clippy clean
sunli829 Sep 17, 2024
37012c8
v1.0.34
sunli829 Sep 17, 2024
9930c36
Update release.yml
sunli829 Sep 17, 2024
84b0939
Update ci.yml
sunli829 Sep 17, 2024
84a44c7
Update release.yml
sunli829 Sep 17, 2024
8461c67
Update release.yml
sunli829 Sep 18, 2024
957023b
Update release.yml
sunli829 Sep 18, 2024
568e88b
Update release.yml
sunli829 Sep 18, 2024
ba48486
v1.0.35
sunli829 Sep 18, 2024
d053898
add support linux-x64-musl, linux-aarch64 for nodejs sdk
sunli829 Sep 23, 2024
4e39be9
v1.0.36
sunli829 Sep 23, 2024
9e02ebb
update ci
sunli829 Sep 23, 2024
383aec6
Update ci.yml
sunli829 Sep 23, 2024
6e6d970
Update ci.yml
sunli829 Sep 23, 2024
135cd62
Update package.json
sunli829 Sep 23, 2024
641dc9d
v1.0.37
sunli829 Sep 23, 2024
c807d63
java: HttpClient request support set headers
sunfuze Sep 23, 2024
f758936
Update package.json
sunli829 Sep 23, 2024
8b92a14
v1.0.38
sunli829 Sep 23, 2024
41b8776
fix format
sunfuze Sep 23, 2024
2aa157b
Merge pull request #68 from longportapp/feat-java-httpclient-headers
sunli829 Sep 23, 2024
8fd40ee
rustfmt
sunli829 Sep 23, 2024
45483e2
v1.0.39
sunli829 Sep 23, 2024
d421e84
add QuoteContnext.quote_package_details method
sunli829 Sep 24, 2024
e245578
print quote packages
sunli829 Sep 27, 2024
bc9fdb3
v1.0.40
sunli829 Sep 27, 2024
28f1bcf
Update openapi.pyi
sunli829 Oct 15, 2024
eda0443
v1.0.41
sunli829 Oct 15, 2024
62e6876
Update core.rs
sunli829 Oct 17, 2024
ec7336a
v1.0.42
sunli829 Oct 17, 2024
8906bc0
The quantity type in the trading API has changed from `int` to `Decim…
sunli829 Oct 9, 2024
de6f9a2
v2.0.0
sunli829 Oct 9, 2024
af1bb20
Returns the most recent historical candlesticks after subscribing to …
sunli829 Oct 22, 2024
de18d56
v2.0.1
sunli829 Oct 23, 2024
e01dd2a
Update openapi.pyi
sunli829 Oct 31, 2024
c3812c1
v2.0.2
sunli829 Oct 31, 2024
b887b72
Changed the `time` parameter of `Quote.history_candlesticks_by_offset…
sunli829 Nov 14, 2024
06dae4f
v2.0.3
sunli829 Nov 14, 2024
8046e4a
Add `LONGPORT_PRINT_QUOTE_PACKAGES` environment variable to enable pr…
sunli829 Nov 15, 2024
a5a0db2
v2.0.4
sunli829 Nov 15, 2024
6a93f13
Add Serialize/Deserialize to response types
sunli829 Nov 16, 2024
40c1d23
v2.0.5
sunli829 Nov 16, 2024
0dfb3cd
Update candlesticks rule
sunli829 Nov 14, 2024
e4f0777
fix parse symbol
sunli829 Nov 22, 2024
ab53209
Update CHANGELOG.md
sunli829 Nov 14, 2024
42bbd04
update js example
sunli829 Nov 25, 2024
c3ae6fa
v2.1.0
sunli829 Nov 20, 2024
6c29e64
Update markets.rs
sunli829 Dec 2, 2024
bf7e43b
Update openapi.pyi
sunli829 Dec 2, 2024
c835761
Update store.rs
sunli829 Dec 4, 2024
3c2b0e4
v2.1.1
sunli829 Dec 4, 2024
1ebd090
pinning maturin to 1.7.5
sunli829 Dec 4, 2024
94cb873
v2.1.2
sunli829 Dec 4, 2024
b91805c
pinning maturin to 1.7.4
sunli829 Dec 4, 2024
935c858
v2.1.3
sunli829 Dec 4, 2024
8a78fec
push orders
sunli829 Dec 16, 2024
83af8a3
v2.1.4
sunli829 Dec 16, 2024
c7cdb9c
Add `PushCandlestick.is_confirmed` field
sunli829 Dec 21, 2024
27ad637
v2.1.5
sunli829 Dec 21, 2024
11d86a4
add support for more candlesticks periods
sunli829 Dec 24, 2024
2c5108c
add PushQuote.current_volume, PushQuote.current_turnover
sunli829 Jan 3, 2025
4d4d450
Update decimal.cpp
T-can Dec 25, 2024
ce91b2d
= and %=
T-can Dec 25, 2024
ad37d91
Update decimal.hpp
T-can Dec 25, 2024
c4a8e56
Update CHANGELOG.md
sunli829 Jan 10, 2025
55f4fda
bump pyo3 from `0.22.5` to `0.23.4`
sunli829 Jan 14, 2025
fdef2a9
update python examples
sunli829 Jan 14, 2025
eccbae0
v2.1.6
sunli829 Jan 14, 2025
ea7253e
Update types.rs
sunli829 Jan 14, 2025
3a9b3da
v2.1.7
sunli829 Jan 14, 2025
01f310a
add log_path field to Config
sunli829 Jan 26, 2025
2a7e955
Update core.rs
sunli829 Jan 27, 2025
1cb6ba1
Update CHANGELOG.md
sunli829 Jan 27, 2025
22896d9
v2.1.8
sunli829 Jan 27, 2025
466a91f
add some logs
sunli829 Jan 31, 2025
4fa946b
v2.1.9
sunli829 Feb 3, 2025
125012c
Update lib.rs
sunli829 Feb 5, 2025
5f2707a
add drop context log
sunli829 Feb 5, 2025
00cf2fb
Update requirements.txt
sunli829 Feb 5, 2025
8950e9e
Update docs.yml
sunli829 Feb 5, 2025
35e0bf1
Update requirements.txt
sunli829 Feb 5, 2025
e5bd674
Update docs.yml
sunli829 Feb 5, 2025
e0802e1
update pydoc
sunli829 Feb 5, 2025
52f7644
v2.1.10
sunli829 Feb 5, 2025
3713ed2
show more details on http error
sunli829 Feb 5, 2025
69b3fec
fix #140
sunli829 Feb 18, 2025
6f60444
v2.1.11
sunli829 Feb 18, 2025
f0bc770
add Overnight to TradeSession type
sunli829 Feb 25, 2025
0e112bb
v2.1.12
sunli829 Feb 25, 2025
c26567b
add support extended hours candlesticks
sunli829 Mar 2, 2025
4c91c88
add longport-mcp
sunli829 Mar 19, 2025
9e12628
update links
sunli829 Mar 20, 2025
7fec603
Update README.md
sunli829 Mar 20, 2025
913fe8b
add support extended hours candlesticks 2
sunli829 Mar 24, 2025
c886897
add support extended hours candlesticks 3
sunli829 Mar 25, 2025
c177bfa
Add close-slate-issues.yml
huacnlee Mar 26, 2025
0b460b5
Update close-slate-issues.yml
huacnlee Mar 26, 2025
1236758
Update close-slate-issues.yml
huacnlee Mar 26, 2025
78058cb
Update close-slate-issues.yml
huacnlee Mar 26, 2025
19a0e58
add support extended hours candlesticks 4
sunli829 Mar 27, 2025
6416fb5
add support extended hours candlesticks 5
sunli829 Mar 27, 2025
8fe075a
Update docs.yml
sunli829 Mar 28, 2025
4248060
Update README.md
huacnlee Mar 31, 2025
4f4c739
edition 2024
sunli829 Apr 15, 2025
1328ee7
Update ci.yml
sunli829 Apr 15, 2025
6cdf1ab
Update main.rs
sunli829 Apr 15, 2025
b76c104
Update ci.yml
sunli829 Apr 15, 2025
07ebb57
bump pyo3 from `0.23.4` to `0.24.1`
sunli829 Apr 16, 2025
e17a910
Add MCP Install script and Release MCP CI.
huacnlee Apr 22, 2025
8e62466
Update MCP install script.
huacnlee Apr 22, 2025
25785f2
Update MCP release to upload artifact
huacnlee Apr 22, 2025
fc4e7e6
Fix MCP release upload. (#188)
huacnlee Apr 22, 2025
884c3aa
mcp: 0.2.0
sunli829 Apr 23, 2025
e08a534
mcp: Update README to add doc. (#189)
huacnlee Apr 23, 2025
041993a
add market temperature api
sunli829 May 6, 2025
9945412
add market temperature api 2
sunli829 May 6, 2025
8dda726
add market temperature api 3
sunli829 May 6, 2025
0471d89
add market temperature api 4
sunli829 May 6, 2025
2e7ffa3
mcp: Add `readonly` option to prevent submitting orders to the exchange.
sunli829 May 7, 2025
bc40cd8
mcp: Add support market temperature api.
sunli829 May 7, 2025
8cebd7d
Update README.md
sunli829 May 7, 2025
b88a7e4
add support use environment variable `LONGPORT_LANGUAGE` to set the r…
sunli829 May 7, 2025
398765d
Update README.md
sunli829 May 7, 2025
09cc26e
rename TradeSession::Normal to Intraday
sunli829 May 7, 2025
5b66ed3
clippy clean
sunli829 May 9, 2025
86a6c51
java: add QuoteContext.getCapitalDistribution method
sunli829 May 10, 2025
40b5d1e
mcp 部分参数类型改为Decimal,方便大模型调用 (#206)
bugkiwi May 10, 2025
51afbb8
Update CHANGELOG.md
sunli829 May 13, 2025
b912283
Update CHANGELOG.md
sunli829 May 13, 2025
1343a58
fix #208
sunli829 May 13, 2025
d6ac952
Update CHANGELOG.md
sunli829 May 13, 2025
1f45fb6
Update release.yml
sunli829 May 13, 2025
1c3a585
Update docs.html
sunli829 May 13, 2025
ce72651
Update release.yml
sunli829 May 13, 2025
ec0ac91
Update CHANGELOG.md
sunli829 May 13, 2025
6f99207
v3.0.1
sunli829 May 13, 2025
577d720
Update types.rs
sunli829 May 13, 2025
500e703
v3.0.2
sunli829 May 13, 2025
0ab00de
fix #213
sunli829 May 14, 2025
b4ed453
v3.0.3
sunli829 May 14, 2025
875c5fe
java-sdk: add `QuoteContext.getMarketTemperature` and `QuoteContext.g…
sunli829 May 15, 2025
4417abe
v3.0.4
sunli829 May 15, 2025
e897ec8
fix: history_market_temperature
sunli829 May 29, 2025
91ebc63
v3.0.5
sunli829 May 29, 2025
a02e1c6
fix: Add missing types register (#226)
LokiSharp Jun 2, 2025
6f78f3d
v3.0.6
sunli829 Jun 2, 2025
fe2fd9c
Fix doc LONGPORT_ACCESS_TOKEN typo (#228)
linchengfu Jun 3, 2025
76d1cad
fix(nodejs): correct condition for disabling quote package printing (…
tsui66 Jun 3, 2025
a1a4737
Update README.md
sunli829 Jun 4, 2025
3065c35
add AccountBalance.frozen_transaction_fees
sunli829 Jun 4, 2025
97ad82f
rustfmt
sunli829 Jun 4, 2025
af94b11
fix tests
sunli829 Jun 4, 2025
d50261d
v3.0.7
sunli829 Jun 9, 2025
88c6e6d
Update issue-notify.yml
huacnlee Jul 14, 2025
2dc3df6
Update issue-notify.yml
huacnlee Jul 14, 2025
766c95b
Update issue-notify.yml
huacnlee Jul 14, 2025
da19512
Update issue-notify.yml
huacnlee Jul 14, 2025
03e75d0
Update issue-notify.yml to remove feishu.
huacnlee Jul 14, 2025
3abb97c
fix: subscribe candlesticks with `Period::Day`
sunli829 Jul 15, 2025
64224b5
v3.0.8
sunli829 Jul 15, 2025
daf6be0
update ci
sunli829 Jul 16, 2025
c127635
clippy clean
sunli829 Jul 16, 2025
b751b9d
A connection limit exceeded error occurred while creating an OTP.
sunli829 Jul 18, 2025
2bf4153
Update client.rs
sunli829 Jul 22, 2025
2be3eda
refactor longport_candlesticks
sunli829 Jul 22, 2025
b80766c
.
sunli829 Jul 23, 2025
ef4a461
Add option_quote mcp tool (#269)
xuzuodong Jul 23, 2025
3740cf9
v3.0.9
sunli829 Jul 24, 2025
47f410f
.
sunli829 Jul 25, 2025
a58cb1d
python: fix unable to import SecurityBoard
sunli829 Jul 27, 2025
69c0acb
v3.0.10
sunli829 Jul 27, 2025
965e8ee
update longport-candlesticks
sunli829 Jul 31, 2025
c96cef2
v3.0.11
sunli829 Aug 1, 2025
c203628
add `trade_session` for query all session intraday.
sunli829 Aug 8, 2025
d71fc6d
update ci
sunli829 Aug 8, 2025
8ea6515
update ci
sunli829 Aug 8, 2025
d7c58d4
add `Market.Crypto`
sunli829 Aug 9, 2025
e614934
.
sunli829 Aug 14, 2025
f0d4394
v3.0.12
sunli829 Aug 8, 2025
3c2c13c
Add MCP Catalog Trust Score badge
Matvey-Kuk Aug 15, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
BasedOnStyle: Mozilla
28 changes: 28 additions & 0 deletions .github/ISSUE_TEMPLATE/bug-与提问.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
name: Bug 与提问
about: 反馈 OpenAPI 使用过程中的问题
title: ''
labels: ''
assignees: ''

---

**问题描述**

为了减少来回反复沟通,请尽量描述更多问题的细节。

**代码例子**

```py

```

**错误信息或结果截图**

如果可以,请给出一些执行的结果截图,最好给完整截图,避免关键信息遗漏(请注意保护你的 Access Token)

**你的环境信息**

- 操作系统: [比如: macOS / Windows]
- 开发语言: Python / Go / Rust / Node.js / Java
- SDK 版本号:
47 changes: 47 additions & 0 deletions .github/misc/templates/docs.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>LongPort OpenAPI SDK Documents</title>
<style type="text/css">
hr {
margin-bottom: 20px;
}
a {
margin: 20px;
font-size: 20pt;
}
.lang_block {
margin: 20px;
}
.lang-title {
font-size: 26pt;
}
</style>
</head>

<body>
<h1>LongPort OpenAPI SDK Documents</h1>
<hr />
<div class="lang_block">
<a href="rust/longport/index.html">Rust</a>
</div>
<div class="lang_block">
<a href="python/index.html">Python</a>
</div>
<div class="lang_block">
<a href="nodejs/index.html">Node.js</a>
</div>
<div class="lang_block">
<a href="java/index.html">Java</a>
</div>
<div class="lang_block">
<a href="c/index.html">C</a>
</div>
<div class="lang_block">
<a href="cpp/index.html">C++</a>
</div>
</body>
</html>
15 changes: 15 additions & 0 deletions .github/misc/update_jssdk_version.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { readFileSync, writeFileSync } from 'fs';
import { join } from 'path';

function update_version(path, version) {
let data = readFileSync(join(path, 'package.json'), { encoding: 'utf8' });
let json = JSON.parse(data);

json.version = version;

let new_data = JSON.stringify(json, null, 2);
writeFileSync(join(path, 'package.json'), new_data, { encoding: 'utf8' });
}

let version = process.argv.splice(2)[0];
update_version('./nodejs', version);
82 changes: 82 additions & 0 deletions .github/workflows/check_docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
name: Docs
on:
push:
branches:
- main

jobs:
rust:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: rust-docs
- name: Build Rust doc
run: cargo doc -p longport --no-deps

nodejs:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-node@v3
with:
node-version: 20
check-latest: true
- name: Build Node.js docs
run: |
npm install -g typedoc
typedoc
working-directory: ./nodejs

java:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-java@v4
with:
java-version: "11"
distribution: "temurin"
- name: Build Java docs
working-directory: ./java/javasrc
run: mvn javadoc:javadoc

c:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Install Doxygen
run: |
sudo apt-get update
sudo apt-get install -y doxygen
- name: Build C docs
working-directory: ./c
run: doxygen

cpp:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Install Doxygen
run: |
sudo apt-get update
sudo apt-get install -y doxygen
- name: Build C++ docs
working-directory: ./cpp
run: doxygen
Loading