LongPort OpenAPI C SDK
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Data Fields
lb_trade_t Struct Reference

#include <longport.h>

Data Fields

const struct lb_decimal_tprice
 
int64_t volume
 
int64_t timestamp
 
const char * trade_type
 
enum lb_trade_direction_t direction
 
enum lb_trade_session_t trade_session
 

Detailed Description

Trade

Field Documentation

◆ direction

enum lb_trade_direction_t direction

Trade direction

◆ price

const struct lb_decimal_t* price

Price

◆ timestamp

int64_t timestamp

Time of trading

◆ trade_session

enum lb_trade_session_t trade_session

Trade session

◆ trade_type

const char* trade_type

Trade type

HK

  • * - Overseas trade
  • D - Odd-lot trade
  • M - Non-direct off-exchange trade
  • P - Late trade (Off-exchange previous day)
  • U - Auction trade
  • X - Direct off-exchange trade
  • Y - Automatch internalized
  • <empty string> - Automatch normal

US

  • <empty string> - Regular sale
  • A - Acquisition
  • B - Bunched trade
  • D - Distribution
  • F - Intermarket sweep
  • G - Bunched sold trades
  • H - Price variation trade
  • I - Odd lot trade
  • K - Rule 155 trde(NYSE MKT)
  • M - Market center close price
  • P - Prior reference price
  • Q - Market center open price
  • S - Split trade
  • V - Contingent trade
  • W - Average price trade
  • X - Cross trade
  • 1 - Stopped stock(Regular trade)

◆ volume

int64_t volume

Volume


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