Loading...
create_orderCreates a new trading order.
Can execute trades, potentially leading to financial loss.
amend_orderModifies an existing trading order.
Incorrect modifications can lead to unintended trades.
cancel_orderCancels a pending trading order.
Canceling the wrong order can have financial implications.
query_quotesRetrieves real-time or historical stock quotes.
Read-only operation, no side effects.
query_portfolioRetrieves real-time data about account assets and positions.
Read-only operation, no side effects.
The LongPort OpenAPI offers powerful trading and data access capabilities, but the ability to execute trades and access sensitive financial data introduces risk. Secure handling of API keys, access tokens, and adherence to best practices for secrets management are crucial. The availability of multiple SDKs can improve security if used correctly, but also increases the attack surface if vulnerabilities exist within the SDKs themselves.