LongPort OpenAPI SDK
Candlestick
Class Candlestick
Candlestick
Index
Constructors
constructor
Accessors
close
open
low
high
volume
turnover
timestamp
trade
Session
Methods
to
String
to
JSON
Constructors
constructor
new
Candlestick
()
:
Candlestick
Returns
Candlestick
Accessors
close
get
close
()
:
Decimal
Close price
Returns
Decimal
open
get
open
()
:
Decimal
Open price
Returns
Decimal
low
get
low
()
:
Decimal
Low price
Returns
Decimal
high
get
high
()
:
Decimal
High price
Returns
Decimal
volume
get
volume
()
:
number
Volume
Returns
number
turnover
get
turnover
()
:
Decimal
Turnover
Returns
Decimal
timestamp
get
timestamp
()
:
Date
Timestamp
Returns
Date
trade
Session
get
tradeSession
()
:
TradeSession
Trade session
Returns
TradeSession
Methods
to
String
toString
()
:
string
Returns
string
to
JSON
toJSON
()
:
any
Returns
any
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Accessors
close
open
low
high
volume
turnover
timestamp
trade
Session
Methods
to
String
to
JSON
LongPort OpenAPI SDK
Config
Params
Create
Watchlist
Group
Delete
Watchlist
Group
Update
Watchlist
Group
Derivative
Type
Trade
Status
Trade
Session
Sub
Type
Trade
Direction
Option
Type
Option
Direction
Warrant
Type
Period
Adjust
Type
Security
Board
Sort
Order
Type
Warrant
Sort
By
Filter
Warrant
Expiry
Date
Filter
Warrant
In
Out
Bounds
Type
Warrant
Status
Securities
Update
Mode
Calc
Index
Security
List
Category
Trade
Sessions
Granularity
Estimate
Max
Purchase
Quantity
Options
Get
Cash
Flow
Options
Get
History
Executions
Options
Get
History
Orders
Options
Get
Today
Executions
Options
Get
Today
Orders
Options
Replace
Order
Options
Submit
Order
Options
Topic
Type
Order
Status
Order
Side
Order
Type
Order
Tag
Time
In
Force
Type
Trigger
Status
Outside
RTH
Commission
Free
Status
Deduction
Status
Charge
Category
Code
Balance
Type
Cash
Flow
Direction
Market
Language
Push
Candlestick
Mode
Config
Decimal
Http
Client
Quote
Context
Push
Quote
Event
Push
Depth
Event
Push
Brokers
Event
Push
Trades
Event
Push
Candlestick
Event
Subscription
Security
Static
Info
Pre
Post
Quote
Security
Quote
Option
Quote
Warrant
Quote
Depth
Security
Depth
Brokers
Security
Brokers
Participant
Info
Trade
Intraday
Line
Candlestick
Strike
Price
Info
Issuer
Info
Warrant
Info
Trading
Session
Info
Market
Trading
Session
Realtime
Quote
Push
Quote
Push
Depth
Push
Brokers
Push
Trades
Push
Candlestick
Market
Trading
Days
Capital
Flow
Line
Capital
Distribution
Capital
Distribution
Response
Watchlist
Group
Watchlist
Security
Security
Calc
Index
Security
Quote
Package
Detail
Market
Temperature
History
Market
Temperature
Response
Naive
Date
Time
Naive
Datetime
Trade
Context
Execution
Order
Order
History
Detail
Order
Charge
Fee
Order
Charge
Item
Order
Charge
Detail
Order
Detail
Push
Order
Changed
Submit
Order
Response
Cash
Info
Account
Balance
Cash
Flow
Fund
Positions
Response
Fund
Position
Channel
Fund
Position
Stock
Positions
Response
Stock
Position
Channel
Stock
Position
Margin
Ratio
Estimate
Max
Purchase
Quantity
Response
M
M
N
E
P
V
F
C
I
C
P
M
F
P
C
P
T
T
A
A
A
T
R
Candlestick