中文

Fund

Get Fund Symbol List

Corresponding Request Class: FundSymbolRequest

Description

Get all fund symbol list.

Parameters

None

Return

com.tigerbrokers.stock.openapi.client.https.response.fund.FundSymbolResponse source

The specific structure is as follows:

public class FundSymbolResponse extends TigerResponse {
  @JSONField(name = "data")
  private List<String> symbols;
}

The returned data can be accessed through the FundSymbolResponse.getSymbols() method, which returns a List containing the fund symbol data.

Example

TigerHttpClient client = TigerHttpClient.getInstance().clientConfig(
      ClientConfig.DEFAULT_CONFIG);
FundSymbolResponse response = client.execute(FundSymbolRequest.newRequest());
if (response.isSuccess()) {
  ApiLogger.info(JSONObject.toJSONString(response));
} else {
  ApiLogger.info("response error:" + response.getMessage());
}

Return Example

{
    "code":0,
    "data":[
        "IE00B11XZ988.USD",
        "IE00B7SZLL34.SGD",
        "LU0790902711.USD",
        "LU0476943708.HKD",
        "LU0098860793.USD",
        "SG9999014039.USD"
        // ....
    ],
    "message":"success",
    "sign":"zCIL+uNR083O4FoEUYKudVcstKCzMlZQD2WxRLhjf7pj2qaxhGCaJUtFY95zsmvK0kEI7YL/MyyTMsQU8dfd4/oF9FdDQdWWZRQxAiyJe8+aQuBdRg+BxN8xOl3TahTx2pPklyAxQIMKRJBU3ZgY9OPb040kucXTWgNyP8O643w=",
    "success":true,
    "timestamp":1690858442132
}

Get Fund Contract Information

Corresponding Request Class: FundContractsRequest

Description

Batch retrieve fund contract information.

Input Parameters

com.tigerbrokers.stock.openapi.client.https.request.fund.FundContractsRequest

ParameterTypeRequiredDescription
symbolsList<String>YesFund symbol list e.g.: "IE00B11XZ988.USD" / "LU0790902711.USD"
langstringNoLanguage support: zh_CN, zh_TW, en_US, default: en_US

Return

com.tigerbrokers.stock.openapi.client.https.response.fund.FundContractsResponse

The data item fields are as follows: com.tigerbrokers.stock.openapi.client.https.domain.fund.item.FundContractItem

NameExampleDescription
symbolIE00B464Q616.USDFund symbol with currency suffix
nameASIA STRATEGIC INTEREST BOND FUND "E" (USD) INC MONTHLYFund name
companyNamePIMCO Global Advisors (Ireland) LimitedFund company name
marketUSMarket /US/HK/CN
secTypeFUNDSecurity type
currencyUSDUSD/HKD/CNH
tradeabletrueWhether tradeable
subTypeFixed IncomeSub-category
dividendTypeINCDividend type
tigerVaultfalseWhether Tiger Vault

Example

List<String> symbols = new ArrayList<>();
symbols.add("IE00B11XZ988.USD");
symbols.add("LU0476943708.HKD");
FundContractsRequest request = FundContractsRequest.newRequest(symbols, Language.zh_CN);
FundContractsResponse response = client.execute(request);
if (response.isSuccess()) {
  System.out.println(JSONObject.toJSONString(response));
} else {
  System.out.println("response error:" + response.getMessage());
}

Return Example

{
    "code":0,
    "data":[
        {
            "companyName":"PIMCO Global Advisors (Ireland) Limited",
            "currency":"USD",
            "dividendType":"ACC",
            "market":"MF",
            "name":"PIMCO Total Return Bond Fund E Acc",
            "secType":"FUND",
            "subType":"Fixed Income",
            "symbol":"IE00B11XZ988.USD",
            "tigerVault":false,
            "tradeable":true
        },
        {
            "companyName":"Franklin Templeton Investments",
            "currency":"HKD",
            "dividendType":"INC",
            "market":"MF",
            "name":"Templeton Global Total Return Fund A (Mdis)HKD",
            "secType":"FUND",
            "subType":"Fixed Income",
            "symbol":"LU0476943708.HKD",
            "tigerVault":false,
            "tradeable":true
        }
    ],
    "message":"success",
    "sign":"yx8Wv8c1VlcdyWunteBWpW+xdQQ8pBxN4LGCi/SS230saV26rWjV4xupE04uSmjOBnXz+IUlMGEsgHeIXI18XuZh89n4aeC4djkDbmFzchSCTtgaN8icav8H5SKYUuzrkriKQPsZOUpCREJyDSplvVwnhC+yJIK81M7XILgDTMU=",
    "success":true,
    "timestamp":1690871506499
}

Get Fund Latest Quote

Corresponding Request Class: FundQuoteRequest

Description

Get fund latest quote information.

Parameters

ParameterTypeRequiredDescription
symbolsList<String>YesFund symbols, maximum of 500

Return com.tigerbrokers.stock.openapi.client.https.response.fund.FundQuoteResponsesource

Structure as follows:

public class FundQuoteResponse extends TigerResponse {
  @JSONField(name = "data")
  private List<FundQuoteItem> quoteItems;
}

The returned data can be accessed through the FundQuoteResponse.getQuoteItems() method, returning a list of FundQuoteItem objects. The properties of com.tigerbrokers.stock.openapi.client.https.domain.fund.item.FundQuoteItem are as follows:

FieldTypeDescription
symbolstringSymbol code
closefloatClose price
timestamplongTimestamp

Specific fields can be accessed through object getter methods, such as getSymbol()

Example

    List<String> symbols = new ArrayList<>();
    symbols.add("IE00B11XZ988.USD");
    symbols.add("LU0476943708.HKD");

    FundQuoteRequest request = FundQuoteRequest.newRequest(symbols);
    FundQuoteResponse response = client.execute(request);
    if (response.isSuccess()) {
      System.out.println(JSONObject.toJSONString(response));
    } else {
      System.out.println("response error:" + response.getMessage());
    }

Return Example

{
    "code":0,
    "data":[
        {
            "close":25.33,
            "symbol":"IE00B11XZ988.USD",
            "timestamp":1690732800000
        },
        {
            "close":5.36,
            "symbol":"LU0476943708.HKD",
            "timestamp":1690732800000
        }
    ],
    "message":"success",
    "sign":"lRsJPcIf/NfEoTAKH+cR0S1F3dSNuxntCBZ13BaZKVjrjSbUZEg2epbeaqWrxzxnnoXSl66dbrHuQ7+F3TKmYIjjpO0ZcZbhLMdclO0AQWRrrCtpmytMIQSuLsGWqhO+N0mNAVgMCBGWB8Af4kZOZw3K6IPP9abTLKeteDH5zNk=",
    "success":true,
    "timestamp":1690873154646
}

Get Fund Historical Quote

Corresponding Request Class: FundHistoryQuoteRequest

Description

Get fund historical quote information.

Parameters

ParameterTypeRequiredDescription
symbolsList<String>YesFund symbols, maximum of 500
begin_timeLongYesStart timestamp in milliseconds (ms)
end_timeLongYesEnd timestamp in milliseconds (ms)
limitintegerNoRequest return data limit per symbol

Return com.tigerbrokers.stock.openapi.client.https.response.fund.FundHistoryQuoteResponsesource

Structure as follows:

public class FundHistoryQuoteResponse extends TigerResponse {
  @JSONField(name = "data")
  private List<FundHistoryQuoteItem> quoteItems;
}

The returned data can be accessed through the FundHistoryQuoteResponse.getQuoteItems() method, returning a list of FundHistoryQuoteItem objects. The properties of com.tigerbrokers.stock.openapi.client.https.domain.fund.item.FundHistoryQuoteItem are as follows:

FieldTypeDescription
symbolstringSymbol code
itemsList<FundQuotePoint>Historical quote list

FundQuotePoint properties:

FieldTypeDescription
navdoubleNet Asset Value
timelongTimestamp

Specific fields can be accessed through object getter methods, such as getNav()

Example

    List<String> symbols = new ArrayList<>();
    symbols.add("IE00B11XZ988.USD");
    symbols.add("LU0476943708.HKD");

    FundHistoryQuoteRequest request = FundHistoryQuoteRequest.newRequest(symbols);
    request.beginTime(DateUtils.getTimestamp("2023-07-01", TimeZoneId.Shanghai));
    request.endTime(DateUtils.getTimestamp("2023-07-26", TimeZoneId.Shanghai));
    request.limit(5);
    FundHistoryQuoteResponse response = client.execute(request);
    if (response.isSuccess()) {
      System.out.println(JSONObject.toJSONString(response));
    } else {
      System.out.println("response error:" + response.getMessage());
    }

Return Example

{
    "code":0,
    "data":[
        {
            "items":[
                {
                    "nav":25.38,
                    "time":1690300800000
                },
                {
                    "nav":25.31,
                    "time":1690214400000
                },
                {
                    "nav":25.34,
                    "time":1690128000000
                },
                {
                    "nav":25.37,
                    "time":1689868800000
                },
                {
                    "nav":25.36,
                    "time":1689782400000
                }
            ],
            "symbol":"IE00B11XZ988.USD"
        },
        {
            "items":[
                {
                    "nav":5.39,
                    "time":1690300800000
                },
                {
                    "nav":5.38,
                    "time":1690214400000
                },
                {
                    "nav":5.39,
                    "time":1690128000000
                },
                {
                    "nav":5.38,
                    "time":1689868800000
                },
                {
                    "nav":5.4,
                    "time":1689782400000
                }
            ],
            "symbol":"LU0476943708.HKD"
        }
    ],
    "message":"success",
    "sign":"uG/+KZ4w5Rzroex9jQECO57WH5rv0HlkRY3O+otB3nyAS3+L3+owhfBsowNkKABJn7GdIw8VvBgBnMZXW2BdfLaq50S99QwZ4OAW0oxeA708QMdoB/BN3O0CReo+ztgDVpJVyImQDJnOHgsOaqyqzc7cNoDwnc0e2h1ETv6JZtw=",
    "success":true,
    "timestamp":1690875443405
}