Coder Social home page Coder Social logo

frefrik / ark-invest-api Goto Github PK

View Code? Open in Web Editor NEW
56.0 4.0 19.0 2.5 MB

πŸ“ˆ API for tracking holdings and trades of ARK Invest funds

Home Page: https://arkfunds.io/api

License: MIT License

Python 98.34% HTML 0.66% CSS 0.69% Dockerfile 0.31%
ark invest api fastapi funds etf arkfunds finance stock ark-invest ark-funds

ark-invest-api's Introduction

ARK Invest API

GitHub Release Status Uptime week Uptime month

API for tracking holdings and trades of ARK Invest funds.

Endpoint Status: https://status.arkfunds.io

Click here to see a list of ARK ETFs
  • Active ETFs

    • ARKK - ARK Innovation ETF
    • ARKQ - ARK Autonomous Tech. & Robotics ETF
    • ARKW - ARK Next Generation Internet ETF
    • ARKG - ARK Genomic Revolution ETF
    • ARKF - ARK Fintech Innovation ETF
    • ARKX - ARK Space Exploration & Innovation ETF
  • Digital Asset ETFs

    • ARKA - ARK 21Shares Active Bitcoin Futures Strategy ETF
    • ARKB - ARK 21Shares Bitcoin ETF
    • ARKC - ARK 21Shares Active On-Chain Bitcoin Futures Strategy ETF
    • ARKD - ARK 21Shares Blockchain and Digital Economy Innovation ETF
    • ARKY - ARK 21Shares Active Bitcoin Ethereum Futures Strategy ETF
    • ARKZ - ARK 21Shares Active Ethereum Futures Strategy ETF
  • Index ETFs

    • PRNT - The 3D Printing ETF
    • IZRL - ARK Israel Innovative Technology ETF
    • CTRU - ARK Transparency ETF
  • Rize Index ETFs

    • CYBR - Rize Cybersecurity and Data Privacy ETF
    • CYCL - Rize Circular Economy Enablers UCITS ETF
    • FOOD - Rize Sustainable Future of Food UCITS ETF
    • LIFE - Rize Environmental Impact 100 UCITS ETF
    • LUSA - Rize USA Environmental Impact UCITS ETF
    • NFRA - Rize Global Sustainable Infrastructure UCITS ETF
    • PMNT - Rize Digital Payments Economy UCITS ETF
  • Other Funds

    • ARKVX - ARK Venture Fund

The API contains data for trades, holdings and news from the following dates:

Type Trades Holdings News
ARKF Active ETF 2020-09-09 2020-11-24 2020-05-07
ARKG Active ETF 2020-09-09 2020-11-24 2020-04-18
ARKK Active ETF 2020-09-09 2020-11-24 2020-04-07
ARKQ Active ETF 2020-09-11 2020-11-24 2020-04-18
ARKW Active ETF 2020-09-09 2020-11-24 2020-04-19
ARKX Active ETF 2021-04-07 2021-03-26 2021-02-07
IZRL Index ETF - 2020-11-24 2020-04-24
PRNT Index ETF - 2020-11-24 2020-08-20
CTRU1 Index ETF - 2021-12-09 2021-12-09
ARKA Digital Asset ETF - 2023-11-24 2022-09-26
ARKB Digital Asset ETF - 2024-01-11 2024-01-13
ARKC Digital Asset ETF - 2023-11-29 2023-11-13
ARKD Digital Asset ETF - 2023-11-28 2023-12-05
ARKY Digital Asset ETF - 2023-11-29 2023-11-17
ARKZ Digital Asset ETF - 2023-11-29 2023-11-16
ARKVX Venture Fund - 2022-09-30 -
CYBR Rize Index ETF - 2024-04-27 -
CYCL Rize Index ETF - 2024-04-27 -
FOOD Rize Index ETF - 2024-04-27 -
LIFE Rize Index ETF - 2024-04-27 -
LUSA Rize Index ETF - 2024-04-27 -
NFRA Rize Index ETF - 2024-04-27 -
PMNT Rize Index ETF - 2024-04-27 -

Documentation

Swagger UI: https://arkfunds.io/api
ReDoc: https://arkfunds.io/api/docs

Endpoints

V2
V1

ETF Profile (v2)

GET /v2/etf/profile

Returns ARK ETF profile information

Query Parameters

Parameter Required Description
symbol YES ARK ETF symbol

Example

Request

GET https://arkfunds.io/api/v2/etf/profile?symbol=ARKK

Response

{
    "symbol": "ARKK",
    "profile": {
        "symbol": "ARKK",
        "name": "ARK Innovation ETF",
        "description": "ARKK is an actively managed ETF that seeks long-term growth of capital by investing under normal circumstances primarily (at least 65% of its assets) in domestic and foreign equity securities of companies that are relevant to the Fund’s investment theme of disruptive innovation.",
        "fund_type": "Active Equity ETF",
        "inception_date": "2014-10-31",
        "cusip": "00214Q104",
        "isin": "US00214Q1040",
        "website": "https://ark-funds.com/arkk"
    }
}

ETF Holdings (v2)

GET /v2/etf/holdings

Returns ARK ETF holdings

Multiple ETF symbols can be passed in same query (comma separated) to retrieve data for multiple funds. I.e. ?symbol=ARKK,ARKF,ARKW

Query Parameters

Parameter Required Description
symbol YES ARK ETF symbols
date_from NO From date (ISO 8601 format)
date_to NO To date (ISO 8601 format)
limit NO Limit number of results

Example

Request

GET https://arkfunds.io/api/v2/etf/holdings?symbol=ARKK&limit=3

Response

{
  "symbol": "ARKK",
  "date_from": "2021-10-08",
  "date_to": "2021-10-08",
  "holdings": [
    {
      "fund": "ARKK",
      "date": "2021-10-08",
      "ticker": "TSLA",
      "company": "TESLA INC",
      "cusip": "88160R101",
      "shares": 2469443,
      "market_value": 1959774659.23,
      "share_price": 793.61,
      "weight": 9.65,
      "weight_rank": 1
    },
    {
      "fund": "ARKK",
      "date": "2021-10-08",
      "ticker": "TDOC",
      "company": "TELADOC HEALTH INC",
      "cusip": "87918A105",
      "shares": 9124177,
      "market_value": 1193442351.6,
      "share_price": 130.8,
      "weight": 5.88,
      "weight_rank": 2
    },
    {
      "fund": "ARKK",
      "date": "2021-10-08",
      "ticker": "ROKU",
      "company": "ROKU INC",
      "cusip": "77543R102",
      "shares": 3561738,
      "market_value": 1155677128.86,
      "share_price": 324.47,
      "weight": 5.69,
      "weight_rank": 3
    }
  ]
}

ETF Trades (v2)

GET /v2/etf/trades

Returns ARK ETF intraday trades

Multiple ETF symbols can be passed in same query (comma separated) to retrieve data for multiple funds. I.e. ?symbol=ARKK,ARKF,ARKW

Query Parameters

Parameter Required Description
symbol YES ARK ETF symbols
date_from NO From date (ISO 8601 format)
date_to NO To date (ISO 8601 format)
limit NO Limit number of results

Example

Request

GET https://arkfunds.io/api/v2/etf/trades?symbol=ARKK&limit=3

Response

{
  "symbol": "ARKK",
  "date_from": "2021-10-08",
  "date_to": "2021-10-08",
  "trades": [
    {
      "fund": "ARKK",
      "date": "2021-10-08",
      "ticker": "NTLA",
      "company": "INTELLIA THERAPEUTICS INC",
      "direction": "Buy",
      "cusip": "45826J105",
      "shares": 269179,
      "etf_percent": 0.1608
    },
    {
      "fund": "ARKK",
      "date": "2021-10-08",
      "ticker": "CRSP",
      "company": "CRISPR THERAPEUTICS AG",
      "direction": "Buy",
      "cusip": "H17182108",
      "shares": 268472,
      "etf_percent": 0.1293
    },
    {
      "fund": "ARKK",
      "date": "2021-10-08",
      "ticker": "DOCU",
      "company": "DOCUSIGN INC",
      "direction": "Sell",
      "cusip": "256163106",
      "shares": 78867,
      "etf_percent": 0.103
    }
  ]
}

ETF News (v2)

GET /v2/etf/news

Returns ARK ETF news

Multiple ETF symbols can be passed in same query (comma separated) to retrieve data for multiple funds. I.e. ?symbol=ARKK,ARKF,ARKW

Query Parameters

Parameter Required Description
symbol YES ARK ETF symbols
date_from NO From date (ISO 8601 format)
date_to NO To date (ISO 8601 format)
limit NO Limit number of results

Example

Request

GET https://arkfunds.io/api/v2/etf/news?symbol=ARKG&date_from=2021-04-02&date_to=2021-04-05

Response

{
    "symbol": "ARKG",
    "date_from": "2021-04-02",
    "date_to": "2021-04-05",
    "news": [{
        "id": 41,
        "datetime": "2021-04-05T12:03:00+00:00",
        "related": "ARKG",
        "source": "MarketWatch",
        "headline": "Tesla is on fire, but these EV-related stocks could end up just as hot",
        "summary": "There are many ways to play the electric-vehicle industry as it grows exponentially.",
        "url": "https://www.marketwatch.com/story/tesla-is-on-fire-but-these-ev-related-stocks-could-end-up-just-as-hot-11617638639",
        "image": "https://images.mktw.net/im-320482/social"
    }, {
        "id": 42,
        "datetime": "2021-04-02T07:27:32+00:00",
        "related": "ARKG",
        "source": "seekingalpha.com",
        "headline": "ARK Genomic Revolution Multi-Sector ETF: Poised For Continued Underperformance",
        "summary": "I am neutral on the ETF. For short-term gains, investors may wish to look elsewhere.",
        "url": "https://seekingalpha.com/article/4417325-ark-genomic-revolution-multi-sector-etf-underperformance",
        "image": "https://static.seekingalpha.com/cdn/s3/uploads/getty_images/842211270/medium_image_842211270.jpg"
    }]
}

ETF Performance (v2)

GET /v2/etf/performance

Returns ARK ETF Performance

Multiple ETF symbols can be passed in same query (comma separated) to retrieve data for multiple funds. I.e. ?symbol=ARKK,ARKF,ARKW

Query Parameters

Parameter Required Description
symbol YES ARK ETF symbols
formatted NO Format values (default: false)

Example

Request

GET https://arkfunds.io/api/v2/etf/performance?symbol=ARKK&formatted=true

Response

{
  "symbol": "ARKK",
  "performance": [
    {
      "fund": "ARKK",
      "overview": {
        "asOfDate": "2022-06-24",
        "ytdReturn": "-53.52%",
        "oneYearReturn": "-64.10%",
        "threeYearReturn": "-0.03%"
      },
      "trailingReturns": {
        "asOfDate": "2022-06-16",
        "ytd": "-60.84%",
        "oneMonth": "-9.81%",
        "threeMonth": "-38.15%",
        "oneYear": "-67.38%",
        "threeYear": "-3.90%",
        "fiveYear": "12.68%",
        "tenYear": "0.00%"
      },
      "annualReturns": [
        {
          "year": "2022",
          "value": null
        },
        {
          "year": "2021",
          "value": "-23.35%"
        },
        {
          "year": "2020",
          "value": "156.61%"
        },
        {
          "year": "2019",
          "value": "35.73%"
        },
        {
          "year": "2018",
          "value": "3.58%"
        },
        {
          "year": "2017",
          "value": "87.38%"
        },
        {
          "year": "2016",
          "value": "-1.96%"
        },
        {
          "year": "2015",
          "value": "3.76%"
        }]
    }]
}

Stock Profile (v2)

GET /v2/stock/profile

Returns Stock profile information

Query Parameters

Parameter Required Description
symbol YES Stock symbol
price NO Show current share price (default: false)

Example

Request

GET https://arkfunds.io/api/v2/stock/profile?symbol=TSLA&price=true

Response

{
  "symbol": "TSLA",
  "profile": {
    "ticker": "TSLA",
    "name": "Tesla, Inc.",
    "country": "United States",
    "industry": "Auto Manufacturers",
    "sector": "Consumer Cyclical",
    "fullTimeEmployees": 70757,
    "summary": "Tesla, Inc. designs, develops, manufactures, leases, and sells electric vehicles, and energy generation and storage systems in the United States, China, and internationally. The company operates in two segments, Automotive, and Energy Generation and Storage. The Automotive segment offers electric vehicles, as well as sells automotive regulatory credits. It provides sedans and sport utility vehicles through direct and used vehicle sales, a network of Tesla Superchargers, and in-app upgrades; and purchase financing and leasing services. This segment is also involved in the provision of non-warranty after-sales vehicle services, sale of used vehicles, retail merchandise, and vehicle insurance, as well as sale of products through its subsidiaries to third party customers; services for electric vehicles through its company-owned service locations, and Tesla mobile service technicians; and vehicle limited warranties and extended service plans. The Energy Generation and Storage segment engages in the design, manufacture, installation, sale, and leasing of solar energy generation and energy storage products, and related services to residential, commercial, and industrial customers and utilities through its website, stores, and galleries, as well as through a network of channel partners. This segment also offers service and repairs to its energy product customers, including under warranty; and various financing options to its solar customers. The company was formerly known as Tesla Motors, Inc. and changed its name to Tesla, Inc. in February 2017. Tesla, Inc. was founded in 2003 and is headquartered in Palo Alto, California.",
    "website": "http://www.tesla.com",
    "market": "us_market",
    "exchange": "NasdaqGS",
    "currency": "USD",
    "marketCap": 786880266240,
    "sharesOutstanding": 1001769984,
    "price": 785.49,
    "change": -8.119995,
    "changep": -1.023172,
    "last_trade": "2021-10-08T20:00:03"
  }
}

Stock Trades (v2)

GET /v2/stock/trades

Returns Stock Trades

Query Parameters

Parameter Required Description
symbol YES Stock symbol
direction NO Filter on buy/sell
date_from NO From date (ISO 8601 format)
date_to NO To date (ISO 8601 format)
limit NO Limit number of results

Example

Request

GET https://arkfunds.io/api/v2/stock/trades?symbol=TSLA&date_from=2021-08-01&direction=sell

Response

{
    "symbol": "TSLA",
    "date_from": "2021-08-01",
    "date_to": "2021-08-05",
    "trades": [{
        "date": "2021-08-05",
        "fund": "ARKK",
        "direction": "Sell",
        "shares": 144200,
        "etf_percent": 0.4478
    }, {
        "date": "2021-08-05",
        "fund": "ARKW",
        "direction": "Sell",
        "shares": 19558,
        "etf_percent": 0.2365
    }, {
        "date": "2021-08-04",
        "fund": "ARKW",
        "direction": "Sell",
        "shares": 8100,
        "etf_percent": 0.0989
    }]
}

Stock Fund Ownership (v2)

GET /v2/stock/fund-ownership

Returns Stock Fund Ownership

Query Parameters

Parameter Required Description
symbol YES Stock symbol
date_from NO From date (ISO 8601 format)
date_to NO To date (ISO 8601 format)
limit NO Limit number of results

Example

Request

GET https://arkfunds.io/api/v2/stock/fund-ownership?symbol=TSLA

Response

{
    "symbol": "TSLA",
    "date_from": "2021-08-20",
    "date_to": "2021-08-20",
    "data": [{
        "date": "2021-08-20",
        "ownership": [{
            "date": "2021-08-20",
            "fund": "ARKK",
            "weight": 10.56,
            "weight_rank": 1,
            "shares": 3256252,
            "market_value": 2192988034.44
        }, {
            "date": "2021-08-20",
            "fund": "ARKQ",
            "weight": 11.93,
            "weight_rank": 1,
            "shares": 458874,
            "market_value": 309037872.78
        }, {
            "date": "2021-08-20",
            "fund": "ARKW",
            "weight": 10.38,
            "weight_rank": 1,
            "shares": 843781,
            "market_value": 568261190.07
        }],
        "totals": {
            "funds": 3,
            "shares": 4558907,
            "market_value": 3070287097.2900004
        }
    }]
}

Stock Price (v2)

GET /v2/stock/price

Returns Stock Price

Query Parameters

Parameter Required Description
symbol YES Stock symbol

Example

Request

GET https://arkfunds.io/api/v2/stock/price?symbol=TSLA

Response

{
    "symbol": "TSLA",
    "exchange": "NasdaqGS",
    "currency": "USD",
    "price": 793.61,
    "change": 10.859985,
    "changep": 1.3874142,
    "last_trade": "2021-10-07T20:00:02",
}

ETF Profile (v1)

GET /v1/etf/profile

Returns ARK ETF profile information

Query Parameters

Parameter Required Valid values Default value
symbol NO ARKK, ARKQ, ARKW, ARKG, ARKF, ARKX, PRNT, IZRL, CTRU

Example

Request

GET https://arkfunds.io/api/v1/etf/profile?symbol=ARKK

Response

{
    "profile": [{
        "symbol": "ARKK",
        "name": "ARK Innovation ETF",
        "description": "ARKK is an actively managed ETF that seeks long-term growth of capital by investing under normal circumstances primarily (at least 65% of its assets) in domestic and foreign equity securities of companies that are relevant to the Fund’s investment theme of disruptive innovation.",
        "fund_type": "Active Equity ETF",
        "inception_date": "2014-10-31",
        "cusip": "00214Q104",
        "isin": "US00214Q1040",
        "website": "https://ark-funds.com/arkk"
    }]
}

ETF Holdings (v1)

GET /v1/etf/holdings

Returns ARK ETF holdings

Query Parameters

Parameter Required Valid values Default value
symbol YES ARKK, ARKQ, ARKW, ARKG, ARKF, ARKX, PRNT, IZRL, CTRU
date NO ISO 8601 Calendar date

Example

Request

GET https://arkfunds.io/api/v1/etf/holdings?symbol=ARKK

Response

{
    "symbol": "ARKK",
    "date": "2021-01-15",
    "holdings": [{
        "company": "TESLA INC",
        "ticker": "TSLA",
        "cusip": "88160R101",
        "shares": 2626774,
        "market_value": 2170135607.84,
        "weight": 9.65,
        "weight_rank": 1
    }, {
        "company": "ROKU INC",
        "ticker": "ROKU",
        "cusip": "77543R102",
        "shares": 4110728,
        "market_value": 1678410242.4,
        "weight": 7.47,
        "weight_rank": 2
    }, {
        "company": "CRISPR THERAPEUTICS AG",
        "ticker": "CRSP",
        "cusip": "H17182108",
        "shares": 6246733,
        "market_value": 1248596992.04,
        "weight": 5.55,
        "weight_rank": 3
    }, {
        "company": "SQUARE INC - A",
        "ticker": "SQ",
        "cusip": "852234103",
        "shares": 4776169,
        "market_value": 1087772489.75,
        "weight": 4.84,
        "weight_rank": 4
    }, {
        "company": "TELADOC HEALTH INC",
        "ticker": "TDOC",
        "cusip": "87918A105",
        "shares": 4325169,
        "market_value": 974244317.25,
        "weight": 4.33,
        "weight_rank": 5
    }]
}

ETF Trades (v1)

GET /v1/etf/trades

Returns ARK ETF intraday trades

Query Parameters

Parameter Required Valid values Default value
symbol YES ARKK, ARKQ, ARKW, ARKG, ARKF, ARKX
period NO 1d, 7d, 1m, 3m, 1y, ytd 1d

Example

Request

GET https://arkfunds.io/api/v1/etf/trades?symbol=ARKK

Response

{
    "symbol": "ARKK",
    "date_from": "2021-01-15",
    "date_to": "2021-01-15",
    "trades": [{
        "fund": "ARKK",
        "date": "2021-01-15",
        "direction": "Buy",
        "ticker": "REGN",
        "cusip": "75886F107",
        "company": "REGENERON PHARMACEUTICALS INC",
        "shares": 81933,
        "etf_percent": 0.191
    }, {
        "fund": "ARKK",
        "date": "2021-01-15",
        "direction": "Buy",
        "ticker": "SPOT",
        "cusip": "L8681T102",
        "company": "SPOTIFY TECHNOLOGY SA",
        "shares": 88270,
        "etf_percent": 0.1269
    }, {
        "fund": "ARKK",
        "date": "2021-01-15",
        "direction": "Buy",
        "ticker": "TXG",
        "cusip": "88025U109",
        "company": "10X GENOMICS INC",
        "shares": 53881,
        "etf_percent": 0.0434
    }, {
        "fund": "ARKK",
        "date": "2021-01-15",
        "direction": "Buy",
        "ticker": "SNPS",
        "cusip": "871607107",
        "company": "SYNOPSYS INC",
        "shares": 26425,
        "etf_percent": 0.0309
    }]
}

ETF News (v1)

GET /v1/etf/news

Returns ARK ETF news

Query Parameters

Parameter Required Valid values Default value
symbol NO ARKK, ARKQ, ARKW, ARKG, ARKF, ARKX, PRNT, IZRL, CTRU
date NO ISO 8601 Calendar date
date_to NO ISO 8601 Calendar date

Example

Request

GET https://arkfunds.io/api/v1/etf/news?symbol=ARKG&date_from=2021-03-31&date_to=2021-04-02

Response

{
  "symbol": "ARKG",
  "date_from": "2021-03-31",
  "date_to": "2021-04-02",
  "news": [
    {
      "id": 42,
      "datetime": "2021-04-02T07:27:32+00:00",
      "related": "ARKG",
      "source": "seekingalpha.com",
      "headline": "ARK Genomic Revolution Multi-Sector ETF: Poised For Continued Underperformance",
      "summary": "I am neutral on the ETF. For short-term gains, investors may wish to look elsewhere.",
      "url": "https://seekingalpha.com/article/4417325-ark-genomic-revolution-multi-sector-etf-underperformance",
      "image": "https://static.seekingalpha.com/cdn/s3/uploads/getty_images/842211270/medium_image_842211270.jpg"
    },
    {
      "id": 568,
      "datetime": "2021-03-31T22:53:00+00:00",
      "related": "ARKG",
      "source": "Benzinga",
      "headline": "Pinduoduo, Shopify PayPal, LendingTree, JD.com β€” What Cathy Wood's Ark Bought And Sold On Wednesday",
      "summary": "Cathie Wood’s Ark Investment Management sends out an email every night listing the stocks that were bought or sold by the firm's ETFs that day. In recent months, the...",
      "url": "https://www.benzinga.com/news/21/03/20438462/pinduoduo-shopify-paypal-lendingtree-jd-com-what-cathy-woods-ark-bought-and-sold-on-wednesday",
      "image": "https://cdn.benzinga.com/files/imagecache/og_image_social_share_1200x630/images/story/2012/micheile-henderson-lz_4npfkcv8-unsplash_7.jpg"
    },
    {
      "id": 569,
      "datetime": "2021-03-31T12:05:09+00:00",
      "related": "ARKG",
      "source": "DowJones",
      "headline": "UPDATE: Fauci says vaccines are offering protection against new, more infectious COVID variants",
      "summary": "Dr. Anthony Fauci, head of the National Institute of Allergy and Infectious Diseases and President Joe Biden's chief medical officer, said Wednesday the...",
      "url": "https://www.marketwatch.com/story/white-house-coronavirus-team-says-90-of-american-adults-will-be-eligible-for-vaccine-by-april-19-2021-03-31",
      "image": "https://s.wsj.net/public/resources/MWimages/MW-GP644_MicroS_ZG_20180906154215.jpg"
    },
    {
      "id": 570,
      "datetime": "2021-03-31T11:01:00+00:00",
      "related": "ARKG",
      "source": "DowJones",
      "headline": "Russia registers β€˜world’s first’ COVID-19 vaccine for dogs, cats and other animals",
      "summary": "Russia has registered the world’s first COVID-19 vaccine for animals, the country’s agricultural regulator said on Wednesday.",
      "url": "https://www.marketwatch.com/story/russia-registers-worlds-first-covid-19-vaccine-for-animals-11617202893",
      "image": "https://images.mktw.net/im-318622/social"
    }
  ]
}

Stock Profile (v1)

GET /v1/stock/profile

Returns Stock profile information

Query Parameters

Parameter Required Valid values Default value
symbol YES

Example

Request

GET https://arkfunds.io/api/v1/stock/profile?symbol=TSLA

Response

{
  "ticker": "TSLA",
  "name": "Tesla, Inc.",
  "country": "United States",
  "industry": "Auto Manufacturers",
  "sector": "Consumer Cyclical",
  "fullTimeEmployees": 48016,
  "summary": "Tesla, Inc. designs, develops, manufactures, leases, and sells electric vehicles, and energy generation and storage systems in the United States, China, Netherlands, Norway, and internationally. The company operates in two segments, Automotive; and Energy Generation and Storage. The Automotive segment offers sedans and sport utility vehicles. It also provides electric powertrain components and systems; and services for electric vehicles through its company-owned service locations, and Tesla mobile service technicians, as well as sells used vehicles. This segment markets and sells its products through a network of company-owned stores and galleries, as well as through its own Website. The Energy Generation and Storage segment offers energy storage products, such as rechargeable lithium-ion battery systems for use in homes, industrial, commercial facilities, and utility grids; and designs, manufactures, installs, maintains, leases, and sells solar energy generation and energy storage products to residential and commercial customers. It also provides vehicle insurance services, as well as renewable energy. The company was formerly known as Tesla Motors, Inc. and changed its name to Tesla, Inc. in February 2017. Tesla, Inc. was founded in 2003 and is headquartered in Palo Alto, California.",
  "website": "http://www.tesla.com",
  "market": "us_market",
  "exchange": "NasdaqGS",
  "currency": "USD",
  "marketCap": 783117844480,
  "sharesOutstanding": 947900992
}

Stock Trades (v1)

GET /v1/stock/trades

Returns Stock Trades

Query Parameters

Parameter Required Valid values Default value
symbol YES
direction NO buy, sell
date_from NO ISO 8601 Calendar date
date_to NO ISO 8601 Calendar date

Example

Request

GET https://arkfunds.io/api/v1/stock/trades?symbol=TSLA

Response

{
    "symbol": "TSLA",
    "date_from": "2020-09-18",
    "date_to": "2021-01-12",
    "trades": [{
        "date": "2021-01-12",
        "fund": "ARKK",
        "direction": "Sell",
        "ticker": "TSLA",
        "company": "TESLA INC",
        "cusip": "88160R101",
        "shares": 126276,
        "etf_percent": 0.5055
    }, {
        "date": "2021-01-12",
        "fund": "ARKQ",
        "direction": "Sell",
        "ticker": "TSLA",
        "company": "TESLA INC",
        "cusip": "88160R101",
        "shares": 13179,
        "etf_percent": 0.4991
    }, {
        "date": "2021-01-12",
        "fund": "ARKW",
        "direction": "Sell",
        "ticker": "TSLA",
        "company": "TESLA INC",
        "cusip": "88160R101",
        "shares": 16898,
        "etf_percent": 0.6161
    }, {
        "date": "2021-01-08",
        "fund": "ARKK",
        "direction": "Sell",
        "ticker": "TSLA",
        "company": "TESLA INC",
        "cusip": "88160R101",
        "shares": 59500,
        "etf_percent": 0.2506
    }]
}

Stock Fund Ownership (v1)

GET /v1/stock/fund-ownership

Returns Stock Fund Ownership

Query Parameters

Parameter Required Valid values Default value
symbol YES

Example

Request

GET https://arkfunds.io/api/v1/stock/fund-ownership?symbol=TSLA

Response

{
    "symbol": "TSLA",
    "date": "2021-01-15",
    "ownership": [{
        "fund": "ARKK",
        "weight": 9.65,
        "weight_rank": 1,
        "shares": 2626774,
        "market_value": 2170135607.84
    }, {
        "fund": "ARKQ",
        "weight": 11.37,
        "weight_rank": 1,
        "shares": 335957,
        "market_value": 277554235.12
    }, {
        "fund": "ARKW",
        "weight": 9.87,
        "weight_rank": 1,
        "shares": 734796,
        "market_value": 607059063.36
    }],
    "totals": {
        "funds": 3,
        "shares": 3697527,
        "market_value": 3054748906.32
    }
}

Footnotes

  1. ARK Investment Management LLC Announces It Will Close the ARK Transparency ETF
    As of July 26 2022, CTRU data is no longer updated. ↩

ark-invest-api's People

Contributors

dependabot[bot] avatar frefrik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ark-invest-api's Issues

Add support for different Rize ETF/ARK Europe tickers

CYBR, CYCL, FOOD, LIFE, LUSA, NFRA & PMNT can all have a different quote (which will in practice be quite close to each other, but still different) or even different currencies on the same exchange

  • CYBR
    • CYBR.MI
    • RCRS.DE
    • RCRS.AS
    • CYBR.L
    • CYBP.L
    • CYBR.S
  • CYCL
    • CIRCG.DE
    • CYCL.L
    • RICIRC.L
    • CYCL.S
  • FOOD
    • FOOD.MI
    • RIZF.DE
    • FOGB.AS
    • FOOD.L
    • FOGB.L
    • ESSNR.S
  • LIFE
    • LIFEE.MI
    • WRLDG.DE
    • RULIFE.L
    • LVNG.L
    • ENVR.S
  • LUSA
    • RIZJ.DE
    • RILUSA.L
    • UVNG.L
    • LUSA.S
  • NFRA
    • RIZD.DE
    • NFRA.L
    • BRIK.L
    • NFRA.S
  • PMNT
    • PMNT.MI
    • PMNTG.DE
    • PMNT.L
    • PAYG.L
    • PMNT.S

Together with my findings from #275, I would argue that we should support all possible tickers in the API
WDYT about this?

CC/ @frefrik

Open source the data fetching repo?

To my understanding, this repo is just about the API on top of the database

It would be interesting to also see the code of fetching the actual data imo

That way, people can also contribute whenever we would want to add new tickers and/or file structure changes

CC/ @frefrik

Url change for ark-funds.com

the website was update a few days ago
should probably change it if you haven't already
though the old one still works for now

https://ark-funds.com/wp-content/uploads/funds-etf-csv/ARK_INNOVATION_ETF_ARKK_HOLDINGS.csv
to
https://assets.ark-funds.com/fund-documents/funds-etf-csv/ARK_INNOVATION_ETF_ARKK_HOLDINGS.csv

More funds. ARK Venture and 21shares

Wondering if there's interest to have a similar repo/API for other fund providers?

Since I can't reach you on Twitter/Discord, I thought I'd just open an issue in this repo to ask you what you think about my proposal.

I was thinking about having a similar repo/API (could be multiple repos, can be just 1 πŸ€·β€β™‚οΈ) that provides at least holdings for the following fund providers (we could add others as well if wanted):

  • Blackrock
  • iShares
  • Vanguard
  • Robeco
  • VanEck
  • Amundi
  • SPDR
  • HSBC
  • Fidelity
  • L&G (Legal & General)
  • Invesco
  • Schroder
  • WisdomTree
  • DWS
  • UBS
  • Xtrackers

Would you be interested in working on this (together)?

CC/ @frefrik @NexVeridian

Add closing price of tickers

Possible to add average purchasing price of tickers for ETF Profile, Holdings, historical & current trade?

I'm the creator of Stocksera [https://stocksera.pythonanywhere.com], have been using your API from the start. Thank you!

edit: ignore the title of the post.

Data source

Thanks for your contribution!
Could you tell me your data source?

Add holding support for ARK Europe specific versions of `ARKG` & `ARKK`

ARKG & ARKK are also available on the US site, but looking at their info page you can see they have different ISIN codes in US than they have in Europe:

  • US00214Q3020 vs. IE000O5M6XO1 for ARKG
  • US00214Q1040 vs. IE000GA3D489 for ARKK

Looking at the holdings CSVs, these also have slightly different holdings in the US than in Europe:

Inception date if also different

All this to say that I'm quite certain that the Europe specific versions are actually different funds, they just use the same base code to show that the fund "rules" are the same I guess πŸ€”

CC/ @frefrik

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.