Fund

About 3 min

Get Fund Symbol List

request: TigerRequest(QuoteApiService.FUND_ALL_SYMBOLS)

Description

Get a list of all symbols

Argument

ArgumentTypeRequiredDescription
----

Response

TigerOpenAPI.Model.TigerListStringResponsesourceopen in new window

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

ArgumentTypeoptionalDescription
symbolsList<string>YesTicker symbol of the fund, example: "IE00B11XZ988.USD" / "LU0790902711.USD"
langstringNoLanguage: zh_CN,zh_TW,en_US. en_US by default

Response

TigerOpenAPI.Quote.Response.FundContractsResponsesourceopen in new window

Use FundContractsResponse.Data to access returned data. This property will return FundContractItem objects, whereTigerOpenAPI.Quote.Response.FundContractItem has the following attributes:

NameExampleDescription
symbolIE00B464Q616.USDfund symbol, suffix for currency
nameASIA STRATEGIC INTEREST BOND FUND "E" (USD) INC MONTHLYname of the asset
companyNamePIMCO Global Advisors (Ireland) Limitedcompany name
marketUSmarket /US/HK/CN
secTypeFUNDsecurity type
currencyUSDUSD/HKD/CNH
tradeabletrueif available for trading
subTypeFixed Incomesub type
dividendTypeINCdividend type
tigerVaultfalseis 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

ArgumentTypeRequiredDescription
symbolsList<String>yessymbol, maximum number per request is 500

ResponseTigerOpenAPI.Quote.Response.FundQuoteResponsesourceopen in new window

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:

NameTypeDescription
symbolstringfund symbol
closefloatclose price
timestamplongtimestamp

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

ArgumentTypeRequiredDescription
symbolsList<String>Yessymbol, maximum number per request is 500
begin_timeLongYesBegin time. Unix time stamp in millisecond or a date string. Example: 1639371600000
end_timeLongYesEnd time. Unix time stamp in millisecond or a date string. Example: 1639471600000
limitintegerNoThe number of bars returned

ResponseTigerOpenAPI.Quote.Response.FundHistoryQuoteResponsesourceopen in new window

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:

NameTypeDescription
symbolstringfund symbol
itemsList<FundQuotePoint>list of historical quote data

FundQuotePointhas the following attributes:

NameTypeDescription
navdoublenet value
timelongtimestamp

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="
}
Last update: