Skip to content

Commit

Permalink
update qa
Browse files Browse the repository at this point in the history
  • Loading branch information
sunli829 committed May 18, 2024
1 parent 3732d2b commit df08a3f
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 1 deletion.
12 changes: 12 additions & 0 deletions docs/qa/quote.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,3 +114,15 @@ message ReconnectRequest {
```

- 开启夜盘行情后,拉取和推送接口都将可以在夜盘交易时段,获取到夜盘盘情。

## Q7:OpenApi SDK 中开启夜盘行情

- 從環境變數建立 `Config` 對象

設定環境變數 `LONGPORT_ENABLE_OVERNIGHT``true`

- 從建構函式建立 `Config` 對象

```python
config = Config(app_key="your_app_key", app_secret="your_app_secret", access_token="your_access_token", enable_overnight=True)
```
14 changes: 13 additions & 1 deletion i18n/en/docusaurus-plugin-content-docs/current/qa/quote.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ A:
- CN Market: 09:00:00 CST
- SG Market: 08:20:00 CST

## Q6: 如何获取夜盘行情
## Q6: How to enable Overnight quote

A:

Expand All @@ -114,3 +114,15 @@ message ReconnectRequest {
```

- After turning on the night trading quotations, both the pull and push interfaces will be able to obtain the night trading quotations during the night trading period.

## Q7:Enable Overnight quote in OpenApi SDK

- Create `Config` from environment variables

Set environment variable `LONGPORT_ENABLE_OVERNIGHT` to `true`

- Create `Config` object from constructor

```python
config = Config(app_key="your_app_key", app_secret="your_app_secret", access_token="your_access_token", enable_overnight=True)
```
12 changes: 12 additions & 0 deletions i18n/zh-HK/docusaurus-plugin-content-docs/current/qa/quote.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,3 +114,15 @@ message ReconnectRequest {
```

- 開啟夜盤行情後,拉取和推送接口都將可以在夜盤交易時段,取得到夜盤盤情。

## Q7:如何開啟夜盤行情

- Create `Config` from environment variables

Set environment variable `LONGPORT_ENABLE_OVERNIGHT` to `true`

- Create `Config` object from constructor

```python
config = Config(app_key="your_app_key", app_secret="your_app_secret", access_token="your_access_token", enable_overnight=True)
```

0 comments on commit df08a3f

Please sign in to comment.