12 #define LB_SUBFLAGS_QUOTE 1
17 #define LB_SUBFLAGS_DEPTH 2
22 #define LB_SUBFLAGS_BROKER 4
27 #define LB_SUBFLAGS_TRADE 8
32 #define LB_DERIVATIVE_TYPE_OPTION 1
37 #define LB_DERIVATIVE_TYPE_WARRANT 2
42 #define LB_WATCHLIST_GROUP_NAME 1
47 #define LB_WATCHLIST_GROUP_SECURITIES 2
3660 const char *app_secret,
3661 const char *access_token,
3662 const char *http_url,
3663 const char *quote_ws_url,
3664 const char *trade_ws_url,
3666 bool enable_overight,
3695 const char *app_key,
3696 const char *app_secret,
3697 const char *access_token);
3726 const char *request_body,
3808 const char *
const *symbols,
3809 uintptr_t num_symbols,
3819 const char *
const *symbols,
3820 uintptr_t num_symbols,
3854 const char *
const *symbols,
3855 uintptr_t num_symbols,
3863 const char *
const *symbols,
3864 uintptr_t num_symbols,
3872 const char *
const *symbols,
3873 uintptr_t num_symbols,
3881 const char *
const *symbols,
3882 uintptr_t num_symbols,
3994 uintptr_t num_warrant_type,
3995 const int32_t *issuer,
3996 uintptr_t num_issuer,
3998 uintptr_t num_expiry_date,
4000 uintptr_t num_price_type,
4002 uintptr_t num_status,
4043 const char *
const *symbols,
4044 uintptr_t num_symbols,
4046 uintptr_t num_indexes,
4089 const char *
const *symbols,
4090 uintptr_t num_symbols,
4179 uintptr_t num_topics,
4185 uintptr_t num_topics,
4253 const char *order_id,
4261 const char *currency,
4307 const char *order_id,
struct lb_push_quote_t lb_push_quote_t
struct lb_subscription_t lb_subscription_t
void lb_quote_context_history_candlesticks_by_date(const struct lb_quote_context_t *ctx, const char *symbol, enum lb_period_t period, enum lb_adjust_type_t adjust_type, const struct lb_date_t *start, const struct lb_date_t *end, lb_async_callback_t callback, void *userdata)
void(* lb_trades_callback_t)(const struct lb_quote_context_t *, const struct lb_push_trades_t *, void *)
Definition: longport.h:1450
lb_trade_session_t
Definition: longport.h:942
@ TradeSessionPre
Definition: longport.h:950
@ TradeSessionOvernight
Definition: longport.h:958
@ TradeSessionPost
Definition: longport.h:954
@ TradeSessionNormal
Definition: longport.h:946
struct lb_decimal_t lb_decimal_t
Definition: longport.h:1180
void lb_quote_context_trades(const struct lb_quote_context_t *ctx, const char *symbol, uintptr_t count, lb_async_callback_t callback, void *userdata)
uintptr_t lb_trade_context_ref_count(const struct lb_trade_context_t *ctx)
void lb_trade_context_release(const struct lb_trade_context_t *ctx)
struct lb_decimal_t * lb_decimal_from_double(double value)
void lb_quote_context_set_on_brokers(const struct lb_quote_context_t *ctx, lb_brokers_callback_t callback, void *userdata, lb_free_userdata_func_t free_userdata)
void lb_quote_context_realtime_candlesticks(const struct lb_quote_context_t *ctx, const char *symbol, enum lb_period_t period, uintptr_t count, lb_async_callback_t callback, void *userdata)
lb_warrant_sort_by_t
Definition: longport.h:1036
@ WarrantSortByStrikePrice
Definition: longport.h:1064
@ WarrantSortByLowerStrikePrice
Definition: longport.h:1072
@ WarrantSortByConversionRatio
Definition: longport.h:1116
@ WarrantSortByOutstandingQuantity
Definition: longport.h:1076
@ WarrantSortByPremium
Definition: longport.h:1084
@ WarrantSortByLeverageRatio
Definition: longport.h:1112
@ WarrantSortByCallPrice
Definition: longport.h:1100
@ WarrantSortByChangeValue
Definition: longport.h:1048
@ WarrantSortByBalancePoint
Definition: longport.h:1120
@ WarrantSortByImpliedVolatility
Definition: longport.h:1092
@ WarrantSortByVolume
Definition: longport.h:1052
@ WarrantSortByToCallPrice
Definition: longport.h:1104
@ WarrantSortByItmOtm
Definition: longport.h:1088
@ WarrantSortByTurnover
Definition: longport.h:1056
@ WarrantSortByExpiryDate
Definition: longport.h:1060
@ WarrantSortByOutstandingRatio
Definition: longport.h:1080
@ WarrantSortByChangeRate
Definition: longport.h:1044
@ WarrantSortByEffectiveLeverage
Definition: longport.h:1108
@ WarrantSortByUpperStrikePrice
Definition: longport.h:1068
@ WarrantSortByStatus
Definition: longport.h:1124
@ WarrantSortByDelta
Definition: longport.h:1096
@ WarrantSortByLastDone
Definition: longport.h:1040
double lb_decimal_to_double(const struct lb_decimal_t *value)
void lb_decimal_add(struct lb_decimal_t *a, const struct lb_decimal_t *b)
struct lb_realtime_quote_t lb_realtime_quote_t
struct lb_estimate_max_purchase_quantity_options_t lb_estimate_max_purchase_quantity_options_t
void lb_decimal_neg(struct lb_decimal_t *value)
void lb_quote_context_option_chain_info_by_date(const struct lb_quote_context_t *ctx, const char *symbol, const struct lb_date_t *expiry_date, lb_async_callback_t callback, void *userdata)
lb_sort_order_type_t
Definition: longport.h:878
@ SortOrderDescending
Definition: longport.h:886
@ SortOrderAscending
Definition: longport.h:882
lb_cash_flow_direction_t
Definition: longport.h:254
@ CashFlowDirectionOut
Definition: longport.h:262
@ CashFlowDirectionUnknown
Definition: longport.h:258
@ CashFlowDirectionIn
Definition: longport.h:266
void lb_decimal_cos(struct lb_decimal_t *value)
struct lb_time_t lb_time_t
uintptr_t lb_quote_context_ref_count(const struct lb_quote_context_t *ctx)
struct lb_get_today_executions_options_t lb_get_today_executions_options_t
bool lb_decimal_gte(const struct lb_decimal_t *a, const struct lb_decimal_t *b)
struct lb_security_static_info_t lb_security_static_info_t
lb_outside_rth_t
Definition: longport.h:662
@ OutsideRTHOnly
Definition: longport.h:670
@ OutsideRTHOvernight
Definition: longport.h:678
@ OutsideRTHUnknown
Definition: longport.h:666
@ OutsideRTHAnyTime
Definition: longport.h:674
void lb_quote_context_subscrptions(const struct lb_quote_context_t *ctx, lb_async_callback_t callback, void *userdata)
void lb_http_result_free(struct lb_http_result_t *http_result)
int64_t lb_quote_context_member_id(const struct lb_quote_context_t *ctx)
void(* lb_candlestick_callback_t)(const struct lb_quote_context_t *, const struct lb_push_candlestick_t *, void *)
Definition: longport.h:1506
struct lb_config_t lb_config_t
Definition: longport.h:1178
void lb_decimal_trunc(struct lb_decimal_t *value)
lb_deduction_status_t
Definition: longport.h:316
@ DeductionStatusNoData
Definition: longport.h:328
@ DeductionStatusDone
Definition: longport.h:336
@ DeductionStatusNone
Definition: longport.h:324
@ DeductionStatusPending
Definition: longport.h:332
@ DeductionStatusUnknown
Definition: longport.h:320
void(* lb_brokers_callback_t)(const struct lb_quote_context_t *, const struct lb_push_brokers_t *, void *)
Definition: longport.h:1367
void lb_quote_context_delete_watchlist_group(const struct lb_quote_context_t *ctx, int64_t id, bool purge, lb_async_callback_t callback, void *userdata)
void lb_decimal_ceil(struct lb_decimal_t *value)
lb_trade_direction_t
Definition: longport.h:924
@ TradeDirectionNeutral
Definition: longport.h:928
@ TradeDirectionUp
Definition: longport.h:936
@ TradeDirectionDown
Definition: longport.h:932
lb_period_t
Definition: longport.h:684
@ PeriodMin15
Definition: longport.h:700
@ PeriodYear
Definition: longport.h:724
@ PeriodMin5
Definition: longport.h:696
@ PeriodMin1
Definition: longport.h:692
@ PeriodMin60
Definition: longport.h:708
@ PeriodDay
Definition: longport.h:712
@ PeriodWeek
Definition: longport.h:716
@ PeriodUnknown
Definition: longport.h:688
@ PeriodMonth
Definition: longport.h:720
@ PeriodMin30
Definition: longport.h:704
void lb_quote_context_capital_distribution(const struct lb_quote_context_t *ctx, const char *symbol, lb_async_callback_t callback, void *userdata)
void lb_error_free(struct lb_error_t *error)
void lb_decimal_erf(struct lb_decimal_t *value)
void lb_decimal_normalize(struct lb_decimal_t *value)
lb_trade_status_t
Definition: longport.h:964
@ TradeStatusCodeMoved
Definition: longport.h:988
@ TradeStatusWarrantPrepareList
Definition: longport.h:1004
@ TradeStatusDelisted
Definition: longport.h:976
@ TradeStatusFuse
Definition: longport.h:980
@ TradeStatusNormal
Definition: longport.h:968
@ TradeStatusPrepareList
Definition: longport.h:984
@ TradeStatusSuspendTrade
Definition: longport.h:1008
@ TradeStatusHalted
Definition: longport.h:972
@ TradeStatusToBeOpened
Definition: longport.h:992
@ TradeStatusSplitStockHalts
Definition: longport.h:996
@ TradeStatusExpired
Definition: longport.h:1000
struct lb_capital_flow_line_t lb_capital_flow_line_t
struct lb_fund_position_t lb_fund_position_t
void lb_quote_context_calc_indexes(const struct lb_quote_context_t *ctx, const char *const *symbols, uintptr_t num_symbols, const enum lb_calc_index_t *indexes, uintptr_t num_indexes, lb_async_callback_t callback, void *userdata)
struct lb_replace_order_options_t lb_replace_order_options_t
void lb_config_free(struct lb_config_t *config)
void lb_quote_context_release(const struct lb_quote_context_t *ctx)
struct lb_quote_package_detail_t lb_quote_package_detail_t
struct lb_push_order_changed_t lb_push_order_changed_t
void lb_quote_context_update_watchlist_group(const struct lb_quote_context_t *ctx, const struct lb_update_watchlist_group_t *req, lb_async_callback_t callback, void *userdata)
struct lb_quote_context_t lb_quote_context_t
Definition: longport.h:1194
struct lb_order_history_detail_t lb_order_history_detail_t
struct lb_market_trading_days_t lb_market_trading_days_t
bool lb_decimal_eq(const struct lb_decimal_t *a, const struct lb_decimal_t *b)
void lb_decimal_abs(struct lb_decimal_t *value)
struct lb_warrant_quote_t lb_warrant_quote_t
lb_market_t
Definition: longport.h:396
@ MarketCN
Definition: longport.h:412
@ MarketHK
Definition: longport.h:408
@ MarketUnknown
Definition: longport.h:400
@ MarketSG
Definition: longport.h:416
@ MarketUS
Definition: longport.h:404
void(* lb_quote_callback_t)(const struct lb_quote_context_t *, const struct lb_push_quote_t *, void *)
Definition: longport.h:1267
struct lb_market_trading_session_t lb_market_trading_session_t
lb_filter_warrant_in_out_bounds_type_t
Definition: longport.h:364
@ WarrantInOutBoundsType_Out
Definition: longport.h:372
@ WarrantInOutBoundsType_In
Definition: longport.h:368
void lb_quote_context_set_on_candlestick(const struct lb_quote_context_t *ctx, lb_candlestick_callback_t callback, void *userdata, lb_free_userdata_func_t free_userdata)
struct lb_warrant_info_t lb_warrant_info_t
struct lb_fund_position_channel_t lb_fund_position_channel_t
void lb_trade_context_submit_order(const struct lb_trade_context_t *ctx, const struct lb_submit_order_options_t *opts, lb_async_callback_t callback, void *userdata)
void lb_trade_context_history_orders(const struct lb_trade_context_t *ctx, const struct lb_get_history_orders_options_t *opts, lb_async_callback_t callback, void *userdata)
struct lb_order_t lb_order_t
struct lb_stock_position_t lb_stock_position_t
void lb_trade_context_estimate_max_purchase_quantity(const struct lb_trade_context_t *ctx, const struct lb_estimate_max_purchase_quantity_options_t *opts, lb_async_callback_t callback, void *userdata)
void lb_quote_context_unsubscribe(const struct lb_quote_context_t *ctx, const char *const *symbols, uintptr_t num_symbols, uint8_t sub_types, lb_async_callback_t callback, void *userdata)
void(* lb_free_userdata_func_t)(void *)
Definition: longport.h:1219
struct lb_submit_order_options_t lb_submit_order_options_t
void lb_quote_context_realtime_depth(const struct lb_quote_context_t *ctx, const char *symbol, lb_async_callback_t callback, void *userdata)
void lb_quote_context_static_info(const struct lb_quote_context_t *ctx, const char *const *symbols, uintptr_t num_symbols, lb_async_callback_t callback, void *userdata)
struct lb_get_fund_positions_options_t lb_get_fund_positions_options_t
void lb_quote_context_watchlist(const struct lb_quote_context_t *ctx, lb_async_callback_t callback, void *userdata)
bool lb_decimal_lt(const struct lb_decimal_t *a, const struct lb_decimal_t *b)
struct lb_issuer_info_t lb_issuer_info_t
void lb_quote_context_create_watchlist_group(const struct lb_quote_context_t *ctx, const struct lb_create_watchlist_group_t *req, lb_async_callback_t callback, void *userdata)
struct lb_update_watchlist_group_t lb_update_watchlist_group_t
void lb_trade_context_subscribe(const struct lb_trade_context_t *ctx, const enum lb_topic_type_t *topics, uintptr_t num_topics, lb_async_callback_t callback, void *userdata)
void lb_decimal_exp(struct lb_decimal_t *value)
void lb_quote_context_option_quote(const struct lb_quote_context_t *ctx, const char *const *symbols, uintptr_t num_symbols, lb_async_callback_t callback, void *userdata)
lb_calc_index_t
Definition: longport.h:88
@ CalcIndexCallPrice
Definition: longport.h:204
@ CalcIndexOutstandingQty
Definition: longport.h:180
@ CalcIndexDividendRatioTtm
Definition: longport.h:144
@ CalcIndexChangeRate
Definition: longport.h:100
@ CalcIndexOutstandingRatio
Definition: longport.h:184
@ CalcIndexLeverageRatio
Definition: longport.h:216
@ CalcIndexCapitalFlow
Definition: longport.h:124
@ CalcIndexDelta
Definition: longport.h:232
@ CalcIndexToCallPrice
Definition: longport.h:208
@ CalcIndexTheta
Definition: longport.h:240
@ CalcIndexChangeValue
Definition: longport.h:96
@ CalcIndexTurnoverRate
Definition: longport.h:116
@ CalcIndexVolume
Definition: longport.h:104
@ CalcIndexYtdChangeRate
Definition: longport.h:112
@ CalcIndexFiveMinutesChangeRate
Definition: longport.h:160
@ CalcIndexUpperStrikePrice
Definition: longport.h:172
@ CalcIndexPbRatio
Definition: longport.h:140
@ CalcIndexWarrantDelta
Definition: longport.h:200
@ CalcIndexOpenInterest
Definition: longport.h:228
@ CalcIndexBalancePoint
Definition: longport.h:224
@ CalcIndexVolumeRatio
Definition: longport.h:132
@ CalcIndexExpiryDate
Definition: longport.h:164
@ CalcIndexPeTtmRatio
Definition: longport.h:136
@ CalcIndexConversionRatio
Definition: longport.h:220
@ CalcIndexGamma
Definition: longport.h:236
@ CalcIndexFiveDayChangeRate
Definition: longport.h:148
@ CalcIndexVega
Definition: longport.h:244
@ CalcIndexPremium
Definition: longport.h:188
@ CalcIndexAmplitude
Definition: longport.h:128
@ CalcIndexItmOtm
Definition: longport.h:192
@ CalcIndexRho
Definition: longport.h:248
@ CalcIndexLastDone
Definition: longport.h:92
@ CalcIndexLowerStrikePrice
Definition: longport.h:176
@ CalcIndexTenDayChangeRate
Definition: longport.h:152
@ CalcIndexTurnover
Definition: longport.h:108
@ CalcIndexEffectiveLeverage
Definition: longport.h:212
@ CalcIndexHalfYearChangeRate
Definition: longport.h:156
@ CalcIndexTotalMarketValue
Definition: longport.h:120
@ CalcIndexStrikePrice
Definition: longport.h:168
@ CalcIndexImpliedVolatility
Definition: longport.h:196
void lb_quote_context_intraday(const struct lb_quote_context_t *ctx, const char *symbol, lb_async_callback_t callback, void *userdata)
struct lb_account_balance_t lb_account_balance_t
void lb_http_client_request(struct lb_http_client_t *http_client, const char *method, const char *path, const struct lb_http_header_t *headers, const char *request_body, lb_async_callback_t callback, void *userdata)
struct lb_cash_flow_t lb_cash_flow_t
struct lb_security_quote_t lb_security_quote_t
struct lb_estimate_max_purchase_quantity_response_t lb_estimate_max_purchase_quantity_response_t
struct lb_intraday_line_t lb_intraday_line_t
void lb_quote_context_realtime_brokers(const struct lb_quote_context_t *ctx, const char *symbol, lb_async_callback_t callback, void *userdata)
void lb_trade_context_set_on_order_changed(const struct lb_trade_context_t *ctx, lb_order_changed_callback_t callback, void *userdata, lb_free_userdata_func_t free_userdata)
void lb_quote_context_realtime_quote(const struct lb_quote_context_t *ctx, const char *const *symbols, uintptr_t num_symbols, lb_async_callback_t callback, void *userdata)
void * lb_trade_context_userdata(const struct lb_trade_context_t *ctx)
struct lb_http_header_t lb_http_header_t
struct lb_decimal_t * lb_decimal_clone(const struct lb_decimal_t *value)
struct lb_http_client_t lb_http_client_t
Definition: longport.h:1187
void(* lb_async_callback_t)(const struct lb_async_result_t *)
Definition: longport.h:1209
void lb_quote_context_security_list(const struct lb_quote_context_t *ctx, enum lb_market_t market, enum lb_security_list_category_t category, lb_async_callback_t callback, void *userdata)
struct lb_create_watchlist_group_t lb_create_watchlist_group_t
void lb_decimal_sqrt(struct lb_decimal_t *value)
struct lb_push_depth_t lb_push_depth_t
void lb_quote_context_quote_package_details(const struct lb_quote_context_t *ctx, lb_async_callback_t callback, void *userdata)
lb_securities_update_mode_t
Definition: longport.h:744
@ SecuritiesUpdateModeAdd
Definition: longport.h:748
@ SecuritiesUpdateModeReplace
Definition: longport.h:756
@ SecuritiesUpdateModeRemove
Definition: longport.h:752
lb_warrant_status_t
Definition: longport.h:1130
@ WarrantStatusPrepareList
Definition: longport.h:1138
@ WarrantStatusSuspend
Definition: longport.h:1134
@ WarrantStatusNormal
Definition: longport.h:1142
void lb_quote_context_trading_days(const struct lb_quote_context_t *ctx, enum lb_market_t market, const struct lb_date_t *begin, const struct lb_date_t *end, lb_async_callback_t callback, void *userdata)
lb_filter_warrant_expiry_date_t
Definition: longport.h:342
@ WarrantExpiryDate_Between_6_12
Definition: longport.h:354
@ WarrantExpiryDate_LT_3
Definition: longport.h:346
@ WarrantExpiryDate_GT_12
Definition: longport.h:358
@ WarrantExpiryDate_Between_3_6
Definition: longport.h:350
lb_option_type_t
Definition: longport.h:440
@ OptionTypeEurope
Definition: longport.h:452
@ OptionTypeUnknown
Definition: longport.h:444
@ OptionTypeAmerican
Definition: longport.h:448
struct lb_push_candlestick_t lb_push_candlestick_t
lb_security_list_category_t
Definition: longport.h:868
@ SecurityListCategoryOvernight
Definition: longport.h:872
bool lb_decimal_is_positive(const struct lb_decimal_t *value)
lb_order_type_t
Definition: longport.h:600
@ OrderTypeUnknown
Definition: longport.h:604
@ OrderTypeTSMPCT
Definition: longport.h:652
@ OrderTypeELO
Definition: longport.h:612
@ OrderTypeAO
Definition: longport.h:620
@ OrderTypeMO
Definition: longport.h:616
@ OrderTypeTSMAMT
Definition: longport.h:648
@ OrderTypeSLO
Definition: longport.h:656
@ OrderTypeMIT
Definition: longport.h:636
@ OrderTypeLO
Definition: longport.h:608
@ OrderTypeLIT
Definition: longport.h:632
@ OrderTypeTSLPPCT
Definition: longport.h:644
@ OrderTypeODD
Definition: longport.h:628
@ OrderTypeALO
Definition: longport.h:624
@ OrderTypeTSLPAMT
Definition: longport.h:640
const struct lb_decimal_t * lb_decimal_max(const struct lb_decimal_t *a, const struct lb_decimal_t *b)
void lb_quote_context_retain(const struct lb_quote_context_t *ctx)
lb_trigger_status_t
Definition: longport.h:1014
@ TriggerStatusUnknown
Definition: longport.h:1018
@ TriggerStatusReleased
Definition: longport.h:1030
@ TriggerStatusDeactive
Definition: longport.h:1022
@ TriggerStatusActive
Definition: longport.h:1026
struct lb_get_history_executions_options_t lb_get_history_executions_options_t
void lb_decimal_norm_pdf(struct lb_decimal_t *value)
struct lb_http_client_t * lb_http_client_new(const char *http_url, const char *app_key, const char *app_secret, const char *access_token)
struct lb_date_t lb_date_t
const struct lb_decimal_t * lb_decimal_min(const struct lb_decimal_t *a, const struct lb_decimal_t *b)
struct lb_error_t lb_error_t
Definition: longport.h:1182
struct lb_cash_info_t lb_cash_info_t
struct lb_async_result_t lb_async_result_t
void lb_quote_context_candlesticks(const struct lb_quote_context_t *ctx, const char *symbol, enum lb_period_t period, uintptr_t count, enum lb_adjust_type_t adjust_type, lb_async_callback_t callback, void *userdata)
void(* lb_depth_callback_t)(const struct lb_quote_context_t *, const struct lb_push_depth_t *, void *)
Definition: longport.h:1319
int64_t lb_error_code(const struct lb_error_t *error)
struct lb_http_client_t * lb_http_client_from_env(struct lb_error_t **error)
struct lb_security_brokers_t lb_security_brokers_t
void lb_quote_context_quote(const struct lb_quote_context_t *ctx, const char *const *symbols, uintptr_t num_symbols, lb_async_callback_t callback, void *userdata)
void lb_decimal_round(struct lb_decimal_t *value)
struct lb_capital_distribution_t lb_capital_distribution_t
struct lb_decimal_t * lb_decimal_new(int64_t num, uint32_t scale)
struct lb_strike_price_info_t lb_strike_price_info_t
void lb_trade_context_order_detail(const struct lb_trade_context_t *ctx, const char *order_id, lb_async_callback_t callback, void *userdata)
void lb_trade_context_cash_flow(const struct lb_trade_context_t *ctx, const struct lb_get_cash_flow_options_t *opts, lb_async_callback_t callback, void *userdata)
void lb_trade_context_set_userdata(const struct lb_trade_context_t *ctx, void *userdata)
struct lb_get_stock_positions_options_t lb_get_stock_positions_options_t
void lb_trade_context_replace_order(const struct lb_trade_context_t *ctx, const struct lb_replace_order_options_t *opts, lb_async_callback_t callback, void *userdata)
struct lb_get_history_orders_options_t lb_get_history_orders_options_t
struct lb_stock_position_response_t lb_stock_position_response_t
struct lb_trade_t lb_trade_t
void lb_trade_context_cancel_order(const struct lb_trade_context_t *ctx, const char *order_id, lb_async_callback_t callback, void *userdata)
void lb_decimal_sub(struct lb_decimal_t *a, const struct lb_decimal_t *b)
bool lb_decimal_gt(const struct lb_decimal_t *a, const struct lb_decimal_t *b)
void lb_trade_context_today_executions(const struct lb_trade_context_t *ctx, const struct lb_get_today_executions_options_t *opts, lb_async_callback_t callback, void *userdata)
bool lb_decimal_lte(const struct lb_decimal_t *a, const struct lb_decimal_t *b)
void lb_quote_context_trading_session(const struct lb_quote_context_t *ctx, lb_async_callback_t callback, void *userdata)
struct lb_trade_context_t lb_trade_context_t
Definition: longport.h:1199
struct lb_fund_position_response_t lb_fund_position_response_t
void lb_trade_context_account_balance(const struct lb_trade_context_t *ctx, const char *currency, lb_async_callback_t callback, void *userdata)
void * lb_quote_context_userdata(const struct lb_quote_context_t *ctx)
void lb_decimal_div(struct lb_decimal_t *a, const struct lb_decimal_t *b)
void lb_decimal_fract(struct lb_decimal_t *value)
void lb_quote_context_set_userdata(const struct lb_quote_context_t *ctx, void *userdata)
struct lb_config_t * lb_config_new(const char *app_key, const char *app_secret, const char *access_token, const char *http_url, const char *quote_ws_url, const char *trade_ws_url, const enum lb_language_t *language, bool enable_overight, const enum lb_push_candlestick_mode_t *push_candlestick_mode)
void lb_trade_context_history_executions(const struct lb_trade_context_t *ctx, const struct lb_get_history_executions_options_t *opts, lb_async_callback_t callback, void *userdata)
void lb_quote_context_set_on_trades(const struct lb_quote_context_t *ctx, lb_trades_callback_t callback, void *userdata, lb_free_userdata_func_t free_userdata)
void lb_config_refresh_access_token(struct lb_config_t *config, int64_t expired_at, lb_async_callback_t callback, void *userdata)
void lb_decimal_pow(struct lb_decimal_t *value, const struct lb_decimal_t *exp)
void lb_decimal_free(struct lb_decimal_t *value)
struct lb_capital_distribution_response_t lb_capital_distribution_response_t
struct lb_push_brokers_t lb_push_brokers_t
void lb_quote_context_history_candlesticks_by_offset(const struct lb_quote_context_t *ctx, const char *symbol, enum lb_period_t period, enum lb_adjust_type_t adjust_type, bool forward, struct lb_datetime_t time, uintptr_t count, lb_async_callback_t callback, void *userdata)
void lb_quote_context_realtime_trades(const struct lb_quote_context_t *ctx, const char *symbol, uintptr_t count, lb_async_callback_t callback, void *userdata)
struct lb_margin_ratio_t lb_margin_ratio_t
void lb_trade_context_retain(const struct lb_trade_context_t *ctx)
const char * lb_decimal_to_string(const struct lb_decimal_t *value)
struct lb_datetime_t lb_datetime_t
struct lb_depth_t lb_depth_t
void lb_quote_context_capital_flow(const struct lb_quote_context_t *ctx, const char *symbol, lb_async_callback_t callback, void *userdata)
void lb_trade_context_set_free_userdata_func(const struct lb_trade_context_t *ctx, lb_free_userdata_func_t f)
void lb_decimal_rem(struct lb_decimal_t *a, const struct lb_decimal_t *b)
void lb_quote_context_brokers(const struct lb_quote_context_t *ctx, const char *symbol, lb_async_callback_t callback, void *userdata)
void lb_decimal_exp_with_tolerance(struct lb_decimal_t *value, const struct lb_decimal_t *tolerance)
lb_charge_category_code_t
Definition: longport.h:272
@ ChargeCategoryCodeThird
Definition: longport.h:284
@ ChargeCategoryCodeBroker
Definition: longport.h:280
@ ChargeCategoryCodeUnknown
Definition: longport.h:276
void lb_decimal_sin(struct lb_decimal_t *value)
lb_push_candlestick_mode_t
Definition: longport.h:730
@ PushCandlestickMode_Realtime
Definition: longport.h:734
@ PushCandlestickMode_Confirmed
Definition: longport.h:738
struct lb_config_t * lb_config_from_env(struct lb_error_t **error)
lb_security_board_t
Definition: longport.h:762
@ SecurityBoardHKEquity
Definition: longport.h:798
@ SecurityBoardUSOptionS
Definition: longport.h:794
@ SecurityBoardSHMainConnect
Definition: longport.h:818
@ SecurityBoardSZMainNonConnect
Definition: longport.h:842
@ SecurityBoardSZGEMConnect
Definition: longport.h:846
@ SecurityBoardSTI
Definition: longport.h:858
@ SecurityBoardUSNSDQ
Definition: longport.h:782
@ SecurityBoardSGMain
Definition: longport.h:854
@ SecurityBoardUSOption
Definition: longport.h:790
@ SecurityBoardSZMainConnect
Definition: longport.h:838
@ SecurityBoardSZGEMNonConnect
Definition: longport.h:850
@ SecurityBoardHKSector
Definition: longport.h:814
@ SecurityBoardUSSector
Definition: longport.h:786
@ SecurityBoardHKPreIPO
Definition: longport.h:802
@ SecurityBoardCNIX
Definition: longport.h:830
@ SecurityBoardUnknown
Definition: longport.h:766
@ SecurityBoardUSDJI
Definition: longport.h:778
@ SecurityBoardHKHS
Definition: longport.h:810
@ SecurityBoardCNSector
Definition: longport.h:834
@ SecurityBoardUSMain
Definition: longport.h:770
@ SecurityBoardUSPink
Definition: longport.h:774
@ SecurityBoardSHSTAR
Definition: longport.h:826
@ SecurityBoardSGSector
Definition: longport.h:862
@ SecurityBoardSHMainNonConnect
Definition: longport.h:822
@ SecurityBoardHKWarrant
Definition: longport.h:806
struct lb_submit_order_response_t lb_submit_order_response_t
lb_time_in_force_type_t
Definition: longport.h:892
@ TimeInForceUnknown
Definition: longport.h:896
@ TimeInForceGoodTilCanceled
Definition: longport.h:904
@ TimeInForceGoodTilDate
Definition: longport.h:908
@ TimeInForceDay
Definition: longport.h:900
void lb_decimal_tan(struct lb_decimal_t *value)
bool lb_decimal_is_negative(const struct lb_decimal_t *value)
struct lb_brokers_t lb_brokers_t
lb_order_side_t
Definition: longport.h:458
@ OrderSideSell
Definition: longport.h:470
@ OrderSideBuy
Definition: longport.h:466
@ OrderSideUnknown
Definition: longport.h:462
const char * lb_http_result_response_body(const struct lb_http_result_t *http_result)
lb_commission_free_status_t
Definition: longport.h:290
@ CommissionFreeStatusCalculated
Definition: longport.h:302
@ CommissionFreeStatusUnknown
Definition: longport.h:294
@ CommissionFreeStatusPending
Definition: longport.h:306
@ CommissionFreeStatusReady
Definition: longport.h:310
@ CommissionFreeStatusNone
Definition: longport.h:298
struct lb_option_quote_t lb_option_quote_t
struct lb_push_trades_t lb_push_trades_t
int32_t lb_decimal_cmp(const struct lb_decimal_t *a, const struct lb_decimal_t *b)
void lb_quote_context_new(const struct lb_config_t *config, lb_async_callback_t callback, void *userdata)
struct lb_http_result_t lb_http_result_t
Definition: longport.h:1189
lb_balance_type_t
Definition: longport.h:66
@ BalanceTypeCash
Definition: longport.h:74
@ BalanceTypeUnknown
Definition: longport.h:70
@ BalanceTypeStock
Definition: longport.h:78
@ BalanceTypeFund
Definition: longport.h:82
struct lb_candlestick_t lb_candlestick_t
lb_warrant_type_t
Definition: longport.h:1148
@ WarrantTypeBear
Definition: longport.h:1168
@ WarrantTypeInline
Definition: longport.h:1172
@ WarrantTypeBull
Definition: longport.h:1164
@ WarrantTypeUnknown
Definition: longport.h:1152
@ WarrantTypeCall
Definition: longport.h:1160
@ WarrantTypePut
Definition: longport.h:1156
struct lb_get_cash_flow_options_t lb_get_cash_flow_options_t
lb_topic_type_t
Definition: longport.h:914
@ TopicPrivate
Definition: longport.h:918
void lb_http_client_free(struct lb_http_client_t *http_client)
void lb_trade_context_today_orders(const struct lb_trade_context_t *ctx, const struct lb_get_today_orders_options_t *opts, lb_async_callback_t callback, void *userdata)
void lb_quote_context_unsubscribe_candlesticks(const struct lb_quote_context_t *ctx, const char *symbol, enum lb_period_t period, lb_async_callback_t callback, void *userdata)
struct lb_prepost_quote_t lb_prepost_quote_t
lb_adjust_type_t
Definition: longport.h:52
@ AdjustTypeNoAdjust
Definition: longport.h:56
@ AdjustTypeForward
Definition: longport.h:60
void lb_quote_context_set_on_quote(const struct lb_quote_context_t *ctx, lb_quote_callback_t callback, void *userdata, lb_free_userdata_func_t free_userdata)
void lb_quote_context_participants(const struct lb_quote_context_t *ctx, lb_async_callback_t callback, void *userdata)
void lb_trade_context_stock_positions(const struct lb_trade_context_t *ctx, const struct lb_get_stock_positions_options_t *opts, lb_async_callback_t callback, void *userdata)
struct lb_decimal_t * lb_decimal_from_str(const char *value)
void lb_decimal_floor(struct lb_decimal_t *value)
struct lb_security_calc_index_t lb_security_calc_index_t
void lb_quote_context_set_free_userdata_func(const struct lb_quote_context_t *ctx, lb_free_userdata_func_t f)
void(* lb_order_changed_callback_t)(const struct lb_trade_context_t *, const struct lb_push_order_changed_t *, void *)
Definition: longport.h:1681
void lb_quote_context_subscribe_candlesticks(const struct lb_quote_context_t *ctx, const char *symbol, enum lb_period_t period, lb_async_callback_t callback, void *userdata)
void lb_trade_context_margin_ratio(const struct lb_trade_context_t *ctx, const char *symbol, lb_async_callback_t callback, void *userdata)
struct lb_stock_position_channel_t lb_stock_position_channel_t
struct lb_execution_t lb_execution_t
void lb_trade_context_fund_positions(const struct lb_trade_context_t *ctx, const struct lb_get_fund_positions_options_t *opts, lb_async_callback_t callback, void *userdata)
struct lb_participant_info_t lb_participant_info_t
struct lb_security_depth_t lb_security_depth_t
struct lb_security_t lb_security_t
struct lb_order_charge_detail_t lb_order_charge_detail_t
bool lb_decimal_is_zero(const struct lb_decimal_t *value)
lb_language_t
Definition: longport.h:378
@ Language_ZH_HK
Definition: longport.h:386
@ Language_ZH_CN
Definition: longport.h:382
@ Language_EN
Definition: longport.h:390
void lb_quote_context_option_chain_expiry_date_list(const struct lb_quote_context_t *ctx, const char *symbol, lb_async_callback_t callback, void *userdata)
void lb_quote_context_set_on_depth(const struct lb_quote_context_t *ctx, lb_depth_callback_t callback, void *userdata, lb_free_userdata_func_t free_userdata)
void lb_quote_context_warrant_issuers(const struct lb_quote_context_t *ctx, lb_async_callback_t callback, void *userdata)
void lb_trade_context_new(const struct lb_config_t *config, lb_async_callback_t callback, void *userdata)
void lb_quote_context_subscribe(const struct lb_quote_context_t *ctx, const char *const *symbols, uintptr_t num_symbols, uint8_t sub_types, bool is_first_push, lb_async_callback_t callback, void *userdata)
lb_order_status_t
Definition: longport.h:476
@ OrderStatusExpired
Definition: longport.h:544
@ OrderStatusProtectedNotReported
Definition: longport.h:492
@ OrderStatusPendingCancel
Definition: longport.h:532
@ OrderStatusPartialWithdrawal
Definition: longport.h:548
@ OrderStatusReplacedNotReported
Definition: longport.h:488
@ OrderStatusWaitToCancel
Definition: longport.h:528
@ OrderStatusFilled
Definition: longport.h:500
@ OrderStatusCanceled
Definition: longport.h:540
@ OrderStatusPendingReplace
Definition: longport.h:516
@ OrderStatusRejected
Definition: longport.h:536
@ OrderStatusPartialFilled
Definition: longport.h:524
@ OrderStatusWaitToNew
Definition: longport.h:504
@ OrderStatusNew
Definition: longport.h:508
@ OrderStatusVarietiesNotReported
Definition: longport.h:496
@ OrderStatusUnknown
Definition: longport.h:480
@ OrderStatusWaitToReplace
Definition: longport.h:512
@ OrderStatusNotReported
Definition: longport.h:484
@ OrderStatusReplaced
Definition: longport.h:520
struct lb_order_charge_item_t lb_order_charge_item_t
const char * lb_error_message(const struct lb_error_t *error)
struct lb_order_detail_t lb_order_detail_t
void lb_quote_context_warrant_quote(const struct lb_quote_context_t *ctx, const char *const *symbols, uintptr_t num_symbols, lb_async_callback_t callback, void *userdata)
struct lb_trading_session_info_t lb_trading_session_info_t
struct lb_get_today_orders_options_t lb_get_today_orders_options_t
lb_order_tag_t
Definition: longport.h:554
@ OrderTagNonExercise
Definition: longport.h:590
@ OrderTagOffline
Definition: longport.h:578
@ OrderTagDebtor
Definition: longport.h:586
@ OrderTagCreditor
Definition: longport.h:582
@ OrderTagUnknown
Definition: longport.h:558
@ OrderTagAllocatedSub
Definition: longport.h:594
@ OrderTagMarginCall
Definition: longport.h:574
@ OrderTagLongTerm
Definition: longport.h:566
@ OrderTagGrey
Definition: longport.h:570
@ OrderTagNormal
Definition: longport.h:562
void lb_decimal_round_dp(struct lb_decimal_t *value, uint32_t dp)
const char * lb_quote_context_quote_level(const struct lb_quote_context_t *ctx)
void lb_quote_context_warrant_list(const struct lb_quote_context_t *ctx, const char *symbol, enum lb_warrant_sort_by_t sort_by, enum lb_sort_order_type_t sort_order, const enum lb_warrant_type_t *warrant_type, uintptr_t num_warrant_type, const int32_t *issuer, uintptr_t num_issuer, const enum lb_filter_warrant_expiry_date_t *expiry_date, uintptr_t num_expiry_date, const enum lb_filter_warrant_in_out_bounds_type_t *price_type, uintptr_t num_price_type, const enum lb_warrant_status_t *status, uintptr_t num_status, lb_async_callback_t callback, void *userdata)
void lb_decimal_log10(struct lb_decimal_t *value)
void lb_quote_context_depth(const struct lb_quote_context_t *ctx, const char *symbol, lb_async_callback_t callback, void *userdata)
void lb_decimal_normal_cdf(struct lb_decimal_t *value)
void lb_decimal_mul(struct lb_decimal_t *a, const struct lb_decimal_t *b)
lb_option_direction_t
Definition: longport.h:422
@ OptionDirectionPut
Definition: longport.h:430
@ OptionDirectionUnknown
Definition: longport.h:426
@ OptionDirectionCall
Definition: longport.h:434
void lb_trade_context_unsubscribe(const struct lb_trade_context_t *ctx, const enum lb_topic_type_t *topics, uintptr_t num_topics, lb_async_callback_t callback, void *userdata)
struct lb_watchlist_group_t lb_watchlist_group_t
void lb_decimal_ln(struct lb_decimal_t *value)
struct lb_order_charge_fee_t lb_order_charge_fee_t
struct lb_watchlist_security_t lb_watchlist_security_t
Definition: longport.h:2779
const struct lb_decimal_t * total_cash
Definition: longport.h:2783
const struct lb_decimal_t * margin_call
Definition: longport.h:2799
const struct lb_decimal_t * buy_power
Definition: longport.h:2827
const struct lb_decimal_t * max_finance_amount
Definition: longport.h:2787
int32_t risk_level
Definition: longport.h:2795
const struct lb_decimal_t * maintenance_margin
Definition: longport.h:2823
const struct lb_decimal_t * remaining_finance_amount
Definition: longport.h:2791
uintptr_t num_cash_infos
Definition: longport.h:2811
const struct lb_decimal_t * init_margin
Definition: longport.h:2819
const char * currency
Definition: longport.h:2803
const struct lb_decimal_t * net_assets
Definition: longport.h:2815
const struct lb_cash_info_t * cash_infos
Definition: longport.h:2807
Definition: longport.h:1201
const struct lb_error_t * error
Definition: longport.h:1203
uintptr_t length
Definition: longport.h:1205
void * data
Definition: longport.h:1204
const void * ctx
Definition: longport.h:1202
void * userdata
Definition: longport.h:1206
Definition: longport.h:1326
uintptr_t num_broker_ids
Definition: longport.h:1338
int32_t position
Definition: longport.h:1330
const int32_t * broker_ids
Definition: longport.h:1334
Definition: longport.h:1457
const struct lb_decimal_t * turnover
Definition: longport.h:1481
const struct lb_decimal_t * open
Definition: longport.h:1465
const struct lb_decimal_t * close
Definition: longport.h:1461
const struct lb_decimal_t * high
Definition: longport.h:1473
const struct lb_decimal_t * low
Definition: longport.h:1469
int64_t timestamp
Definition: longport.h:1485
int64_t volume
Definition: longport.h:1477
Definition: longport.h:2553
struct lb_capital_distribution_t capital_out
Definition: longport.h:2565
int64_t timestamp
Definition: longport.h:2557
struct lb_capital_distribution_t capital_in
Definition: longport.h:2561
Definition: longport.h:2535
const struct lb_decimal_t * large
Definition: longport.h:2539
const struct lb_decimal_t * medium
Definition: longport.h:2543
const struct lb_decimal_t * small
Definition: longport.h:2547
Definition: longport.h:2521
const struct lb_decimal_t * inflow
Definition: longport.h:2525
int64_t timestamp
Definition: longport.h:2529
Definition: longport.h:2833
const struct lb_decimal_t * balance
Definition: longport.h:2849
int64_t business_time
Definition: longport.h:2857
const char * description
Definition: longport.h:2865
const char * transaction_flow_name
Definition: longport.h:2837
const char * symbol
Definition: longport.h:2861
const char * currency
Definition: longport.h:2853
enum lb_balance_type_t business_type
Definition: longport.h:2845
enum lb_cash_flow_direction_t direction
Definition: longport.h:2841
Definition: longport.h:2753
const struct lb_decimal_t * available_cash
Definition: longport.h:2761
const struct lb_decimal_t * frozen_cash
Definition: longport.h:2765
const struct lb_decimal_t * withdraw_cash
Definition: longport.h:2757
const char * currency
Definition: longport.h:2773
const struct lb_decimal_t * settling_cash
Definition: longport.h:2769
Definition: longport.h:1530
uintptr_t num_securities
Definition: longport.h:1542
const char *const * securities
Definition: longport.h:1538
const char * name
Definition: longport.h:1534
Definition: longport.h:1510
uint8_t month
Definition: longport.h:1512
int32_t year
Definition: longport.h:1511
uint8_t day
Definition: longport.h:1513
Definition: longport.h:1522
struct lb_date_t date
Definition: longport.h:1523
struct lb_time_t time
Definition: longport.h:1524
Definition: longport.h:1274
const struct lb_decimal_t * price
Definition: longport.h:1282
int64_t order_num
Definition: longport.h:1290
int32_t position
Definition: longport.h:1278
int64_t volume
Definition: longport.h:1286
Definition: longport.h:1939
enum lb_order_side_t side
Definition: longport.h:1943
const struct lb_decimal_t * price
Definition: longport.h:1942
bool fractional_shares
Definition: longport.h:1946
enum lb_order_type_t order_type
Definition: longport.h:1941
const char * symbol
Definition: longport.h:1940
const char * currency
Definition: longport.h:1944
const char * order_id
Definition: longport.h:1945
Definition: longport.h:3319
const struct lb_decimal_t * margin_max_qty
Definition: longport.h:3327
const struct lb_decimal_t * cash_max_qty
Definition: longport.h:3323
Definition: longport.h:2613
const struct lb_decimal_t * quantity
Definition: longport.h:2633
const struct lb_decimal_t * price
Definition: longport.h:2637
const char * trade_id
Definition: longport.h:2621
const char * symbol
Definition: longport.h:2625
int64_t trade_done_at
Definition: longport.h:2629
const char * order_id
Definition: longport.h:2617
Definition: longport.h:2905
const char * account_channel
Definition: longport.h:2909
uintptr_t num_positions
Definition: longport.h:2917
const struct lb_fund_position_t * positions
Definition: longport.h:2913
Definition: longport.h:2923
const struct lb_fund_position_channel_t * channels
Definition: longport.h:2927
uintptr_t num_channels
Definition: longport.h:2931
Definition: longport.h:2871
int64_t net_asset_value_day
Definition: longport.h:2883
const char * symbol_name
Definition: longport.h:2887
const struct lb_decimal_t * cost_net_asset_value
Definition: longport.h:2895
const char * symbol
Definition: longport.h:2875
const char * currency
Definition: longport.h:2891
const struct lb_decimal_t * holding_units
Definition: longport.h:2899
const struct lb_decimal_t * current_net_asset_value
Definition: longport.h:2879
Definition: longport.h:1881
const uintptr_t * size
Definition: longport.h:1905
enum lb_balance_type_t * business_type
Definition: longport.h:1893
int64_t end_at
Definition: longport.h:1889
int64_t start_at
Definition: longport.h:1885
const uintptr_t * page
Definition: longport.h:1901
const char * symbol
Definition: longport.h:1897
Definition: longport.h:1911
uintptr_t num_symbols
Definition: longport.h:1919
const char *const * symbols
Definition: longport.h:1915
Definition: longport.h:1688
const int64_t * start_at
Definition: longport.h:1692
const int64_t * end_at
Definition: longport.h:1696
const char * symbol
Definition: longport.h:1700
Definition: longport.h:1720
const int64_t * start_at
Definition: longport.h:1744
enum lb_market_t * market
Definition: longport.h:1740
enum lb_order_status_t * status
Definition: longport.h:1728
const int64_t * end_at
Definition: longport.h:1748
const char * symbol
Definition: longport.h:1724
enum lb_order_side_t * side
Definition: longport.h:1736
uintptr_t num_status
Definition: longport.h:1732
Definition: longport.h:1925
uintptr_t num_symbols
Definition: longport.h:1933
const char *const * symbols
Definition: longport.h:1929
Definition: longport.h:1706
const char * symbol
Definition: longport.h:1710
const char * order_id
Definition: longport.h:1714
Definition: longport.h:1754
enum lb_market_t * market
Definition: longport.h:1774
enum lb_order_status_t * status
Definition: longport.h:1762
const char * symbol
Definition: longport.h:1758
enum lb_order_side_t * side
Definition: longport.h:1770
uintptr_t num_status
Definition: longport.h:1766
const char * order_id
Definition: longport.h:1778
Definition: longport.h:2393
const struct lb_decimal_t * turnover
Definition: longport.h:2409
const struct lb_decimal_t * avg_price
Definition: longport.h:2413
const struct lb_decimal_t * price
Definition: longport.h:2397
int64_t timestamp
Definition: longport.h:2401
int64_t volume
Definition: longport.h:2405
Definition: longport.h:2441
int32_t issuer_id
Definition: longport.h:2445
const char * name_cn
Definition: longport.h:2449
const char * name_en
Definition: longport.h:2453
const char * name_hk
Definition: longport.h:2457
Definition: longport.h:3066
const struct lb_decimal_t * mm_factor
Definition: longport.h:3074
const struct lb_decimal_t * im_factor
Definition: longport.h:3070
const struct lb_decimal_t * fm_factor
Definition: longport.h:3078
Definition: longport.h:2499
const struct lb_date_t * half_trading_days
Definition: longport.h:2511
uintptr_t num_trading_days
Definition: longport.h:2507
uintptr_t num_half_trading_days
Definition: longport.h:2515
const struct lb_date_t * trading_days
Definition: longport.h:2503
Definition: longport.h:2481
enum lb_market_t market
Definition: longport.h:2485
const struct lb_trading_session_info_t * trade_sessions
Definition: longport.h:2489
uintptr_t num_trade_sessions
Definition: longport.h:2493
Definition: longport.h:2143
const struct lb_decimal_t * turnover
Definition: longport.h:2179
const struct lb_decimal_t * open
Definition: longport.h:2159
const struct lb_decimal_t * prev_close
Definition: longport.h:2155
struct lb_date_t expiry_date
Definition: longport.h:2195
enum lb_option_type_t contract_type
Definition: longport.h:2207
const struct lb_decimal_t * contract_multiplier
Definition: longport.h:2203
const struct lb_decimal_t * high
Definition: longport.h:2163
const char * underlying_symbol
Definition: longport.h:2223
const struct lb_decimal_t * low
Definition: longport.h:2167
const struct lb_decimal_t * historical_volatility
Definition: longport.h:2219
const struct lb_decimal_t * implied_volatility
Definition: longport.h:2187
int64_t timestamp
Definition: longport.h:2171
const struct lb_decimal_t * strike_price
Definition: longport.h:2199
int64_t volume
Definition: longport.h:2175
const char * symbol
Definition: longport.h:2147
enum lb_trade_status_t trade_status
Definition: longport.h:2183
int64_t open_interest
Definition: longport.h:2191
const struct lb_decimal_t * contract_size
Definition: longport.h:2211
const struct lb_decimal_t * last_done
Definition: longport.h:2151
enum lb_option_direction_t direction
Definition: longport.h:2215
Definition: longport.h:3139
uintptr_t num_items
Definition: longport.h:3155
const struct lb_decimal_t * total_amount
Definition: longport.h:3143
const struct lb_order_charge_item_t * items
Definition: longport.h:3151
const char * currency
Definition: longport.h:3147
Definition: longport.h:3095
const char * name
Definition: longport.h:3103
const char * currency
Definition: longport.h:3111
const char * code
Definition: longport.h:3099
const struct lb_decimal_t * amount
Definition: longport.h:3107
Definition: longport.h:3117
uintptr_t num_fees
Definition: longport.h:3133
const struct lb_order_charge_fee_t * fees
Definition: longport.h:3129
enum lb_charge_category_code_t code
Definition: longport.h:3121
const char * name
Definition: longport.h:3125
Definition: longport.h:3161
enum lb_outside_rth_t * outside_rth
Definition: longport.h:3261
const struct lb_decimal_t * executed_quantity
Definition: longport.h:3181
const struct lb_decimal_t * quantity
Definition: longport.h:3177
enum lb_order_side_t side
Definition: longport.h:3197
const char * msg
Definition: longport.h:3217
const struct lb_decimal_t * price
Definition: longport.h:3185
const struct lb_decimal_t * deductions_amount
Definition: longport.h:3285
const int64_t * updated_at
Definition: longport.h:3233
enum lb_trigger_status_t * trigger_status
Definition: longport.h:3253
enum lb_commission_free_status_t free_status
Definition: longport.h:3269
const int64_t * trigger_at
Definition: longport.h:3237
enum lb_deduction_status_t platform_deducted_status
Definition: longport.h:3293
const struct lb_date_t * expire_date
Definition: longport.h:3229
const char * stock_name
Definition: longport.h:3173
const struct lb_decimal_t * platform_deducted_amount
Definition: longport.h:3297
const struct lb_order_history_detail_t * history
Definition: longport.h:3305
enum lb_deduction_status_t deductions_status
Definition: longport.h:3281
const struct lb_decimal_t * trailing_percent
Definition: longport.h:3245
const struct lb_decimal_t * trigger_price
Definition: longport.h:3213
enum lb_order_tag_t tag
Definition: longport.h:3221
enum lb_time_in_force_type_t time_in_force
Definition: longport.h:3225
const char * remark
Definition: longport.h:3265
enum lb_order_type_t order_type
Definition: longport.h:3205
uintptr_t num_history
Definition: longport.h:3309
const char * free_currency
Definition: longport.h:3277
const char * deductions_currency
Definition: longport.h:3289
const struct lb_decimal_t * limit_offset
Definition: longport.h:3249
const char * platform_deducted_currency
Definition: longport.h:3301
const char * symbol
Definition: longport.h:3201
const char * currency
Definition: longport.h:3257
const struct lb_decimal_t * trailing_amount
Definition: longport.h:3241
const struct lb_decimal_t * executed_price
Definition: longport.h:3189
struct lb_order_charge_detail_t charge_detail
Definition: longport.h:3313
int64_t submitted_at
Definition: longport.h:3193
enum lb_order_status_t status
Definition: longport.h:3169
const struct lb_decimal_t * last_done
Definition: longport.h:3209
const struct lb_decimal_t * free_amount
Definition: longport.h:3273
const char * order_id
Definition: longport.h:3165
Definition: longport.h:3084
const struct lb_decimal_t * quantity
Definition: longport.h:3086
const char * msg
Definition: longport.h:3088
const struct lb_decimal_t * price
Definition: longport.h:3085
int64_t time
Definition: longport.h:3089
enum lb_order_status_t status
Definition: longport.h:3087
Definition: longport.h:2643
enum lb_outside_rth_t * outside_rth
Definition: longport.h:2743
const struct lb_decimal_t * executed_quantity
Definition: longport.h:2663
const struct lb_decimal_t * quantity
Definition: longport.h:2659
enum lb_order_side_t side
Definition: longport.h:2679
const char * msg
Definition: longport.h:2699
const struct lb_decimal_t * price
Definition: longport.h:2667
const int64_t * updated_at
Definition: longport.h:2715
enum lb_trigger_status_t * trigger_status
Definition: longport.h:2735
const int64_t * trigger_at
Definition: longport.h:2719
const struct lb_date_t * expire_date
Definition: longport.h:2711
const char * stock_name
Definition: longport.h:2655
const struct lb_decimal_t * trailing_percent
Definition: longport.h:2727
const struct lb_decimal_t * trigger_price
Definition: longport.h:2695
enum lb_order_tag_t tag
Definition: longport.h:2703
enum lb_time_in_force_type_t time_in_force
Definition: longport.h:2707
const char * remark
Definition: longport.h:2747
enum lb_order_type_t order_type
Definition: longport.h:2687
const struct lb_decimal_t * limit_offset
Definition: longport.h:2731
const char * symbol
Definition: longport.h:2683
const char * currency
Definition: longport.h:2739
const struct lb_decimal_t * trailing_amount
Definition: longport.h:2723
const struct lb_decimal_t * executed_price
Definition: longport.h:2671
int64_t submitted_at
Definition: longport.h:2675
enum lb_order_status_t status
Definition: longport.h:2651
const struct lb_decimal_t * last_done
Definition: longport.h:2691
const char * order_id
Definition: longport.h:2647
Definition: longport.h:2367
uintptr_t num_broker_ids
Definition: longport.h:2375
const int32_t * broker_ids
Definition: longport.h:2371
const char * name_cn
Definition: longport.h:2379
const char * name_en
Definition: longport.h:2383
const char * name_hk
Definition: longport.h:2387
Definition: longport.h:2051
const struct lb_decimal_t * turnover
Definition: longport.h:2067
const struct lb_decimal_t * prev_close
Definition: longport.h:2079
const struct lb_decimal_t * high
Definition: longport.h:2071
const struct lb_decimal_t * low
Definition: longport.h:2075
int64_t timestamp
Definition: longport.h:2059
int64_t volume
Definition: longport.h:2063
const struct lb_decimal_t * last_done
Definition: longport.h:2055
Definition: longport.h:1344
uintptr_t num_ask_brokers
Definition: longport.h:1356
const struct lb_brokers_t * bid_brokers
Definition: longport.h:1360
uintptr_t num_bid_brokers
Definition: longport.h:1364
const struct lb_brokers_t * ask_brokers
Definition: longport.h:1352
const char * symbol
Definition: longport.h:1348
Definition: longport.h:1491
enum lb_period_t period
Definition: longport.h:1499
const char * symbol
Definition: longport.h:1495
struct lb_candlestick_t candlestick
Definition: longport.h:1503
Definition: longport.h:1296
uintptr_t num_bids
Definition: longport.h:1316
const struct lb_depth_t * asks
Definition: longport.h:1304
const struct lb_depth_t * bids
Definition: longport.h:1312
const char * symbol
Definition: longport.h:1300
uintptr_t num_asks
Definition: longport.h:1308
Definition: longport.h:1578
const char * account_no
Definition: longport.h:1666
const struct lb_decimal_t * executed_quantity
Definition: longport.h:1606
enum lb_order_side_t side
Definition: longport.h:1582
const char * msg
Definition: longport.h:1638
enum lb_trigger_status_t * trigger_status
Definition: longport.h:1646
const int64_t * trigger_at
Definition: longport.h:1650
const char * stock_name
Definition: longport.h:1586
const struct lb_decimal_t * trailing_percent
Definition: longport.h:1658
const struct lb_decimal_t * trigger_price
Definition: longport.h:1634
enum lb_order_tag_t tag
Definition: longport.h:1642
int64_t updated_at
Definition: longport.h:1630
const char * remark
Definition: longport.h:1678
enum lb_order_type_t order_type
Definition: longport.h:1598
const struct lb_decimal_t * limit_offset
Definition: longport.h:1662
const struct lb_decimal_t * submitted_quantity
Definition: longport.h:1590
const char * symbol
Definition: longport.h:1594
const char * currency
Definition: longport.h:1618
const struct lb_decimal_t * trailing_amount
Definition: longport.h:1654
const struct lb_decimal_t * executed_price
Definition: longport.h:1610
int64_t submitted_at
Definition: longport.h:1626
const struct lb_decimal_t * last_price
Definition: longport.h:1674
enum lb_order_status_t status
Definition: longport.h:1622
const struct lb_decimal_t * last_share
Definition: longport.h:1670
const struct lb_decimal_t * submitted_price
Definition: longport.h:1602
const char * order_id
Definition: longport.h:1614
Definition: longport.h:1224
const struct lb_decimal_t * turnover
Definition: longport.h:1256
const struct lb_decimal_t * open
Definition: longport.h:1236
enum lb_trade_session_t trade_session
Definition: longport.h:1264
const struct lb_decimal_t * high
Definition: longport.h:1240
const struct lb_decimal_t * low
Definition: longport.h:1244
int64_t timestamp
Definition: longport.h:1248
int64_t volume
Definition: longport.h:1252
const char * symbol
Definition: longport.h:1228
enum lb_trade_status_t trade_status
Definition: longport.h:1260
const struct lb_decimal_t * last_done
Definition: longport.h:1232
Definition: longport.h:1435
uintptr_t num_trades
Definition: longport.h:1447
const struct lb_trade_t * trades
Definition: longport.h:1443
const char * symbol
Definition: longport.h:1439
Definition: longport.h:3609
const char * description
Definition: longport.h:3621
const char * name
Definition: longport.h:3617
int64_t end_at
Definition: longport.h:3629
int64_t start_at
Definition: longport.h:3625
const char * key
Definition: longport.h:3613
Definition: longport.h:2571
const struct lb_decimal_t * turnover
Definition: longport.h:2603
const struct lb_decimal_t * open
Definition: longport.h:2583
const struct lb_decimal_t * high
Definition: longport.h:2587
const struct lb_decimal_t * low
Definition: longport.h:2591
int64_t timestamp
Definition: longport.h:2595
int64_t volume
Definition: longport.h:2599
const char * symbol
Definition: longport.h:2575
enum lb_trade_status_t trade_status
Definition: longport.h:2607
const struct lb_decimal_t * last_done
Definition: longport.h:2579
Definition: longport.h:1784
const struct lb_decimal_t * quantity
Definition: longport.h:1792
const struct lb_decimal_t * price
Definition: longport.h:1796
const struct lb_decimal_t * trailing_percent
Definition: longport.h:1812
const struct lb_decimal_t * trigger_price
Definition: longport.h:1800
const char * remark
Definition: longport.h:1816
const struct lb_decimal_t * limit_offset
Definition: longport.h:1804
const struct lb_decimal_t * trailing_amount
Definition: longport.h:1808
const char * order_id
Definition: longport.h:1788
Definition: longport.h:2345
uintptr_t num_ask_brokers
Definition: longport.h:2353
const struct lb_brokers_t * bid_brokers
Definition: longport.h:2357
uintptr_t num_bid_brokers
Definition: longport.h:2361
const struct lb_brokers_t * ask_brokers
Definition: longport.h:2349
Definition: longport.h:3333
const struct lb_decimal_t * change_value
Definition: longport.h:3345
const struct lb_decimal_t * to_call_price
Definition: longport.h:3457
const struct lb_decimal_t * turnover
Definition: longport.h:3357
const struct lb_decimal_t * change_rate
Definition: longport.h:3349
const struct lb_decimal_t * five_day_change_rate
Definition: longport.h:3397
const struct lb_decimal_t * gamma
Definition: longport.h:3485
const struct lb_decimal_t * balance_point
Definition: longport.h:3473
const struct lb_decimal_t * leverage_ratio
Definition: longport.h:3465
const struct lb_decimal_t * delta
Definition: longport.h:3481
const struct lb_decimal_t * conversion_ratio
Definition: longport.h:3469
const int64_t * outstanding_qty
Definition: longport.h:3429
const struct lb_decimal_t * ytd_change_rate
Definition: longport.h:3361
const struct lb_decimal_t * premium
Definition: longport.h:3437
const struct lb_decimal_t * rho
Definition: longport.h:3497
const struct lb_decimal_t * itm_otm
Definition: longport.h:3441
const struct lb_date_t * expiry_date
Definition: longport.h:3413
const struct lb_decimal_t * vega
Definition: longport.h:3493
const struct lb_decimal_t * volume_ratio
Definition: longport.h:3381
const struct lb_decimal_t * half_year_change_rate
Definition: longport.h:3405
const struct lb_decimal_t * five_minutes_change_rate
Definition: longport.h:3409
const struct lb_decimal_t * pb_ratio
Definition: longport.h:3389
const struct lb_decimal_t * implied_volatility
Definition: longport.h:3445
const struct lb_decimal_t * pe_ttm_ratio
Definition: longport.h:3385
const struct lb_decimal_t * strike_price
Definition: longport.h:3417
const struct lb_decimal_t * upper_strike_price
Definition: longport.h:3421
const struct lb_decimal_t * dividend_ratio_ttm
Definition: longport.h:3393
const struct lb_decimal_t * effective_leverage
Definition: longport.h:3461
const struct lb_decimal_t * lower_strike_price
Definition: longport.h:3425
const struct lb_decimal_t * warrant_delta
Definition: longport.h:3449
const struct lb_decimal_t * capital_flow
Definition: longport.h:3373
const char * symbol
Definition: longport.h:3337
const struct lb_decimal_t * amplitude
Definition: longport.h:3377
const int64_t * volume
Definition: longport.h:3353
const struct lb_decimal_t * theta
Definition: longport.h:3489
const struct lb_decimal_t * total_market_value
Definition: longport.h:3369
const int64_t * open_interest
Definition: longport.h:3477
const struct lb_decimal_t * last_done
Definition: longport.h:3341
const struct lb_decimal_t * outstanding_ratio
Definition: longport.h:3433
const struct lb_decimal_t * call_price
Definition: longport.h:3453
const struct lb_decimal_t * turnover_rate
Definition: longport.h:3365
const struct lb_decimal_t * ten_day_change_rate
Definition: longport.h:3401
Definition: longport.h:2323
uintptr_t num_bids
Definition: longport.h:2339
const struct lb_depth_t * asks
Definition: longport.h:2327
const struct lb_depth_t * bids
Definition: longport.h:2335
uintptr_t num_asks
Definition: longport.h:2331
Definition: longport.h:2085
const struct lb_decimal_t * turnover
Definition: longport.h:2121
const struct lb_decimal_t * open
Definition: longport.h:2101
const struct lb_decimal_t * prev_close
Definition: longport.h:2097
const struct lb_prepost_quote_t * overnight_quote
Definition: longport.h:2137
const struct lb_decimal_t * high
Definition: longport.h:2105
const struct lb_decimal_t * low
Definition: longport.h:2109
int64_t timestamp
Definition: longport.h:2113
int64_t volume
Definition: longport.h:2117
const char * symbol
Definition: longport.h:2089
enum lb_trade_status_t trade_status
Definition: longport.h:2125
const struct lb_prepost_quote_t * pre_market_quote
Definition: longport.h:2129
const struct lb_prepost_quote_t * post_market_quote
Definition: longport.h:2133
const struct lb_decimal_t * last_done
Definition: longport.h:2093
Definition: longport.h:1981
const struct lb_decimal_t * dividend_yield
Definition: longport.h:2037
int64_t total_shares
Definition: longport.h:2013
int32_t lot_size
Definition: longport.h:2009
const struct lb_decimal_t * eps_ttm
Definition: longport.h:2029
uint8_t stock_derivatives
Definition: longport.h:2041
const struct lb_decimal_t * eps
Definition: longport.h:2025
const struct lb_decimal_t * bps
Definition: longport.h:2033
enum lb_security_board_t board
Definition: longport.h:2045
int64_t hk_shares
Definition: longport.h:2021
int64_t circulating_shares
Definition: longport.h:2017
const char * name_cn
Definition: longport.h:1989
const char * symbol
Definition: longport.h:1985
const char * currency
Definition: longport.h:2005
const char * exchange
Definition: longport.h:2001
const char * name_en
Definition: longport.h:1993
const char * name_hk
Definition: longport.h:1997
Definition: longport.h:1959
const char * name_cn
Definition: longport.h:1967
const char * symbol
Definition: longport.h:1963
const char * name_en
Definition: longport.h:1971
const char * name_hk
Definition: longport.h:1975
Definition: longport.h:2976
const struct lb_stock_position_t * positions
Definition: longport.h:2984
const char * account_channel
Definition: longport.h:2980
uintptr_t num_positions
Definition: longport.h:2988
Definition: longport.h:2994
uintptr_t num_channels
Definition: longport.h:3002
const struct lb_stock_position_channel_t * channels
Definition: longport.h:2998
Definition: longport.h:2937
const struct lb_decimal_t * quantity
Definition: longport.h:2949
const char * symbol_name
Definition: longport.h:2945
const struct lb_decimal_t * init_quantity
Definition: longport.h:2970
const struct lb_decimal_t * available_quantity
Definition: longport.h:2953
const char * symbol
Definition: longport.h:2941
const char * currency
Definition: longport.h:2957
enum lb_market_t market
Definition: longport.h:2966
const struct lb_decimal_t * cost_price
Definition: longport.h:2962
Definition: longport.h:2419
const struct lb_decimal_t * price
Definition: longport.h:2423
const char * call_symbol
Definition: longport.h:2427
const char * put_symbol
Definition: longport.h:2431
bool standard
Definition: longport.h:2435
Definition: longport.h:1822
enum lb_outside_rth_t * outside_rth
Definition: longport.h:1871
enum lb_order_side_t side
Definition: longport.h:1834
const struct lb_date_t * expire_date
Definition: longport.h:1867
const struct lb_decimal_t * trailing_percent
Definition: longport.h:1862
const struct lb_decimal_t * trigger_price
Definition: longport.h:1850
enum lb_time_in_force_type_t time_in_force
Definition: longport.h:1842
const char * remark
Definition: longport.h:1875
enum lb_order_type_t order_type
Definition: longport.h:1830
const struct lb_decimal_t * limit_offset
Definition: longport.h:1854
const struct lb_decimal_t * submitted_quantity
Definition: longport.h:1838
const char * symbol
Definition: longport.h:1826
const struct lb_decimal_t * trailing_amount
Definition: longport.h:1858
const struct lb_decimal_t * submitted_price
Definition: longport.h:1846
Definition: longport.h:3008
const char * order_id
Definition: longport.h:3012
Definition: longport.h:1949
uintptr_t num_candlesticks
Definition: longport.h:1953
uint8_t sub_types
Definition: longport.h:1951
enum lb_period_t * candlesticks
Definition: longport.h:1952
const char * symbol
Definition: longport.h:1950
Definition: longport.h:1516
uint8_t second
Definition: longport.h:1519
uint8_t minute
Definition: longport.h:1518
uint8_t hour
Definition: longport.h:1517
Definition: longport.h:1374
const struct lb_decimal_t * price
Definition: longport.h:1378
enum lb_trade_session_t trade_session
Definition: longport.h:1429
int64_t timestamp
Definition: longport.h:1386
enum lb_trade_direction_t direction
Definition: longport.h:1425
const char * trade_type
Definition: longport.h:1421
int64_t volume
Definition: longport.h:1382
Definition: longport.h:2463
enum lb_trade_session_t trade_session
Definition: longport.h:2475
struct lb_time_t end_time
Definition: longport.h:2471
struct lb_time_t begin_time
Definition: longport.h:2467
Definition: longport.h:1548
uintptr_t num_securities
Definition: longport.h:1568
const char *const * securities
Definition: longport.h:1564
uint32_t flags
Definition: longport.h:1552
const char * name
Definition: longport.h:1560
enum lb_securities_update_mode_t mode
Definition: longport.h:1572
int64_t id
Definition: longport.h:1556
Definition: longport.h:3503
const struct lb_decimal_t * change_value
Definition: longport.h:3527
const struct lb_decimal_t * to_call_price
Definition: longport.h:3583
const struct lb_decimal_t * turnover
Definition: longport.h:3535
const struct lb_decimal_t * change_rate
Definition: longport.h:3523
const struct lb_decimal_t * balance_point
Definition: longport.h:3599
const struct lb_decimal_t * leverage_ratio
Definition: longport.h:3591
struct lb_date_t expiry_date
Definition: longport.h:3539
const struct lb_decimal_t * delta
Definition: longport.h:3575
const struct lb_decimal_t * conversion_ratio
Definition: longport.h:3595
const struct lb_decimal_t * premium
Definition: longport.h:3563
enum lb_warrant_status_t status
Definition: longport.h:3603
const struct lb_decimal_t * itm_otm
Definition: longport.h:3567
const struct lb_decimal_t * implied_volatility
Definition: longport.h:3571
const char * name
Definition: longport.h:3515
const struct lb_decimal_t * strike_price
Definition: longport.h:3543
const struct lb_decimal_t * upper_strike_price
Definition: longport.h:3547
enum lb_warrant_type_t warrant_type
Definition: longport.h:3511
const struct lb_decimal_t * effective_leverage
Definition: longport.h:3587
const struct lb_decimal_t * lower_strike_price
Definition: longport.h:3551
int64_t volume
Definition: longport.h:3531
const char * symbol
Definition: longport.h:3507
int64_t outstanding_qty
Definition: longport.h:3555
const struct lb_decimal_t * last_done
Definition: longport.h:3519
const struct lb_decimal_t * outstanding_ratio
Definition: longport.h:3559
const struct lb_decimal_t * call_price
Definition: longport.h:3579
Definition: longport.h:2229
const struct lb_decimal_t * turnover
Definition: longport.h:2265
const struct lb_decimal_t * open
Definition: longport.h:2245
const struct lb_decimal_t * prev_close
Definition: longport.h:2241
struct lb_date_t expiry_date
Definition: longport.h:2277
const struct lb_decimal_t * conversion_ratio
Definition: longport.h:2293
const struct lb_decimal_t * high
Definition: longport.h:2249
const char * underlying_symbol
Definition: longport.h:2317
const struct lb_decimal_t * low
Definition: longport.h:2253
enum lb_warrant_type_t category
Definition: longport.h:2297
const struct lb_decimal_t * implied_volatility
Definition: longport.h:2273
int64_t timestamp
Definition: longport.h:2257
struct lb_date_t last_trade_date
Definition: longport.h:2281
const struct lb_decimal_t * strike_price
Definition: longport.h:2301
const struct lb_decimal_t * upper_strike_price
Definition: longport.h:2305
const struct lb_decimal_t * lower_strike_price
Definition: longport.h:2309
int64_t volume
Definition: longport.h:2261
const char * symbol
Definition: longport.h:2233
enum lb_trade_status_t trade_status
Definition: longport.h:2269
int64_t outstanding_quantity
Definition: longport.h:2289
const struct lb_decimal_t * last_done
Definition: longport.h:2237
const struct lb_decimal_t * outstanding_ratio
Definition: longport.h:2285
const struct lb_decimal_t * call_price
Definition: longport.h:2313
Definition: longport.h:3044
uintptr_t num_securities
Definition: longport.h:3060
const char * name
Definition: longport.h:3052
int64_t id
Definition: longport.h:3048
const struct lb_watchlist_security_t * securities
Definition: longport.h:3056
Definition: longport.h:3018
int64_t watched_at
Definition: longport.h:3038
const char * name
Definition: longport.h:3030
const char * symbol
Definition: longport.h:3022
const struct lb_decimal_t * watched_price
Definition: longport.h:3034
enum lb_market_t market
Definition: longport.h:3026