Fund
Get Fund Symbol List
request: TigerRequest(QuoteApiService.FUND_ALL_SYMBOLS)
Description
Get a list of all symbols
Argument
Argument | Type | Required | Description |
---|---|---|---|
- | - | - | - |
Response
TigerOpenAPI.Model.TigerListStringResponse
source
Structured as follows
namespace TigerOpenAPI.Model
{
public class TigerListStringResponse : TigerResponse
{
[JsonProperty(PropertyName = "data")]
public List<string> Data { get; set; }
}
}
Use TigerListStringResponse.Data
to get the data returned from the server. The result is a list that contains the fund symbols
Example
static async Task<TigerListStringResponse?> GetAllFundSymbolsAsync(QuoteClient quoteClient)
{
TigerRequest<TigerListStringResponse> request = new TigerRequest<TigerListStringResponse>()
{
ApiMethodName = QuoteApiService.FUND_ALL_SYMBOLS,
ModelValue = new FundSymbolModel()
};
return await quoteClient.ExecuteAsync(request);
}
Return Example
{
"data":[
"IE00B11XZ988.USD",
"IE00B7SZLL34.SGD",
"LU0790902711.USD",
"LU0476943708.HKD",
"LU0098860793.USD",
"SG9999014039.USD"
// ....
],
"code":0,
"message":"success",
"timestamp":1690884638843,
"sign":"GT6z3Isx728/RkfMJqlyVkqZ4o+hx+oidIaB9yu9YfwEZYOV676de92u6EwYmIEzHPfMfmfH4b25139UKxFLJ2i+IM/XXJBCLVKjVzdr9sCcShfhBrm9SBLQlA76mprAYFlyaDq0jq/R/tjfsI0BvLEe4LwwsUg143QtzWWhe8Q="
}
Get Fund Contracts
request: TigerRequest(QuoteApiService.FUND_CONTRACTS)
Description
Get fund contracts in batches.
Argument
TigerOpenAPI.Quote.Model.FundSymbolModel
Argument | Type | optional | Description |
---|---|---|---|
symbols | List<string> | Yes | Ticker symbol of the fund, example: "IE00B11XZ988.USD" / "LU0790902711.USD" |
lang | string | No | Language: zh_CN,zh_TW,en_US. en_US by default |
Response
TigerOpenAPI.Quote.Response.FundContractsResponse
source
Use FundContractsResponse.Data
to access returned data. This property will return FundContractItem
objects, whereTigerOpenAPI.Quote.Response.FundContractItem
has the following attributes:
Name | Example | Description |
---|---|---|
symbol | IE00B464Q616.USD | fund symbol, suffix for currency |
name | ASIA STRATEGIC INTEREST BOND FUND "E" (USD) INC MONTHLY | name of the asset |
companyName | PIMCO Global Advisors (Ireland) Limited | company name |
market | US | market /US/HK/CN |
secType | FUND | security type |
currency | USD | USD/HKD/CNH |
tradeable | true | if available for trading |
subType | Fixed Income | sub type |
dividendType | INC | dividend type |
tigerVault | false | is tiger vault |
Example
static async Task<FundContractsResponse?> GetFundContractsAsync(QuoteClient quoteClient)
{
TigerRequest<FundContractsResponse> request = new TigerRequest<FundContractsResponse>()
{
ApiMethodName = QuoteApiService.FUND_CONTRACTS,
ModelValue = new FundSymbolModel()
{
Symbols = new List<string>()
{
"HK0000910932.HKD",
"IE00B464Q616.USD"
},
Lang = Language.en_US
}
};
return await quoteClient.ExecuteAsync(request);
}
Response Example
{
"data":[
{
"symbol":"HK0000910932.HKD",
"name":"Bosera HKD Money Market ETF (Unlisted Class) Class A HKD",
"companyName":"Bosera Asset Management(Intl) Co., Ltd.",
"market":"MF",
"secType":"FUND",
"currency":"HKD",
"tradeable":true,
"subType":"Vault",
"dividendType":"",
"tigerVault":true
},
{
"symbol":"IE00B464Q616.USD",
"name":"ASIA STRATEGIC INTEREST BOND FUND \"E\" (USD) INC MONTHLY",
"companyName":"PIMCO Global Advisors (Ireland) Limited",
"market":"MF",
"secType":"FUND",
"currency":"USD",
"tradeable":true,
"subType":"Fixed Income",
"dividendType":"INC",
"tigerVault":false
}
],
"code":0,
"message":"success",
"timestamp":1690891416922,
"sign":"aGY6wWr+licUq9+nsXMID56T8GHYoO9NtBTHzeFbL8Y7oEVAbqSRIAYI1KATFbAOEDI1roBCrJz27zdYsbzifyf8jwzSsgcjraxBAS+mLDMZVq295bedP0SGaJ2WhqSjpeNr2OA8ICmc3ylyQ7CCxS/mH+p0qeX68NKh/6yifs4="
}
Get Latest Quotes
request: TigerRequest(QuoteApiService.FUND_QUOTE)
Description
Get Fund latest Quotes
Argument
TigerOpenAPI.Quote.Model.FundSymbolModel
Argument | Type | Required | Description |
---|---|---|---|
symbols | List<String> | yes | symbol, maximum number per request is 500 |
ResponseTigerOpenAPI.Quote.Response.FundQuoteResponse
source
Structured as follows:
namespace TigerOpenAPI.Quote.Response
{
public class FundQuoteResponse : TigerResponse
{
[JsonProperty(PropertyName = "data")]
public List<FundQuoteItem> Data { get; set; }
}
}
Use FundQuoteResponse.Data
to access returned data. This method will return a list of FundQuoteItem
object, whereTigerOpenAPI.Quote.Response.FundQuoteItem
has the following attributes:
Name | Type | Description |
---|---|---|
symbol | string | fund symbol |
close | float | close price |
timestamp | long | timestamp |
Use the properties, such asFundQuoteItem.Symbol
to access data
Example
static async Task<FundQuoteResponse?> GetFundQuoteAsync(QuoteClient quoteClient)
{
TigerRequest<FundQuoteResponse> request = new TigerRequest<FundQuoteResponse>()
{
ApiMethodName = QuoteApiService.FUND_QUOTE,
ModelValue = new FundSymbolModel()
{
Symbols = new List<string>()
{
"HK0000910932.HKD",
"IE00B464Q616.USD"
},
Lang = Language.en_US
}
};
return await quoteClient.ExecuteAsync(request);
}
Response Example
{
"data":[
{
"symbol":"HK0000910932.HKD",
"close":10.1587,
"timestamp":1690819200000
},
{
"symbol":"IE00B464Q616.USD",
"close":6.91,
"timestamp":1690732800000
}
],
"code":0,
"message":"success",
"timestamp":1690892092527,
"sign":"MQ9mddIwfM1SCqE2+p2olBlAmzqR9aH7Ly47MKTkzOGVOpR0ZhQgs2ESLdTfkEaxFZEHIV1tqHajPvtdNy9RXWytkzhq937krkMuMrs3VIspJoTgHI7ixGhDfhQo1wak7C6PWjLCkITr4j+EKjrFe4G1dAddG9zOIyW+oSYb75I="
}
Get Historical Quotes
request: TigerRequest(QuoteApiService.FUND_HISTORY_QUOTE)
Description
Get Fund historical quotes
Argument
TigerOpenAPI.Quote.Model.FundQuoteHistoryModel
Argument | Type | Required | Description |
---|---|---|---|
symbols | List<String> | Yes | symbol, maximum number per request is 500 |
begin_time | Long | Yes | Begin time. Unix time stamp in millisecond or a date string. Example: 1639371600000 |
end_time | Long | Yes | End time. Unix time stamp in millisecond or a date string. Example: 1639471600000 |
limit | integer | No | The number of bars returned |
ResponseTigerOpenAPI.Quote.Response.FundHistoryQuoteResponse
source
Structured as follows:
namespace TigerOpenAPI.Quote.Response
{
public class FundHistoryQuoteResponse : TigerResponse
{
[JsonProperty(PropertyName = "data")]
public List<FundHistoryQuoteItem> Data { get; set; }
}
}
Use FundHistoryQuoteResponse.Data
to access returned data. This method will return a list of FundHistoryQuoteItem
object, whereTigerOpenAPI.Quote.Response.FundHistoryQuoteItem
has the following attributes:
Name | Type | Description |
---|---|---|
symbol | string | fund symbol |
items | List<FundQuotePoint> | list of historical quote data |
FundQuotePoint
has the following attributes:
Name | Type | Description |
---|---|---|
nav | double | net value |
time | long | timestamp |
Use the proterties, such asFundQuotePoint.Nav
to access data
Example
static async Task<FundHistoryQuoteResponse?> GetFundHistoryQuoteAsync(QuoteClient quoteClient)
{
TigerRequest<FundHistoryQuoteResponse> request = new TigerRequest<FundHistoryQuoteResponse>()
{
ApiMethodName = QuoteApiService.FUND_HISTORY_QUOTE,
ModelValue = new FundQuoteHistoryModel()
{
Symbols = new List<string>()
{
"HK0000910932.HKD",
"IE00B464Q616.USD"
},
BeginTime = DateUtil.ConvertTimestamp("2023-07-01 09:00:00", CustomTimeZone.HK_ZONE),
EndTime = DateUtil.ConvertTimestamp("2023-07-26 20:00:00", CustomTimeZone.HK_ZONE),
Limit = 5,
Lang = Language.en_US
}
};
return await quoteClient.ExecuteAsync(request);
}
Response Example
{
"data":[
{
"symbol":"HK0000910932.HKD",
"items":[
{
"nav":10.1508,
"time":1690300800000
},
{
"nav":10.1496,
"time":1690214400000
},
{
"nav":10.1483,
"time":1690128000000
},
{
"nav":10.1444,
"time":1689868800000
},
{
"nav":10.1431,
"time":1689782400000
}
]
},
{
"symbol":"IE00B464Q616.USD",
"items":[
{
"nav":6.91,
"time":1690300800000
},
{
"nav":6.9,
"time":1690214400000
},
{
"nav":6.9,
"time":1690128000000
},
{
"nav":6.92,
"time":1689868800000
},
{
"nav":6.94,
"time":1689782400000
}
]
}
],
"code":0,
"message":"success",
"timestamp":1690892757879,
"sign":"NO+L4TXXk6Z3Cp6gfINA3EVnyIaZSkv7uyOMtFjja3OHOzKJikUKf/eNfo5eo2chzi/nqwpHUMt8H1A1Sq0Mr8XqWBn6kPxjKvDk0aoJgWNoxEAmcDz1pTjXhF42gK2ylZzJcR8bpccA+jMAYiaXzbx7cXtYMYxPBx1TqjdXY9Y="
}