| Type: | Package |
| Title: | 'QUANTkiosk' API Client |
| Version: | 0.2.31 |
| Imports: | curl, jsonlite, stringdist, zoo |
| Depends: | xts |
| Suggests: | fansi |
| LazyData: | yes |
| Date: | 2026-04-22 |
| Maintainer: | Jeffrey A. Ryan <jeff@quantkiosk.com> |
| Description: | Provide access to 'QUANTkiosk' platform of regulatory and corporate data relevant to financial markets including point-in-time fundamentals, ownership and symbology. |
| License: | GPL-3 |
| URL: | https://quantkiosk.com/, https://github.com/quantkiosk/qkiosk-r |
| BugReports: | https://github.com/quantkiosk/qkiosk-r/issues |
| NeedsCompilation: | no |
| Packaged: | 2026-04-22 15:45:49 UTC; jeffreyryan |
| Author: | Jeffrey A. Ryan |
| Repository: | CRAN |
| Date/Publication: | 2026-04-24 18:20:02 UTC |
'QUANTkiosk' API Client
Description
Provide access to 'QUANTkiosk' platform of regulatory and corporate data relevant to financial markets including point-in-time fundamentals, ownership and symbology.
Details
The DESCRIPTION file:
| Package: | qkiosk |
| Type: | Package |
| Title: | 'QUANTkiosk' API Client |
| Version: | 0.2.31 |
| Imports: | curl, jsonlite, stringdist, zoo |
| Depends: | xts |
| Suggests: | fansi |
| LazyData: | yes |
| Date: | 2026-04-22 |
| Authors@R: | person(given = c("Jeffrey", "A."), family = "Ryan", role = c("aut", "cre"), email = "jeff@quantkiosk.com", comment=c(ORCID="0009-0003-3627-7896")) |
| Maintainer: | Jeffrey A. Ryan <jeff@quantkiosk.com> |
| Description: | Provide access to 'QUANTkiosk' platform of regulatory and corporate data relevant to financial markets including point-in-time fundamentals, ownership and symbology. |
| License: | GPL-3 |
| URL: | https://quantkiosk.com/, https://github.com/quantkiosk/qkiosk-r |
| BugReports: | https://github.com/quantkiosk/qkiosk-r/issues |
| Author: | Jeffrey A. Ryan [aut, cre] (<https://orcid.org/0009-0003-3627-7896>) |
Index of help topics:
crox Crocs Institutional Holders Details By Issuer
deshaw D.E. Shaw Institutional Ownership Details
(Including Submanagers)
institutional QUANTkiosk™ Ownership API Functions
nke Nike (NKE) Insider Ownership Data
nvda_intent Nvidia (NVDA) Restricted or Control Shares
Intention to Sell
nvda_sales Nvidia (NVDA) Restricted or Control Shares Sold
pershing Pershing Square Beneficial and Activist Details
pfe Pfizer (PFE) Revenue Data
qk_account QUANTkiosk™ Account Access
qk_audit QUANTkiosk Data Auditing Tools
qk_complete Live Download EDGAR® Filings Raw & Processed
Data
qk_filter QK Object Manipulation
qk_fn Fundamentals Data
qk_select Convert and Display QUANTkiosk Objects
qk_univ Universe Function
qkid QKID™ Tools
qkiosk-package 'QUANTkiosk' API Client
sgcap SG Capital Institutional Ownership Details
(Aggregated)
yyyymmdd Simple Dates
Official QUANTkiosk R API
Author(s)
NA
Maintainer: Jeffrey A. Ryan <jeff@quantkiosk.com>
References
‘http://quantkiosk.com’
QUANTkiosk™ Account Access
Description
Utilities for account usage and data downloads.
Usage
qk_account(browser=FALSE, files=FALSE)
qk_download(file = NULL,
type = c("data", "univ", "trials"),
n = 10, available=FALSE, retjson = TRUE)
qk_get_apikey(req=TRUE)
qk_set_apikey(apiKey,verbose=TRUE)
Arguments
browser |
open account page in browser |
files |
include custom files (if any) in account |
file |
file to download |
type |
data to download - either data or universe files. |
available |
return table of files and last modified times |
retjson |
should json be returned as raw string |
n |
number of files to select from |
req |
should an error be issued if not present |
apiKey |
your QUANTkiosk™ api key. |
verbose |
be verbose |
Details
QUANTkiosk™ accounts control access as well as provide for custom data access.
To set (or get) your API key the functions qk_get_apikey and qk_set_apikey
are provided. These rely your environment variable, which may be set from with
your shell or from your session.
qk_account provides details on your current usage - as well as access to
any custom data files, universe files, or trial data you may have. To access the
files for download, the qk_download function allows for browsing your
remote data as well as downloading via an interactive menu or by specifying the name
of the file.
Value
An invisible list containing:
AsOf |
Time of request |
Quota |
Current daily quota in credits |
Usage |
Current usage in credits consumed |
DataFilesN |
Number of custom data files available |
DataFiles |
List of data files |
UnivFilesN |
Number of custom univ files available |
UnivFiles |
List of univ files |
Author(s)
QUANTkiosk™ authors.
References
QUANTkiosk™ Account Page: ‘https://quantkiosk.com/account’
Crocs Institutional Holders Details By Issuer
Description
Institutional Holders API example that (tragically) never goes out of style.
Usage
crox
Format
A data frame with 214 observations on the following 17 variables.
issuerNamename of company
filingcanonical EDGAR® filing path
submissionTypefiling type: 13F-HR or 13F-HR/A (amended)
reportPeriodperiod of report
filedDatewhen the data was filed
issuerTitleOfClassreported title or class name
filerCikCentral Index Key of holder
filerNamename of holder
issuerQkidQKID™ symbol
valuefair market value of position at end of period
QOQValuequarter over quarter change in value of holding (QK™ calculated)
shrsOrPrnAmtshares ‘SH’ or principal ‘PRN’
QOQSshPrnAmtquarter over quarter change in shares or principal amount of holding (QK™ calculated)
portWgtportfolio weight (QK™ calculated)
QOQPortWgtquarter over quarter change in portfolio weight (QK™ calculated)
qtrsHeldquarters held (QK™ calculated)
newOrDeletedis position ‘NEW’ or ‘DEL’eted. See details. (QK™ calculated)
Details
crox provides an aggregated view of holdings across all institutional filers. This is a cross-filer view
and is derived from between 5000-10000 individual filings.
References
Ownership homepage: ‘https://www.quantkiosk.com/ownership’
Ownership Dashboard: ‘https://api.quantkiosk.com/ownership’
Ownership API: ‘https://www.quantkiosk.com/api/ownership’
SG Capital Filings ‘https://www.sec.gov/edgar/browse/?CIK=0001510099’
Form 13F-HR FAQ: ‘https://www.sec.gov/divisions/investment/13ffaq’
Official 13(f) Securities ‘https://www.sec.gov/divisions/investment/13flists’
See Also
R function: qk_institutional
Aggregated Manager example: sgcap
Non-aggregated Manager (Submanager) example: deshaw
Examples
data(crox)
D.E. Shaw Institutional Ownership Details (Including Submanagers)
Description
Institutional Ownership API example of large manager filing with submanager details.
Usage
deshaw
Format
A data frame with 6481 observations on the following 28 variables.
filerNamename of filer (i.e. fund name)
filingcanonical EDGAR® filing path
submissionTypefiling type: 13F-HR or 13F-HR/A (amended)
reportPeriodperiod of report
filedDatewhen the data was filed
inclMgrsnumber of submanagers reported for. See
otherManagerissuername of instrument
titleOfClasstitle or class name of instrument
issuerSICofficial standardized industrial code
issuerSectortwo-character sector code from QUANTkiosk™
issuerTickercommon exchange ticker
issuerQkidQKID™ symbol
valuefair market value of position at end of report period
shrsOrPrnAmtnumber of shares held or principal amount
putCallone of ‘PUT’, ‘CALL’ or empty
shrsOrPrnAmtTypeshares ‘SH’ or principal ‘PRN’
invDiscretiontype of discretion over investment decision
votingAuthSolenumber of shares of ‘SOLE’ voting authority
votingAuthSharednumber of shares of ‘SHARED’ voting authority
votingAuthNonenumber of shares of ‘NONE’ voting authority
portWgtportfolio weight (QK™ calculated)
hasOtherManagerlogical indicating if record is for other manager
otherManagerreference number of other manager(s) from filing
otherManagerNamename of other manager(s) from filing
otherManagerFileNumberfile number of other manager(s)
QtrsHeldquarters held (QK™ calculated)
QOQSshPrnAmtquarter over quarter change in shares or principal amount of holding (QK™ calculated)
QOQValuequarter over quarter change in value of holding (QK™ calculated)
QOQPortWgtquarter over quarter change in portfolio weight (QK™ calculated)
newOrDelis position ‘NEW’ or ‘DEL’eted. See details. (QK™ calculated)
Details
Institutional Ownership consists of quarterly ‘13F-HR’ and amended reports ‘13F-HR/A’ made by investors who hold at least $100 million of securities declared by the U.S. Securities and Exchange Commission. Filers include banks, insurance companies, and hedge funds. The filings are due 45 days after the end of each calendar quarter, and are filed via the EDGAR® system. The securities reported must be from the official ‘13(f) securities’ list published by the SEC. See references section.
QUANTkiosk™ provides access to these filings in two forms at present. The first is an aggregated view
that includes one row per unique instrument held. This is described in full in the SG Capital example sgcap.
The second version (ex. deshaw) contains additional submanagers details:
inclMgrs
invDiscretion
votingAuthSole
votingAuthShared
votingAuthNone
otherManager
otherManagerFileNumber
Additional fields not present in the official ‘13F-HR’ or ‘13F-HR/A’ but provided in both aggregated and non-aggregated views:
issuerSIC
issuerSector
issuerQkid
issuerTicker
These fields are useful for tracking changes between quarters as well as intrafiling analysis. otherManager and otherManagerName provides the reported reference number as filed
for each entry. Details of this requirement are beyond this help page, but reference the official SEC documentation and rules for clarity. QK™ does not merge
submanagers and instead reports the combined submanagers (if reported). For example, a 1;2 would mean the managers 1 and 2 share some aspect of the position.
otherManagerFileNumber is included to help disambiguate the reported ordering from the actual submanagers reporting. The names for the submanagers can
be had using the meta=TRUE option in qk_institutional.
Additional fields pre-calculated by QUANTkiosk™ across time:
QOQSshPrnAmt
QOQValue
QOQPortWgt
newOrDel
QtrsHeld
QK™ calculates these fields as quarter over quarter change in absolute terms. newOrDel marks holdings that are ‘NEW’ this quarter or ‘DEL’eleted. Deleted entries are
not in the filing, but are provided to identify positions traded out of. QtrsHeld shows duration of a continuously held position in aggregate, or in the case of submanager API data,
positions held continuously by the exact combination of submanagers. The latter is less reliable due to reporting considerations in the source data.
References
Ownership homepage: ‘https://www.quantkiosk.com/ownership’
Ownership Dashboard: ‘https://api.quantkiosk.com/ownership’
Ownership API: ‘https://www.quantkiosk.com/api/ownership’
D.E. Shaw Filings: ‘https://www.sec.gov/edgar/browse/?CIK=0001009207’
Form 13F-HR FAQ: ‘https://www.sec.gov/divisions/investment/13ffaq’
Official 13(f) Securities ‘https://www.sec.gov/divisions/investment/13flists’
See Also
R function: qk_institutional
Aggregated example: sgcap
Examples
data(deshaw)
QUANTkiosk™ Ownership API Functions
Description
Query all ownership across firms, invidividuals and issuers.
Usage
qk_institutional(qkid,
yyyyqq,
qtrs=1,
agg = TRUE,
wait = 0,
quiet = TRUE)
qk_insider(qkid,
yyyyqq,
qtrs=1,
form = c('insider', 'intent', 'sales'),
wait = 1,
quiet = TRUE)
qk_beneficial(qkid,
yyyyqq,
qtrs=1,
form = c('13D13G','13G','13D'),
wait = 1,
quiet = TRUE)
qk_activist(qkid,
yyyyqq,
qtrs=1,
form = c('13D','13D13G'),
wait = 1,
quiet = TRUE)
qk_holders(qkid,
yyyyqq,
qtrs=1,
agg = TRUE,
rollprev = TRUE,
wait = 1,
quiet = TRUE)
Arguments
qkid |
a |
yyyyqq |
a number of the form ‘YYYYQQ’ where ‘YYYY’ is a 4-digit year, and ‘QQ’ is
a 2-digit quarter [00,01,02,03,04]. Use in conjuction with |
qtrs |
number of previous quarters to request (including current |
form |
for |
agg |
if |
rollprev |
if |
wait |
time in seconds between calls. |
quiet |
make request silent. |
Details
QUANTkiosk™ Ownership combines multiple sources of information
in an custom formatted data.frame. At it's core, the data is used to understand
which participants have control over an entity. These participants file various forms
depending on who they are and what their intent may be.
Ownership reporting periods vary based on regulatory rules. Some are quarterly (e.g. Institutional and Funds), whereas many are filed based on events (e.g. Insider, Beneficial/Activist). The arrival of the updates is dependent on filer and SEC rules. All requests are specified for the quarter a filing was made.
To allow for consistent interface, yyyyqq is specified as the year ‘yyyy’ and the 2-digit quarter
being requested. For example, the second quarter of 2023 would be yyyyqq=202302. To request a full year,
one can use the special quarter 00. To request all years use yyyyqq=0 or yyyyqq=000000.
All usage is metered by data requested, e.g. four quarters or one year are equal in credits used.
For ‘Institutional’ (qk_institutional) aggregated (agg=TRUE) requests, we
roll up other managers filed within the main filer's report to better see total positions and
changes. If agg=FALSE, other managers are displayed as reported with quarter over quarter
change columns reflecting changes in exact reporting lines.
Value
A ‘data.frame’ of class qkinstitutional containing holdings or holders. See example data for fields.
Institutional
Institutional data consists of holdings reported by asset managers meeting certain criteria. Covering more than 15,000 managers over the last decade, these are extracted in a point-in-time manner from forms ‘13F-HR’, ‘13F-NT’ and the amended versions of these forms.
Insider
Insider ownership is reported through forms ‘3’, ‘4’, and ‘5’. These are reports filed in duplicate for insiders of a company to describe their ownership rights, including acquisition and disposal of shares. These are filed after a change in ownership.
Insider Intent
Insider Intent is a newer form, only required to be electronically filed in the last few years. This is used to indicate the intention to buy or sell, but not the actual purchase or sale. These are filed by ‘insiders’ of a company using form ‘144’. This is split into ‘intent’ disclosures, as well as any ‘sale’ in the 3 months prior to the filing.
Holders
The holders data includes all owners of a particular company, allowing the cross sectional intitutional holdings in one call. This data is aggregated from all individual reporting firms by quarter and made available as new filings arrive. At present this only contains ‘13F-HR’ reporting, updated as filings arrive, including amendments to previous positions.
Blockholders / Beneficial / Activist
Any owner with a position greater than 5% must file under SEC's ‘Schedule 13G (SC 13G)’ or ‘Schedule 13D (SC 13D)’. These are used to indicate control at or exceeding this threshold by one or more parties sharing control of the position.
Funds
The largest of all assets under management comes from mutual and closed-end funds that report on form ‘NPORT-P’. As opposed to ‘Institutional’ filers, these represent publicly traded instruments. Reported quarterly.
Author(s)
QUANTkiosk™
References
SEC's EDGAR® Website: ‘https://www.sec.gov/search-filings’
QK Ownership™: ‘https://quantkiosk.com/ownership’
EDGAR® Form SC 13D, SC 13G FAQ: ‘https://www.sec.gov/divisions/investment/13ffaq’
EDGAR® Form 13F-HR FAQ: ‘https://www.sec.gov/divisions/investment/13ffaq’
EDGAR® Form 3,4,5 FAQ: ‘https://www.sec.gov/divisions/investment/13ffaq’
See Also
Small filer example: sgcap
Large filer example with submanagers: deshaw
Holders example: crox
Benficial Owner example: pershing
Examples
# all examples require an API key
## Not run:
citadel <- qk_search_mgr("citadel")
citadel_h<- qk_institutional(citadel, yyyyqq=202301)
# all qtrs of 2023
citadel_h<- qk_institutional(citadel, yyyyqq=202300)
# nvidia's institutional holders for 202501, 202404, 202403, 202402
nvda_h <- qk_holders(qk_ticker("NVDA"), yyyyqq=202501, qtrs=4)
# nvidia's intent to sell 202501, 202404, 202403, 202402
nvda_insider<- qk_insider(qk_ticker("NVDA"), yyyyqq=202501, qtrs=4, form="insider")
# nvidia's intent to sell 202501, 202404, 202403, 202402
nvda_intent <- qk_insider(qk_ticker("NVDA"), yyyyqq=202501, qtrs=4, form="intent")
# nvidia's intent to sell 202501, 202404, 202403, 202402
nvda_sales <- qk_insider(qk_ticker("NVDA"), yyyyqq=202501, qtrs=4, form="sales")
# Restaurant Brands (QSR) block holders for 202501, 202404, 202403, 202402
qsr_b <- qk_beneficial(qk_ticker("QSR"), yyyyqq=2025)
## End(Not run)
Nike (NKE) Insider Ownership Data
Description
Insider Ownership API example of large firm.
Usage
nke
Format
A data frame with 60 observations on the following 40 variables.
acceptanceDatetimeEDGAR® processing time
filingcanonical EDGAR® filing path
formfiling type: 3, 3/A (amended), 4, 4/A or 5, 5/A
is10b5Oneindication if transaction was made pursuant to a contract, instruction or written plan
rptPerioda character vector
issuerCikissuer Central Index Key
issuerNameissuer name
issuerTradingSymbolissuer trading symbol
issuerQkidissuer QKID™ symbol
ownerCikinsider Central Index Key
ownerNamea character vector
isDirectoris company director
isOfficeris company officer
officerTitleofficer title
isTenPctis a ten percent insider
secTitlesecurity title
secTitleFootnotefootnote for security title
conversionOrExercisePriceprice
conversionFootnotea character vector
isTxnis reporting line a transaction
isDerivis security a derivative
txnDatetransaction date
execDatea logical vector
txnCodetransaction code pursuant to Rule 16b-3. See Details.
txnDesctransaction footnote
txnAmounttransaction amount
acquiredOrDisposedacquired or disposed
txnPricetransaction price
txnValuetransaction value
exerciseDateexercise date
exerciseDateFootnoteexercise date footnote
expirationDateexpiration date
expirationFootnoteexpiration footnote
underlyingSecTitleunderlying security
underlyingShsnumber of shares of underlying
postTxnShsshares owned post transaction
postTxnFootnotepost transaction footnote
ownershipFormform of ownership
ownershipNaturenature of ownership
ownershipFootnoteownership footnote
Details
The ‘Insider Ownership’ data provided by QUANTkiosk™ are gathered from SEC Form 3,4 and 5. The forms are used for initial insider position, changes in position and exit of position, respectively.
These forms must be filed before the end of the second business day following the day on which a transaction resulting in a change in beneficial ownership has been executed (see references below).
Codes are as described below (direct from SEC)
General Transaction Codes
- P -
Open market or private purchase of non-derivative or derivative security
- S -
Open market or private sale of non-derivative or derivative security
- V -
Transaction voluntarily reported earlier than required
Rule 16b-3 Transaction Codes
- A —
Grant, award or other acquisition pursuant to Rule 16b-3(d)
- D —
Disposition to the issuer of issuer equity securities pursuant to Rule 16b-3(e)
- F —
Payment of exercise price or tax liability by delivering or withholding securities incident to the receipt, exercise or vesting of a security issued in accordance with Rule 16b-3
- I —
Discretionary transaction in accordance with Rule 16b-3(f) resulting in acquisition or disposition of issuer securities
- M —
Exercise or conversion of derivative security exempted pursuant to Rule 16b-3
Derivative Securities Codes (Except for transactions exempted pursuant to Rule 16b3)
- C —
Conversion of derivative security
- E —
Expiration of short derivative position
- H —
Expiration (or cancellation) of long derivative position with value received
- O —
Exercise of out-of-the-money derivative security
- X —
Exercise of in-the-money or at-the-money derivative security
Other Section 16(b) Exempt Transaction and Small Acquisition Codes (except for Rule 16b-3 codes above)
- C —
Conversion of derivative security
- G —
Bona fide gift
- L —
Small acquisition under Rule 16a-6
- W —
Acquisition or disposition by will or the laws of descent and distribution
- Z —
Deposit into or withdrawal from voting trust
Other Transaction Codes
- C —
Conversion of derivative security
- J —
Other acquisition or disposition (describe transaction)
- K —
Transaction in equity swap or instrument with similar characteristics
- U —
Disposition pursuant to a tender of shares in a change of control transaction
References
SEC Investor Bulletin: ‘https://www.sec.gov/files/forms-3-4-5.pdf’
Form 4 Instructions: ‘https://www.sec.gov/about/forms/form4data.pdf’
Examples
data(nke)
Nvidia (NVDA) Restricted or Control Shares Intention to Sell
Description
Corporate insider and affiliates intention to sell disclosure.
Usage
nvda_intent
Format
A data frame with 54 observations on the following 24 variables.
acceptanceDatetimeEDGAR® processing time
accninternal EDGAR® accession number
filedDatedate filed in form yyyymmdd
filenamecanonical EDGAR® filing path
formfiling type: 144 or 144/A
issuerCikissuer Central Index Key
issuerNameissuer name
issuerQkidissuer QKID™ symbol
filerCikseller Central Index Key
filerNameseller name
relationshipToIssuera character vector
securitiesClassTitlea character vector
acquiredDateYYYYMMDDthe date to be acquired
natureOfAcquisitionTransactionnature of acquisition
nameOfPersonfromWhomAcquiredentity or person acquired from
amountOfSecuritiesAcquiredamount of securities acquired
paymentDateYYYYMMDDa numeric vector
natureOfPaymenta character vector
pricethe price at acquisition
noOfUnitsSolda numeric vector
aggregateMarketValuea numeric vector
noOfUnitsOutstandinga numeric vector
price2the price of expected sale
marketCapmarket capitalization as reported in USD
Details
Form 144 is a requirement to disclose the intention to sell restricted shares. It is made up of two different sections:
- Intent
the proposed amount of shares expected to sell
nvda_intent- Sales
all sales made over the preceeding three months
nvda_sales
The intent section of a form is unique across multiple forms filed by a person or entity. The “Sales” section may contain duplicate entries in the data provided by the API. Thsi is intentional as it represents the time(s) the information was disclosed.
From the SEC, the securities and people reporting are:
Restricted securities are securities acquired in unregistered, private sales from the issuing company or from an affiliate of the issuer. Investors typically receive restricted securities through private placement offerings, Regulation D offerings, employee stock benefit plans, as compensation for professional services, or in exchange for providing "seed money" or start-up capital to the company. Rule 144(a)(3) identifies what sales produce restricted securities.
Control securities are those held by an affiliate of the issuing company. An affiliate is a person, such as an executive officer, a director or large shareholder, in a relationship of control with the issuer. Control means the power to direct the management and policies of the company in question, whether through the ownership of voting securities, by contract, or otherwise. If you buy securities from a controlling person or "affiliate," you take restricted securities, even if they were not restricted in the affiliate's hands.
References
Form 144 Investor Information: ‘https://www.sec.gov/about/reports-publications/investorpubsrule144’
Examples
data(nvda_sales)
Nvidia (NVDA) Restricted or Control Shares Sold
Description
Corporate insider and affiliates intention to sell historical sales.
Usage
nvda_sales
Format
A data frame with 386 observations on the following 18 variables.
acceptanceDatetimeEDGAR® processing time
accninternal EDGAR® accession number
filedDatedate filed in form yyyymmdd
filenamecanonical EDGAR® filing path
formfiling type: 144 or 144/A
issuerCikissuer Central Index Key
issuerNameissuer name
issuerQkidissuer QKID™ symbol
filerCikseller Central Index Key
filerNameseller name
relationshipToIssuera character vector
sellerNamename of seller
securitiesClassTitledescription of security
saleDateYYYYMMDDdate shares were sold
amountOfSecuritiesSoldnumber of shares sold
grossProceedstotal proceeds of sale in USD
asOfunused
priceshare price in USD
Details
Form 144 is a requirement to disclose the intention to sell restricted shares. It is made up of two different sections:
- Intent
the proposed amount of shares expected to sell
nvda_intent- Sales
all sales made over the preceeding three months
nvda_sales
The intent section of a form is unique across multiple forms filed by a person or entity. The “Sales” section may contain duplicate entries in the data provided by the API. Thsi is intentional as it represents the time(s) the information was disclosed.
From the SEC, the securities and people reporting are:
Restricted securities are securities acquired in unregistered, private sales from the issuing company or from an affiliate of the issuer. Investors typically receive restricted securities through private placement offerings, Regulation D offerings, employee stock benefit plans, as compensation for professional services, or in exchange for providing "seed money" or start-up capital to the company. Rule 144(a)(3) identifies what sales produce restricted securities.
Control securities are those held by an affiliate of the issuing company. An affiliate is a person, such as an executive officer, a director or large shareholder, in a relationship of control with the issuer. Control means the power to direct the management and policies of the company in question, whether through the ownership of voting securities, by contract, or otherwise. If you buy securities from a controlling person or "affiliate," you take restricted securities, even if they were not restricted in the affiliate's hands.
References
Form 144 Investor Information: ‘https://www.sec.gov/about/reports-publications/investorpubsrule144’
Examples
data(nvda_sales)
Pershing Square Beneficial and Activist Details
Description
Beneficial and Activist API example of single manager block positions for 2019-2020
Usage
data("pershing")
Format
A data frame with 72 observations on the following 25 variables.
acceptanceDatetimeacceptance time to SEC's EDGAR® system
filingcanonical EDGAR® filing path
formfiling type: SC 13D, SC 13G, SC 13D/A or SC 13G/A
filedAsOfwhen the data was filed
dateOfEventdate reporting for
issuerNamename of issuer in submission
issuerCikCentral Index Key of issuer
issuerQkidQKID™ symbol
issuerTickercommon exchange ticker
filerNamename of reporting filer
filerCikCentral Index Key of filer
rule13d13grule being reported for
namesOfRptPersonsindividual or firm name who is reporting
isGrpa character vector
srcOfFundsa character vector
srcOfFundsDesca character vector
placeOfOrga character vector
soleVotinga numeric vector
sharedVotinga numeric vector
soleDispositoryPwra numeric vector
sharedDispositoryPwra numeric vector
aggAmtOwneda numeric vector
pctOfClassa numeric vector
personTypea character vector
personTypeDesca character vector
Details
Beneficial and Activist Ownership describe owners (reporting) who maintain a large share of a public company (issuer). The forms filed when a filer maintains or exceeds a 5% are ‘SC 13G’ and ‘SC 13D’, and the follow-on amendments as thos positions change.
The difference in form types is related to filer intent, specifically whether the 5% owner is passive, or is attempting to exert control over the company. The canonical example of an large investor who may file both is ‘Pershing Square’, run by ‘Bill Ackman’. We include this dataset to document the fields. Additional history is available for all filings of this type as well as for all history.
Through 2024, all filings have come as unstructured text and as such are very difficult to systematically extract data. QUANTkiosk™
runs a complex automated extraction process to provide reliable data in a form that is made available in R via
qk_beneficial and qk_activist functions.
References
Ownership homepage: ‘https://www.quantkiosk.com/ownership’
Pershing Square Filings: ‘https://www.sec.gov/edgar/browse/?CIK=0001336528’
Form SC 13D/G information: ‘https://www.sec.gov/rules-regulations/staff-guidance/compliance-disclosure-interpretations/exchange-act-sections-13d-13g-regulation-13d-g-beneficial-ownership-reporting’
Examples
str(pershing)
## Not run:
pershing.cik <- "0001336528"
qk_beneficial(pershing.cik, yyyy=c(2019,2020), qq=0)
## End(Not run)
Pfizer (PFE) Revenue Data
Description
QUANTkiosk™ Fundamentals API (As Of)
Usage
data("pfe")
Format
A data frame with 60 observations on the following 40 variables.
cikthe Central Index Key of the issuer
pikthe QKID™ Permanent Index Key of the issuer
acceptance_timeEDGAR® processing time
acceptance_utcEDGAR® processing time in unix (seconds since 19700101)
stmtstatement including the item
itemthe QK™ standardized item code
unitunit of measurement - as reported
formform filing type: 10-Q, 10-Q/A, 10-K, 10-K/A, 8-K, 8-K/A, 20-F, 20-F/A, 6-K, 6-K/A
filenamecanonical EDGAR® filing path
accnEDGAR® accession number
fyefiscal year end
fyeqfiscal yeat end quarter
fpbfiscal period beginning
fpefiscal period end
fileddate filed
fpe2fileddays from fiscal period end to filed
filed40forty day mark from fpe
ffiledfirst filed - will be different in a restatment
cyqtrcalendar year quarter available
cyearcalendar year available
cqtrcalendar quarter available
rptqvalue - fiscal quarter (reported)
rptqdreporting quarter days
rptyvalue - fiscal year to date (reported)
rptydreporting year days
fpfiscal period - e.g. Q1, Q2, Q3, Q4, FY
fqtrfiscal quarter - e.g. 1, 2, 3, 4
fqdfiscal quarter days
fqvalue - calculated fiscal quarter
fytdvalue - calculated fiscal year to date
ttmvalue - calculated trailing twelve months
rstmtrestated flag
rstmt.qrestated flag - quarterly value
rstmt.yrestated flag - yearly value
iqimputed quarterly
asofas of date
concept_idunique id for auditing
fqpyfiscal quarter - prior year
fytdpyfiscal year to day - prior year
annannual value - only fye
Details
QUANTkiosk™ Fundamentals are extracted from original sources, using a systematic process. Data is extracted and normalized into QK™ concepts that align across time and firms using a set of rules. Most concepts are currently using ‘US-GAAP’ taxonomy.
Source
QUANTkiosk™ ‘https://www.quantkiosk.com/fundamentals’
Examples
to_df(pfe)
QUANTkiosk Data Auditing Tools
Description
Methods to audit orginal data sources to verify data correctness and interpretation.
Usage
qk_audit(x, ...)
## Default S3 method:
qk_audit(x, row, accn, fpe, open = FALSE, ctx=-1, ...)
Arguments
x |
data.frame to audit |
row |
row of data.frame to display source |
accn |
optional accession number ( |
fpe |
optional fiscal period end ( |
open |
should browser window be opened to orginal source page |
ctx |
limit display of matching data to a smaller context window. defaults to full record. |
... |
unused |
Details
Non-market data is derived from myriad sources and contain billions of datum. To better prove correctness (and to track data issues), QUANTkiosk provides a user inteface to interrogate the original sources in a variety of ways.
The first application is for the fundamentals data we curate from billions
of datum published by companies. The qk_audit interface allows the
researcher to request the source data - in context from the original
filings, if applicable.
For most of the standardized financial reporting line items (GAAP), we have
developed item codes to standardize reporting views when possible. These data
are coallesced from multiple places within filings including tabular data and
the xbrl (extensible business reporting language) mandaded in the US
and in other countries for many instances of reporting.
qk_audit is designed to be used regularly to inspect context as well
as numerical correctness of data returned by QUANTkiosk's APIs by using
extracted data from the original HTML filings. These original tables
do not include the additional contextual details present in the qk_fn
data - often only presenting a row label and a set of period to date values.
We process and extract the additional 30+ fields from a complex internal process
that includes validation steps as well as the very facility to inspect as presented
in qk_audit.
Value
A displayed version of the text-formatted original html tables, including context we are assigning and a highlighted section of the html that matches the data in question.
Some values may we return in the API are actually imputed from the data that may actually only report data in a period-to-date format.
Note
This functionality is not all inclusive as locating data within a filings is not one for one. Often data can be presented outside of statements or tables and therefore has no easy to display data source. This may be possible in future version fo QK.
Author(s)
QUANTkiosk
References
‘www.sec.gov’
See Also
See Also as qk_fn
Examples
## Not run:
jnj <- qk_fn(qk_ticker("JNJ"), "SALE")
# pipes require R >= 4.1.0
# jnj |> to_df() |> qk_audit(55)
## End(Not run)
Live Download EDGAR® Filings Raw & Processed Data
Description
Provide access to QUANTkiosk™ QK Complete™ professional subscription. This function is intended to be used as part of an ETL pipeline and run at fixed intervals to provide local live capture of filings data.
Usage
qk_complete(dir,
subscription = "raw",
rollup = "5m",
last = "5m",
date = today(),
fmt = c("zip", "tar.gz"),
gzip = TRUE,
hide = TRUE,
quiet = FALSE,
force = FALSE)
Arguments
dir |
Directory to use for raw filings. Will be created if needed. |
subscription |
Subscription type varies with access. ‘raw’ retrieves all ‘.txt’ filings submitted to the EDGAR® system. |
rollup |
Window of time for which new filings are provided. |
last |
Lookback window to query for |
date |
SEC date to query (America/New_York) |
fmt |
Return archive type. Default is ‘zip’ format which contains uncompressed (‘gzip’) raw text filings. |
gzip |
Should files be compressed for local storage. |
hide |
Hide API key in request if |
quiet |
Hide request from output. |
force |
Overwrite files if already downloaded. |
Details
qk_complete syncs live data subscriptions in near realtime. For most applications this is sufficient to maintain a full history
locally while the filings are arriving and being processed by the SEC.
Value
Called for its side-effects, the function returns a list of filings that have been extracted from the archive. The primary result is the writing of the raw (or processed) filings to disk, as well as associated meta data created by the api.
Note
This endpoint requires both historical and live access. Consult your account page for details.
Author(s)
QUANTkiosk™
References
SEC's EDGAR® Website: ‘https://www.sec.gov/search-filings’
Examples
## Not run:
edgardir <- tempdir()
qk_complete(edgardir)
dir(edgardir)
## End(Not run)
QK Object Manipulation
Description
‘generic’ functions to filter and sort data returned from the QK API. These are helper functions designed to facilitate exploration of specific data structures provided by the API.
Usage
qk_filter(x, ...)
## S3 method for class 'qk_df'
qk_filter(x, by = c("top", "incr", "decr", "new", "del"), ...)
qk_sort(x, ...)
## S3 method for class 'qk_df'
qk_sort(x, by = c("value", "shrsOrPrnAmtType", "portWgt",
"QtrsHeld", "qtrsHeld", "QOQSshPrnAmt",
"QOQValue", "QOQPortWgt"), incr = TRUE, ...)
qk_summary(x, ...)
## S3 method for class 'qk_df'
qk_summary(x, n = c(10, 5), ...)
Arguments
x |
R object |
by |
for |
incr |
sort in numeric increasing order. Set |
n |
number of elements in tabular summary. |
... |
unused by current methods. |
Details
qkiosk makes available multiple data sets from the quantkiosk platform. These are often information dense and require further investigation. To help facilitate and align the experience across supported tools (e.g. dashboard, R, python), a common set of basic filtering is provided for convenience.
For ‘Institutional Ownership’ data returned from qk_institutional
See deshaw and sgcap for examples of data.
Value
filtered and sorted versions of original data.
Author(s)
QUANTkiosk
References
See ‘https://api.quantkiosk.com/ownership’ dashboard examples
See Also
See Also as qk_institutional, ~~~
Examples
# SG Capital QKID using CIK
sg <- qk_cik(1510099)
# sgcap is available as a dataset in package
sgcap <- qk_institutional(sg, yyyyqq=202401)
head(qk_filter(sgcap, by='incr'))
head(qk_sort(sgcap, by='QtrsHeld'))
head(qk_sort(qk_filter(sgcap, by='decr'), by='QOQValue', incr=FALSE))
qk_summary(sgcap)
Fundamentals Data
Description
Functions to get ‘as-reported’ and ‘revised’ fundamentals line item data from QK™/Financials API.
Usage
qk_fn(qkids,
items,
qkid_items = NULL,
from = 20000101,
to = today(),
asof = today(),
asfiled = FALSE,
aspit = getOption("qk.aspit",FALSE),
ticker = TRUE,
hide = TRUE,
quiet = TRUE,
cache = TRUE)
qk_fncodes()
## S3 method for class 'qk_fn'
qk_select(x, id_item, id, item, i, j, ...)
qkiditems(qkids,items,using=TRUE)
pit_asof(pit,dt = today(), qtrs=1)
pit_asfiled(pit, dt = today(), qtrs=1)
Arguments
qkids |
a |
items |
a vector or list of vectors containing QUANTkiosk™ item codes (e.g. SALE, NI, AT, ATC) corresponding to US-GAAP, DEI, or other line item(s). See qk_fncodes() |
qkid_items |
an object of class |
from |
start date of returned series. |
to |
end date of returned series. expresses as an integer or |
asof |
a number in form of YYYYMMDD. return last known values (incl. restated) for all periods up to ‘asof’ date. See details for more information on subscription limits. |
asfiled |
return as-filed values from original report (no restatements). |
aspit |
requests full point-in-time table for historical dates. ONLY AVAILABLE TO ENTERPRISE. By default this is attempted once and if not enabled
either the latest point-in-time or as-filed data returned depening on |
ticker |
should column names use tickers |
hide |
hide API Key from verbose ( |
quiet |
control verbosity. |
cache |
defaults to |
pit |
|
dt |
date (yyyymmdd) used for point-in-time calculation. This will be converted using |
qtrs |
number of quarters to extract |
x |
an object of |
... |
additional arguments if applicable |
id_item |
a vector of id-items in form ‘TICKER.ITEM’ to extract |
id |
the ticker of the entity for extraction in |
item |
a vector or list of vectors containing QUANTkiosk™ item codes (e.g. SALE, NI, AT, ATC) corresponding to US-GAAP, DEI, or other line item(s). See qk_fncodes() |
using |
internal flag to indicate input form. |
i |
extract rows from |
j |
extract colums from |
Details
To view current QUANTkiosk™ item codes call qk_fncodes(). This will return a list organized by supported statements. This is constantly expanding.
For each item in items requested a request applied to every qkid in
qkids. All responses are cached by default. This can be disabled using cache=FALSE.
For enterprise subscriptions, if view='pit' is requested the subsequent object may contain restated and
as-filed values and times. Two functions
are provided to resolve to unique observations at each date: pitAsFiled converts the series to only include the initial
observation recorded, whereas pitAsOf reconciles restatements up to and including
the date specified.
Value
A multivariate xts timeseries if full=FALSE, containing one column for each qkid, item pair. The column names are derived from the QKID metadata. See examples for more details.
If full=TRUE a nested-list of data.frames are returned with additional details for each item value. See pfe.sale sample data. The general object looks like:
qkid (e.g. "0001045810.000.001S5TZJ6" [NVDA])
sale (xts)
eps (xts)
atc (xts)
qkid (e.g. "0001564408.000.00441QMK5" [SNAP])
sale (xts)
eps (xts)
atc (xts)
Note
Depending on a user's subscription level, there may be restrictions on the universe of
available companies and available line items. For asof queries, the the requests
will resolve to the date of the query unless the subscription is for arbitrary point-in-time
data. See ‘https://quantkiosk.com/point-in-time’ for a full discussion of the details.
Author(s)
QUANTkiosk™ team.
References
SEC EDGAR® filing and reporting rules.
See Also
See Also qkid
See Also qk_fncodes
Examples
## Not run:
# get list of all QK™ codes
fncodes <- qk_fncodes()
# Pfizer and J&J quarterly revenue (SALE) and net income (NI)
pfe <- qk_fn(qk_ticker(c("PFE","JNJ")), c("SALE","NI"))
tail( to_df(pfe) )
# single company, single item - Net Income
qkiditems(qk_ticker("AMD"), "NI")
# single company, multiple items - Revenue + Net Income
qkiditems(qk_ticker("AMD"), c("SALE","NI"))
# multiple companies, single item (used for each companies)
qkiditems(qk_ticker(c("AMD", "AAPL")), "NI")
# multiple companies, multiple items (used for each companies) - Assets + Assets Current
qkiditems(qk_ticker(c("AMD", "AAPL")), c("AT", "ATC"))
# multiple companies, multiple differnt items for each
qkiditems(qk_ticker(c("AMD", "AAPL")), list("NI",c("AT","ATC")))
## End(Not run)
Convert and Display QUANTkiosk Objects
Description
Generic functions to extract, transform and display QUANTkiosk api data to common R objects.
Usage
qk_select(x, ...)
to_df(x, ...)
as.qk_df(x, view="", showfull=FALSE, cls="qk_df", highlight=NULL)
to_ts(x, ...)
## S3 method for class 'qk_fn'
to_ts(x, i='fq', dt='fpe', ...)
## S3 method for class 'qk_df'
to_ts(x, i='fq', dt='fpe', ...)
full(x, showfull=TRUE, ...)
## S3 method for class 'qk_fn'
full(x, showfull=TRUE, ...)
## S3 method for class 'qk_df'
full(x, showfull=TRUE, ...)
## S3 method for class 'qk_fn'
subset(x, ...)
## S3 method for class 'qk_fn'
as.data.frame(x, ...)
## S3 method for class 'qk_df'
subset(x, ...)
## S3 method for class 'qk_df'
head(x, ...)
## S3 method for class 'qk_df'
tail(x, ...)
highlight(x, ...)
## S3 method for class 'data.frame'
highlight(x, i, color='yellow', bg, fg, ...)
Arguments
x |
Object to transform. These are dispatched to object specific methods when appropriate. |
view |
internal view represented for use in pit functions |
showfull |
Display all hidden columns. |
highlight |
internal use |
i |
Row selection |
dt |
Column to use for indexing by time (to_ts) |
color |
background color for highlighting |
bg |
background color for highlighting. color names or ansi 256 colors. |
fg |
foreground color for highlighting. color names or ansi 256 colors. |
cls |
additional classes to add to conversion |
... |
Additional arguments depending on object class. |
Details
Most data fetched from QUANTkiosk results in either a QK typed object or a data.frame of class qk_df.
Central to manipulation of these data, the package provides a variety of s3 methods to interact with base or stats functionalty.
Value
A modified or transformed oject
Examples
head(crox)
highlight(crox, 2:3)
## Not run:
# R >= 4.1.0
# crox |> highlight(2) |> highlight(3,'green')
## End(Not run)
Universe Function
Description
Tools to Fetch Universe Data
Usage
qk_univ(univ, dt, src = "QK", cache=TRUE)
Arguments
univ |
name of universe |
dt |
date for universe in form yyyymmdd. NOT IMPLEMENTED. |
src |
source of universe - ‘QK’ or local file path. NOT IMPLEMENTED. |
cache |
should data come from cache if available |
Details
The QK universe function allows for named universe requests. Each universe is constructed using a set of rules.
Value
A qkid object containing the universe.
Note
Neither dt= or src= are implemented in this version.
Author(s)
QUANTkiosk™ team.
References
‘https://quantkiosk.com/qkid’
See Also
See Also qkid
Examples
## Not run:
qk100 <- qk_univ("QK100")
# top 1000 widely firms
qk1k <- qk_univ("QK1000")
# next 2000 most widely held firms
qk2k <- qk_univ("QK2000")
## End(Not run)
QKID™ Tools
Description
Functions to create, extract and convert entity and instrument identifiers within QUANTkiosk™'s QKID™ open symbology.
Usage
qk_search(x, type=c('issuer','manager','fund','person'), n=10)
qk_search_co(x, n=10)
qk_search_mgr(x, n=10)
qk_ticker(ticker, ...)
to_ticker(qkid, ...)
qk_figi(figi, type = c("figi", "shareClass", "composite"), ...)
to_figi(qkid, type = c("figi", "shareClass", "composite"), ...)
qk_cik(cik, ...)
to_cik(qkid, ...)
qk_permid(permid, type = c("org", "instrument", "quote"), ...)
to_permid(qkid, type = c("org", "instrument", "quote"), ...)
qk_name(name, ...)
to_name(qkid, ...)
qk_sic(sic, ...)
to_sic(qkid, ...)
qk_sector(sector, ...)
to_sector(qkid, ...)
# convert string version of QKID to class `qkid`
qkid(qkid, src="qkid", srcid=qkid, retrieved=yyyymmdd())
is.qkid(x)
as.qkid(x)
.qkidVersion(qkid)
classname(qkid)
detail(qkid)
entity(qkid)
cls(qkid)
instrument(qkid)
Arguments
x |
object to convert or test, or name to search |
qkid |
|
cik |
a string representing a CIK (Central Index Key) |
permid |
a string representing a PermID |
ticker |
a string representing a ticker |
figi |
a string representing a FIGI |
name |
a string representing a name |
sic |
Standard Industrial Classification (SIC) code |
sector |
QK™ Sector (see below) |
... |
unused |
type |
optional conversion specifics, or one of ‘issuer’ or ‘fund’ in |
src |
source used in construction (e.g. |
srcid |
value used in construction (e.g. |
retrieved |
date of retrieved (or created) qkid |
n |
number of search matches to return |
Details
R functions to allow for mapping and manipulation of
QUANTkiosk™'s symbology as well as common identifiers using a special qkid
class.
Value
QUANTkiosk™'s public identifier, known as ‘QKID™’ is the central identifier used by the QK™ API. It is freely licensed under CC-BY-SA and is designed to provide institutional quality symbology usable within professional asset management while being simple to use.
For a full discussion, please refer to official website below and the associated documentation. The ‘QKID™’ is a portmantaeu identifier, combining well-established entity and instrument identifiers into a linked symbology suitable for research and trading. There are three main components to a fixed-width ‘QKID™’:
‘QKID™’ can also be mapped to sectors and SIC codes.
ENTITY.CLS.INSTRUMENT
ENTITY: 10 characters uniquely matching an entity
CLS: 4 character code indicating the instrument class
INSTRUMENT: a unique, immutable instrument ID
‘cls’ and ‘detail’ provide access to qkid object
internals and details, returning broken-down identifiers or meta details about
the id.
To facilitate discovery, qkiosk provides search functionality.
qk_search_co offers fuzzy matching to public companies (e.g. Pfizer or McDonalds),
returning a menu to select the match from. The return value is the matched ‘QKID’.
Similar functionality is available to find investment managers (e.g. D.E Shaw) via
the qk_search_mgr function.
Note
Point-in-time QKID™ queries are currently not available outside of a subscription, this may change in the future.
Author(s)
QUANTkiosk™
References
Official QKID™ site: ‘https://www.quantkiosk.com/qkid’
Examples
# QKID™ string to class qkid
qkid("0000200406.0000.001S5SHQ9")
## Not run:
qk_search_co("tesla")
qk_search_mgr("pershing")
jnj.qkid <- qk_ticker("JNJ")
to_ticker(jnj.qkid)
to_cik(jnj.qkid)
detail(jnj.qkid)
faang <- qk_ticker(c("META","AAPL","AMZN","NFLX","GOOGL"))
entity(faang)
cls(faang)
instrument(faang)
cls(faang)
to_ticker(faang)
to_name(faang)
to_permid(faang)
to_figi(faang)
to_cik(faang)
## End(Not run)
SG Capital Institutional Ownership Details (Aggregated)
Description
Institutional Ownership API example of small manager filing.
Usage
sgcap
Format
A data frame with 76 observations on the following 22 variables.
filerNamename of filer (i.e. fund name)
filingcanonical EDGAR® filing path
submissionTypefiling type: 13F-HR or 13F-HR/A (amended)
reportPeriodperiod of report
filedDatewhen the data was filed
issuername of instrument
titleOfClasstitle or class name of instrument
issuerSICofficial standardized industrial code
issuerSectortwo-character sector code from QUANTkiosk™
issuerTickercommon exchange ticker
issuerQkidQKID™ symbol
valuefair market value of position at end of report period
shrsOrPrnAmtnumber of shares held or principal amount
putCallone of ‘PUT’, ‘CALL’ or empty
shrsOrPrnAmtTypeshares ‘SH’ or principal ‘PRN’
portWgtportfolio weight (QK™ calculated)
hasOtherManagerlogical value indicating if submanagers are reported
QtrsHeldquarters held (QK™ calculated)
QOQSshPrnAmtquarter over quarter change in shares or principal amount of holding (QK™ calculated)
QOQValuequarter over quarter change in value of holding (QK™ calculated)
QOQPortWgtquarter over quarter change in portfolio weight (QK™ calculated)
newOrDelis position ‘NEW’ or ‘DEL’eted. See details. (QK™ calculated)
Details
Institutional Ownership consists of quarterly ‘13F-HR’ and amended reports ‘13F-HR/A’ made by investors who hold at least $100 million of securities declared by the U.S. Securities and Exchange Commission. Filers include banks, insurance companies, and hedge funds. The filings are due 45 days after the end of each calendar quarter, and are filed via the EDGAR® system. The securities reported must be from the official ‘13(f) securities’ list published by the SEC. See references section.
QUANTkiosk™ provides access to these filings in two forms at present. The first is an aggregated view
that includes one row per unique instrument held.
The second version (ex. deshaw) contains additional submanagers details. See the respective help page.
Additional fields not present in the official ‘13F-HR’ or ‘13F-HR/A’ but provided in both aggregated and non-aggregated views:
issuerSIC
issuerSector
issuerQkid
issuerTicker
These fields are useful for tracking changes between quarters as well as intrafiling analysis.
Note that hasOtherManager is set to TRUE or FALSE if the filing reports other manager holdings. See deshaw for more details on additional fields in non-aggregated views
Additional fields pre-calculated by QUANTkiosk™ across time:
QOQSshPrnAmt
QOQValue
QOQPortWgt
newOrDel
QtrsHeld
QK™ calculates these fields as quarter over quarter change in absolute terms. newOrDel marks holdings that are ‘NEW’ this quarter or ‘DEL’eleted. Deleted entries are
not in the filing, but are provided to identify positions traded out of. QtrsHeld shows duration of a continuously held position in aggregate, or in the case of submanager API data,
positions held continuously by the exact combination of submanagers. The latter is less reliable due to reporting considerations in the source data.
References
Ownership homepage: ‘https://www.quantkiosk.com/ownership’
Ownership Dashboard: ‘https://one.quantkiosk.com/ownership’
SG Capital Filings ‘https://www.sec.gov/edgar/browse/?CIK=0001510099’
Form 13F-HR FAQ: ‘https://www.sec.gov/divisions/investment/13ffaq’
Official 13(f) Securities ‘https://www.sec.gov/divisions/investment/13flists’
See Also
R function: qk_institutional
Non-aggregated (Submanager) example: deshaw
Examples
data(sgcap)
Simple Dates
Description
Simplified dates expressed as integers to facilitate easy API access.
Usage
yyyymmdd(x = Sys.time(), tz = Sys.getenv("TZ"))
today()
to_qq(yyyymmdd)
to_yyyy(yyyymmdd)
to_yyyyqq(yyyymmdd)
qtrs(n)
days(n)
## S3 method for class 'yyyymmdd'
seq(from, to, by, length.out = NULL, along.with = NULL, ...)
## S3 method for class 'yyyymmdd'
diff(x, lag = 1, differences = 1, ...)
is.yyyymmdd(x)
as.yyyymmdd(x, ...)
## S3 method for class 'Date'
as.yyyymmdd(x, ...)
## S3 method for class 'numeric'
as.yyyymmdd(x, ...)
## S3 method for class 'yyyymmdd'
as.Date(x, ...)
## S3 method for class 'yyyymmdd'
as.POSIXct(x, ...)
## S3 method for class 'yyyymmdd'
as.POSIXlt(x, ...)
Arguments
x |
R object |
yyyymmdd |
an 8-digit date |
tz |
time zone to use internally. |
n |
integer value to offset - may be positive or negative |
from |
starting date. Required |
to |
end date. Optional. |
by |
increment of the sequence. Optional. See ‘Details’. |
length.out |
integer, optional. Desired length of the sequence. |
along.with |
take the length from the length of this argument. |
lag |
an integer indicating which lag to use. |
differences |
an integer indicating the order of the difference. |
... |
arguments passed to or from other methdod. |
Details
R has a weath of date functionality but lacks a coherent integer date representation that is capable of date math and proper timezone handling. This set of tools provides this.
Value
TBD
Author(s)
QUANTkiosk
References
Most date functionality is provided by conversion to R's Date internally and cast
back to a yyyymmdd before returning. See Date and seq.Date for more details.
See Also
See also today
Examples
# today - no TZ
today()
is.yyyymmdd(today())
# same output as today() but possible to change TZ
yyyymmdd()
# sequence
seq(yyyymmdd(), yyyymmdd() + 10)
seq(yyyymmdd(), by='month', length.out=10)
seq(yyyymmdd(), by='month', along.with=1:5)
# difference between dates
diff(yyyymmdd()+c(1:5,14:20), lag = 1, differences = 1)
# add durations
yyyymmdd() + 10
yyyymmdd() + qtrs(2)
# subtract durations
yyyymmdd() + qtrs(-2)
yyyymmdd() - qtrs(2)
# convert to yyyymmdd
as.yyyymmdd(Sys.Date())
as.yyyymmdd(20240124)
# convert back to R classes
as.Date(yyyymmdd())
as.POSIXct(yyyymmdd())