Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
90 changes: 47 additions & 43 deletions docs/en/docs/qa/trade.md
Original file line number Diff line number Diff line change
@@ -1,43 +1,47 @@
---
title: Trade
sidebar_position: 2
---

## Q1: What types of orders are supported?

Both paper and live accounts support regular Limit orders, Market orders, and Conditional orders (such as Buy if touched, Sell if touched, etc.), but do not currently support Attached orders and Grid orders.

## Q2: What are the trading hours for paper accounts?

Trading hours for paper accounts for Hong Kong stocks are the same as in the real environment. Trading pre & post market is not supported for U.S. stocks in the paper environment, only regular trading hours are supported.

## Q3: How can I trade overnight sessions for U.S. stocks?

To place orders for overnight trading, you can specify overnight trading by passing the OVERNIGHT value to the `outside_rth` parameter in the order placement API.

## Q4: What are the trading rules for paper accounts?

Paper accounts currently support trading in Hong Kong and U.S. stocks, ETFs, Hong Kong warrants, and U.S. options. Short selling is supported for U.S. stocks. However, OTC trading and pre & post market trading are not supported in paper accounts.

Trades in the paper environment are matched based on the bid-ask spread from the real market. If the buy order price is higher than or equal to the ask price and the sell order price is lower than or equal to the bid price, a trade can be executed. Market orders are matched by default.

## Q5: How can I reset the funds in my paper account?

Manual resetting of demo funds is not supported at the moment. If needed, please contact your customer service or account manager for offline processing.

## Q6: After placing orders through the OpenAPI, how can I view them?

After placing orders via the OpenAPI, you can view them through any of the following:

- **Order inquiry API**: Call the API to query real-time order status
- **WebSocket push**: Subscribe to trade push events to receive order updates in real time
- **CLI**: Use the [Longbridge CLI](/docs/cli) to query from the command line, e.g. `longbridge orders`
- **App / PC**: View orders and their statuses directly in the terminal products

## Q7: How can I know if my account has sufficient funds for trading?

You can use the trading API `/v1/trade/estimate/buy_limit` to estimate the available cash & margin buying power, and short selling quantity in your account. Due to the complexity of risk control requirements, it's not recommended to calculate the tradable quantity manually.

## Q8: What does it mean when the order placement API returns "User authentication failed"?

This error usually indicates that the user does not have permission for the corresponding trading operation, such as options trading or short selling U.S. stocks. You can complete the permission opening process guided by the order placement in the app. After obtaining the necessary permissions, you can continue trading or performing other operations through OpenAPI.
---
title: Trade
sidebar_position: 2
---

## Q1: What types of orders are supported?

Both paper and live accounts support regular Limit orders, Market orders, and Conditional orders (such as Buy if touched, Sell if touched, etc.), but do not currently support Attached orders and Grid orders.

## Q2: What are the trading hours for paper accounts?

Trading hours for paper accounts for Hong Kong stocks are the same as in the real environment. Trading pre & post market is not supported for U.S. stocks in the paper environment, only regular trading hours are supported.

## Q3: How can I trade overnight sessions for U.S. stocks?

To place orders for overnight trading, you can specify overnight trading by passing the OVERNIGHT value to the `outside_rth` parameter in the order placement API.

## Q4: What are the trading rules for paper accounts?

Paper accounts currently support trading in Hong Kong and U.S. stocks, ETFs, Hong Kong warrants, and U.S. options. Short selling is supported for U.S. stocks. However, OTC trading and pre & post market trading are not supported in paper accounts.

Trades in the paper environment are matched based on the bid-ask spread from the real market. If the buy order price is higher than or equal to the ask price and the sell order price is lower than or equal to the bid price, a trade can be executed. Market orders are matched by default.

## Q5: How can I reset the funds in my paper account?

Manual resetting of demo funds is not supported at the moment. If needed, please contact your customer service or account manager for offline processing.

## Q6: After placing orders through the OpenAPI, how can I view them?

After placing orders via the OpenAPI, you can view them through any of the following:

- **Order inquiry API**: Call the API to query real-time order status
- **WebSocket push**: Subscribe to trade push events to receive order updates in real time
- **CLI**: Use the [Longbridge CLI](/docs/cli) to query from the command line, e.g. `longbridge orders`
- **App / PC**: View orders and their statuses directly in the terminal products

## Q7: How can I know if my account has sufficient funds for trading?

You can use the trading API `/v1/trade/estimate/buy_limit` to estimate the available cash & margin buying power, and short selling quantity in your account. Due to the complexity of risk control requirements, it's not recommended to calculate the tradable quantity manually.

## Q8: What does it mean when the order placement API returns "User authentication failed"?

This error usually indicates that the user does not have permission for the corresponding trading operation, such as options trading or short selling U.S. stocks. You can complete the permission opening process guided by the order placement in the app. After obtaining the necessary permissions, you can continue trading or performing other operations through OpenAPI.

## Q9: Does U.S. options trading support pre-market trading?

Pre-market options trading is not currently supported. We are planning to add this feature, including multi-leg options, which will be released together. We will update the documentation once it becomes available.
90 changes: 47 additions & 43 deletions docs/zh-CN/docs/qa/trade.md
Original file line number Diff line number Diff line change
@@ -1,43 +1,47 @@
---
title: 交易相关
sidebar_position: 2
---

## Q1: 支持哪些订单类型?

模拟账户和真实账户均支持普通限价单、市价单及到价买入、到价卖出等条件订单,暂不支持附加订单及网格订单。

## Q2: 模拟账户交易时间有哪些?

模拟账户港股时间与真实环境相同,美股暂未支持盘前盘后交易,仅支持常规交易时段模拟撮合。

## Q3: 如何进美股夜盘交易?

委托下单接口通过 `outside_rth` 参数传递 [OVERNIGHT](/docs/trade/order/submit#parameters) 枚举即为指定夜盘交易的订单。

## Q4: 模拟账户下的交易规则?

模拟账户目前支持港美股股票、ETF、港股轮证、美股期权交易,其中美股支持股票做空。美股 OTC、盘前盘后交易在模拟账号下暂未支持。

模拟交易参考真实市场买卖摆盘进行撮合,即当委托买入价高于等于摆盘卖一价、委托卖出价低于等于摆盘买一价,即可撮合成交,市价单默认均可成交。

## Q5: 如何重置模拟账户资金?

暂不支持用户手动重置模拟资金,如有需求可联系您的客服或客户经理,进行线下处理。

## Q6: 通过 OpenAPI 下单后,我如何看到订单?

经 OpenAPI 委托订单后,可通过以下方式查看订单:

- **订单查询接口**:调用 API 查询订单实时状态
- **WebSocket 推送**:订阅交易推送,实时接收订单更新
- **CLI**:通过 [Longbridge CLI](/docs/cli) 在命令行查询,例如 `longbridge orders`
- **App / PC**:直接在终端产品中查看对应账户下的订单及其状态

## Q7: 如何知道账户资金是否足够交易?

可调用交易类接口 `/v1/trade/estimate/buy_limit` 获取账户现金可买、融资可买及可卖空的数量,因系统风控要求逻辑复杂,不建议自己计算可交易数量。

## Q8: 下单接口返回“用户认证失败”什么意思?

通常是对应交易业务的权限暂未开通,例如期权、美股卖空等。可通过 App 委托挂单引导的权限开通流程,完成权限开通后,继续通过 OpenAPI 完成交易或其他操作。
---
title: 交易相关
sidebar_position: 2
---

## Q1: 支持哪些订单类型?

模拟账户和真实账户均支持普通限价单、市价单及到价买入、到价卖出等条件订单,暂不支持附加订单及网格订单。

## Q2: 模拟账户交易时间有哪些?

模拟账户港股时间与真实环境相同,美股暂未支持盘前盘后交易,仅支持常规交易时段模拟撮合。

## Q3: 如何进美股夜盘交易?

委托下单接口通过 `outside_rth` 参数传递 [OVERNIGHT](/docs/trade/order/submit#parameters) 枚举即为指定夜盘交易的订单。

## Q4: 模拟账户下的交易规则?

模拟账户目前支持港美股股票、ETF、港股轮证、美股期权交易,其中美股支持股票做空。美股 OTC、盘前盘后交易在模拟账号下暂未支持。

模拟交易参考真实市场买卖摆盘进行撮合,即当委托买入价高于等于摆盘卖一价、委托卖出价低于等于摆盘买一价,即可撮合成交,市价单默认均可成交。

## Q5: 如何重置模拟账户资金?

暂不支持用户手动重置模拟资金,如有需求可联系您的客服或客户经理,进行线下处理。

## Q6: 通过 OpenAPI 下单后,我如何看到订单?

经 OpenAPI 委托订单后,可通过以下方式查看订单:

- **订单查询接口**:调用 API 查询订单实时状态
- **WebSocket 推送**:订阅交易推送,实时接收订单更新
- **CLI**:通过 [Longbridge CLI](/docs/cli) 在命令行查询,例如 `longbridge orders`
- **App / PC**:直接在终端产品中查看对应账户下的订单及其状态

## Q7: 如何知道账户资金是否足够交易?

可调用交易类接口 `/v1/trade/estimate/buy_limit` 获取账户现金可买、融资可买及可卖空的数量,因系统风控要求逻辑复杂,不建议自己计算可交易数量。

## Q8: 下单接口返回"用户认证失败"什么意思?

通常是对应交易业务的权限暂未开通,例如期权、美股卖空等。可通过 App 委托挂单引导的权限开通流程,完成权限开通后,继续通过 OpenAPI 完成交易或其他操作。

## Q9: 美股期权交易是否支持盘前交易?

盘前期权暂不支持,目前正在规划中。包括多腿期权也会一起推出,后续推出后我们会更新文档。
6 changes: 5 additions & 1 deletion docs/zh-HK/docs/qa/trade.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ sidebar_position: 2

您可以調用交易類接口 `/v1/trade/estimate/buy_limit` 以獲取帳戶現金可買、融資可買及可賣空的數量,因系統風控要求逻複雜,不建議自行計算可交易數量。

## Q8: 下單接口返回用戶認證失敗是什麼意思?
## Q8: 下單接口返回"用戶認證失敗"是什麼意思?

通常表示對應交易業務的權限暫未開通,例如期權、美股賣空等。您可通過 App 委託掛單引導的權限開通流程,完成權限開通後,可繼續通過 OpenAPI 完成交易或其他操作。

## Q9: 美股期權交易是否支持盤前交易?

盤前期權暫不支持,目前正在規劃中。包括多腿期權也會一起推出,後續推出後我們會更新文檔。
Loading