LongPort OpenAPI C++ SDK
Public Attributes | List of all members
longport::trade::StockPosition Struct Reference

Stock position. More...

#include <types.hpp>

Public Attributes

std::string symbol
 Stock code. More...
 
std::string symbol_name
 Stock name. More...
 
Decimal quantity
 The number of holdings. More...
 
Decimal available_quantity
 Available quantity. More...
 
std::string currency
 Currency. More...
 
Decimal cost_price
 
Market market
 Market. More...
 
std::optional< Decimalinit_quantity
 Initial position before market opening. More...
 

Detailed Description

Stock position.

Member Data Documentation

◆ available_quantity

Decimal longport::trade::StockPosition::available_quantity

Available quantity.

◆ cost_price

Decimal longport::trade::StockPosition::cost_price

Cost Price(According to the client's choice of average purchase or diluted cost)

◆ currency

std::string longport::trade::StockPosition::currency

Currency.

◆ init_quantity

std::optional<Decimal> longport::trade::StockPosition::init_quantity

Initial position before market opening.

◆ market

Market longport::trade::StockPosition::market

Market.

◆ quantity

Decimal longport::trade::StockPosition::quantity

The number of holdings.

◆ symbol

std::string longport::trade::StockPosition::symbol

Stock code.

◆ symbol_name

std::string longport::trade::StockPosition::symbol_name

Stock name.


The documentation for this struct was generated from the following file: