投資部門別情報(/markets/trades_spec)

投資部門別の情報を取得する事ができます

API概要

投資部門別売買状況(株式・金額)のデータを取得することができます。 配信データは下記のページで公表している内容と同一です。データの単位は千円です。 https://www.jpx.co.jp/markets/statistics-equities/investor-type/index.html

本APIの留意点

  • 2022年4月4日に行われた市場区分見直しに伴い、市場区分に応じた内容となっている統計資料は、 見直し後の市場区分に変更して掲載しています。

  • 過誤訂正により過去の投資部門別売買状況データが訂正された場合は、本APIでは以下のとおりデータを提供します。

    • 2023年4月3日以前に訂正が公表された過誤訂正:訂正前のデータは提供せず、訂正後のデータのみ提供します。

    • 2023年4月3日以降に訂正が公表された過誤訂正:訂正前と訂正後のデータのいずれも提供します。訂正が生じた場合には、市場名、開始日および終了日を同一とするレコードが追加され、公表日が新しいデータが訂正後、公表日が古いデータが訂正前のデータと識別することが可能です。

パラメータ及びレスポンス

データの取得では、セクション(section)または日付(from/to)の指定が可能です。 各パラメータの組み合わせとレスポンスの結果については以下のとおりです。

セクション(section)で指定可能なパラメータについてはこちらを参照ください。

投資部門別売買状況のデータを取得します

GET https://api.jquants.com/v1/markets/trades_spec

データの取得では、市場(section)または公表日の日付(from/to)が指定できます。

*は必須項目

Query Parameters

Headers

{
    "trades_spec": [
        {
            "PublishedDate":"2017-01-13",
            "StartDate":"2017-01-04",
            "EndDate":"2017-01-06",
            "Section":"TSE1st",
            "ProprietarySales":1311271004,
            "ProprietaryPurchases":1453326508,
            "ProprietaryTotal":2764597512,
            "ProprietaryBalance":142055504,
            "BrokerageSales":7165529005,
            "BrokeragePurchases":7030019854,
            "BrokerageTotal":14195548859,
            "BrokerageBalance":-135509151,
            "TotalSales":8476800009,
            "TotalPurchases":8483346362,
            "TotalTotal":16960146371,
            "TotalBalance":6546353,
            "IndividualsSales":1401711615,
            "IndividualsPurchases":1161801155,
            "IndividualsTotal":2563512770,
            "IndividualsBalance":-239910460,
            "ForeignersSales":5094891735,
            "ForeignersPurchases":5317151774,
            "ForeignersTotal":10412043509,
            "ForeignersBalance":222260039,
            "SecuritiesCosSales":76381455,
            "SecuritiesCosPurchases":61700100,
            "SecuritiesCosTotal":138081555,
            "SecuritiesCosBalance":-14681355,
            "InvestmentTrustsSales":168705109,
            "InvestmentTrustsPurchases":124389642,
            "InvestmentTrustsTotal":293094751,
            "InvestmentTrustsBalance":-44315467,
            "BusinessCosSales":71217959,
            "BusinessCosPurchases":63526641,
            "BusinessCosTotal":134744600,
            "BusinessCosBalance":-7691318,
            "OtherCosSales":10745152,
            "OtherCosPurchases":15687836,
            "OtherCosTotal":26432988,
            "OtherCosBalance":4942684,
            "InsuranceCosSales":15926202,
            "InsuranceCosPurchases":9831555,
            "InsuranceCosTotal":25757757,
            "InsuranceCosBalance":-6094647,
            "CityBKsRegionalBKsEtcSales":10606789,
            "CityBKsRegionalBKsEtcPurchases":8843871,
            "CityBKsRegionalBKsEtcTotal":19450660,
            "CityBKsRegionalBKsEtcBalance":-1762918,
            "TrustBanksSales":292932297,
            "TrustBanksPurchases":245322795,
            "TrustBanksTotal":538255092,
            "TrustBanksBalance":-47609502,
            "OtherFinancialInstitutionsSales":22410692,
            "OtherFinancialInstitutionsPurchases":21764485,
            "OtherFinancialInstitutionsTotal":44175177,
            "OtherFinancialInstitutionsBalance":-646207
        }
    ],
    "pagination_key": "value1.value2."
}

データ項目概要

APIコールサンプルコード

idToken=<YOUR idToken> && curl https://api.jquants.com/v1/markets/trades_spec?section=TSEPrime&from=20230324&to=20230403 -H "Authorization: Bearer $idToken" 

最終更新

© JPX Market Innovation & Research, Inc.