Code Snippets
curl "https://financialdata.net/api/v1/senate-trading?identifier=WSM&key=API_KEY"import requests
url = 'https://financialdata.net/api/v1/senate-trading?identifier=WSM&key=API_KEY'
response = requests.get(url)
print(response.json())
const url = 'https://financialdata.net/api/v1/senate-trading?identifier=WSM&key=API_KEY';
const response = await fetch(url);
const data = await response.json();
console.log(data);
Sample Response
[
{
"name_of_reporting_person": "Robert P Corker, Jr.",
"type_of_reporting_person": "Senator",
"report_date": "2015-12-11",
"transaction_number": "913",
"transaction_type": "Sale (Full)",
"transaction_date": "2014-05-20",
"owner_type": "Self",
"trading_symbol": "WSM",
"asset_name": "Williams-Sonoma Inc. (NYSE)",
"asset_type": null,
"amount": "$1,001 - $15,000",
"comment": null
},
...
]Query Parameters
| Name | Type | Description |
|---|---|---|
| identifier | string | The trading symbol for a security. (e.g., MSFT) |
| offset | integer | (Optional) The initial position of the record subset, which indicates how many records to skip. Defaults to 0. (e.g., 100) |
| format | string | (Optional) The format of the returned data, either JSON or CSV. Defaults to JSON. (e.g., json, csv) |
Endpoint Overview
Members of the United States Senate are required to disclose any purchase, sale, or exchange of a stock, bond, commodity future, or other security when the transaction exceeds $1,000. The API endpoint provides detailed data about each of the transactions made. There is a limit of 100 records per API call.
Company Profile
WILLIAMS SONOMA INC
NYSE: WSM- Market Cap:$22.61B
- ISIN:US9699041011
- Fiscal Year End:01/31
- CEO:Laura Alber
- Employees:19600
Williams-Sonoma, Inc., is an American publicly traded consumer retail company that sells kitchenware and home furnishings. It is headquartered in San Francisco, California, United States. The company has 625 brick and mortar stores and distributes to more than 60 countries, with brands including Williams Sonoma, Williams Sonoma Home, Pottery Barn, Pottery Barn Kids, PBteen, West Elm, Mark and Graham, Dormify, and Rejuvenation. Williams-Sonoma, Inc., also operates through eight corresponding websites and a gift registry.