Documentation
¶
Overview ¶
Package jsontypes contains raw JSON response structs for the Longbridge Sharelist API. These types mirror the wire format exactly; callers should use the public types in the parent sharelist package instead.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SharelistDetail ¶
type SharelistDetail struct {
}
SharelistDetail is the response for the detail endpoint.
type SharelistInfo ¶
type SharelistInfo struct {
ID interface{} `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
Cover string `json:"cover"`
SubscribersCount int64 `json:"subscribers_count"`
CreatedAt string `json:"created_at"`
EditedAt string `json:"edited_at"`
ThisYearChg string `json:"this_year_chg"`
Creator interface{} `json:"creator"`
Stocks []SharelistStock `json:"stocks"`
Subscribed bool `json:"subscribed"`
Chg string `json:"chg"`
SharelistType int32 `json:"sharelist_type"`
IndustryCode string `json:"industry_code"`
}
SharelistInfo represents a sharelist with metadata and constituent stocks.
type SharelistList ¶
type SharelistList struct {
}
SharelistList is the response for the list and popular endpoints.
type SharelistScopes ¶
SharelistScopes holds subscription/ownership flags for the current user.
type SharelistStock ¶
type SharelistStock struct {
// Use Symbol in the public type instead.
CounterID string `json:"counter_id"`
Name string `json:"name"`
Market string `json:"market"`
Code string `json:"code"`
Intro string `json:"intro"`
UnreadChangeLogCategory string `json:"unread_change_log_category"`
Change string `json:"change"`
LastDone string `json:"last_done"`
TradeStatus *int32 `json:"trade_status"`
Latency *bool `json:"latency"`
}
SharelistStock describes a security in a sharelist.
Click to show internal directories.
Click to hide internal directories.