Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions crates/fmp-py/python/fmp/_native/congressional/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ class CongressionalMemberProfile:
@property
def latest_position(self) -> builtins.str: ...
@property
def image(self) -> builtins.str: ...
def image(self) -> typing.Optional[builtins.str]: ...
@property
def active(self) -> builtins.bool: ...
@property
Expand All @@ -297,7 +297,7 @@ class CongressionalMemberProfile:
latest_party: builtins.str,
latest_state: builtins.str,
latest_position: builtins.str,
image: builtins.str,
image: typing.Optional[builtins.str],
active: builtins.bool,
years_active: builtins.float,
) -> CongressionalMemberProfile: ...
Expand Down
12 changes: 6 additions & 6 deletions crates/fmp-py/python/fmp/_native/crypto/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -112,21 +112,21 @@ class CryptocurrencyListing:
@property
def exchange(self) -> builtins.str: ...
@property
def ico_date(self) -> datetime.date: ...
def ico_date(self) -> typing.Optional[datetime.date]: ...
@property
def circulating_supply(self) -> builtins.float: ...
def circulating_supply(self) -> typing.Optional[builtins.float]: ...
@property
def total_supply(self) -> builtins.float: ...
def total_supply(self) -> typing.Optional[builtins.float]: ...
def __eq__(self, other: builtins.object, /) -> builtins.bool: ...
def __new__(
cls,
*,
symbol: builtins.str,
name: builtins.str,
exchange: builtins.str,
ico_date: datetime.date,
circulating_supply: builtins.float,
total_supply: builtins.float,
ico_date: typing.Optional[datetime.date],
circulating_supply: typing.Optional[builtins.float],
total_supply: typing.Optional[builtins.float],
) -> CryptocurrencyListing: ...
def __getnewargs_ex__(self) -> tuple[tuple, dict]: ...
def __repr__(self) -> builtins.str: ...
Expand Down
12 changes: 6 additions & 6 deletions crates/fmp-py/python/fmp/_native/esg/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ class EsgDisclosure:
@property
def cik(self) -> builtins.str: ...
@property
def company_name(self) -> builtins.str: ...
def company_name(self) -> typing.Optional[builtins.str]: ...
@property
def form_type(self) -> builtins.str: ...
def form_type(self) -> typing.Optional[builtins.str]: ...
@property
def environmental_score(self) -> builtins.float: ...
@property
Expand All @@ -103,8 +103,8 @@ class EsgDisclosure:
accepted_date: datetime.date,
symbol: builtins.str,
cik: builtins.str,
company_name: builtins.str,
form_type: builtins.str,
company_name: typing.Optional[builtins.str],
form_type: typing.Optional[builtins.str],
environmental_score: builtins.float,
social_score: builtins.float,
governance_score: builtins.float,
Expand Down Expand Up @@ -162,7 +162,7 @@ class EsgRating:
@property
def cik(self) -> builtins.str: ...
@property
def company_name(self) -> builtins.str: ...
def company_name(self) -> typing.Optional[builtins.str]: ...
@property
def industry(self) -> builtins.str: ...
@property
Expand All @@ -177,7 +177,7 @@ class EsgRating:
*,
symbol: builtins.str,
cik: builtins.str,
company_name: builtins.str,
company_name: typing.Optional[builtins.str],
industry: builtins.str,
fiscal_year: builtins.int,
esg_risk_rating: builtins.str,
Expand Down
42 changes: 22 additions & 20 deletions crates/fmp-py/python/fmp/_native/fundraising/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -96,31 +96,31 @@ class CrowdfundingOffering:
@property
def issuer_zip_code(self) -> builtins.str: ...
@property
def issuer_website(self) -> builtins.str: ...
def issuer_website(self) -> typing.Optional[builtins.str]: ...
@property
def intermediary_company_name(self) -> builtins.str: ...
def intermediary_company_name(self) -> typing.Optional[builtins.str]: ...
@property
def intermediary_commission_cik(self) -> builtins.str: ...
@property
def intermediary_commission_file_number(self) -> builtins.str: ...
def intermediary_commission_file_number(self) -> typing.Optional[builtins.str]: ...
@property
def compensation_amount(self) -> builtins.str: ...
def compensation_amount(self) -> typing.Optional[builtins.str]: ...
@property
def financial_interest(self) -> builtins.str: ...
def financial_interest(self) -> typing.Optional[builtins.str]: ...
@property
def security_offered_type(self) -> builtins.str: ...
def security_offered_type(self) -> typing.Optional[builtins.str]: ...
@property
def security_offered_other_description(self) -> typing.Optional[builtins.str]: ...
@property
def number_of_security_offered(self) -> builtins.float: ...
@property
def offering_amount(self) -> builtins.float: ...
@property
def over_subscription_allocation_type(self) -> builtins.str: ...
def over_subscription_allocation_type(self) -> typing.Optional[builtins.str]: ...
@property
def maximum_offering_amount(self) -> builtins.float: ...
@property
def offering_deadline_date(self) -> datetime.date: ...
def offering_deadline_date(self) -> typing.Optional[datetime.date]: ...
@property
def current_number_of_employees(self) -> builtins.int: ...
@property
Expand Down Expand Up @@ -181,21 +181,21 @@ class CrowdfundingOffering:
issuer_city: builtins.str,
issuer_state_or_country: builtins.str,
issuer_zip_code: builtins.str,
issuer_website: builtins.str,
intermediary_company_name: builtins.str,
issuer_website: typing.Optional[builtins.str],
intermediary_company_name: typing.Optional[builtins.str],
intermediary_commission_cik: builtins.str,
intermediary_commission_file_number: builtins.str,
compensation_amount: builtins.str,
financial_interest: builtins.str,
security_offered_type: builtins.str,
intermediary_commission_file_number: typing.Optional[builtins.str],
compensation_amount: typing.Optional[builtins.str],
financial_interest: typing.Optional[builtins.str],
security_offered_type: typing.Optional[builtins.str],
security_offered_other_description: typing.Optional[builtins.str],
number_of_security_offered: builtins.float,
offering_price: builtins.int | builtins.float,
offering_amount: builtins.float,
over_subscription_accepted: typing.Literal["Y", "N"],
over_subscription_allocation_type: builtins.str,
over_subscription_allocation_type: typing.Optional[builtins.str],
maximum_offering_amount: builtins.float,
offering_deadline_date: datetime.date,
offering_deadline_date: typing.Optional[datetime.date],
current_number_of_employees: builtins.int,
total_asset_most_recent_fiscal_year: builtins.float,
total_asset_prior_fiscal_year: builtins.float,
Expand Down Expand Up @@ -415,7 +415,7 @@ class RegulationDOffering:
@property
def industry_group_type(self) -> builtins.str: ...
@property
def revenue_range(self) -> builtins.str: ...
def revenue_range(self) -> typing.Optional[builtins.str]: ...
@property
def federal_exemptions_exclusions(self) -> builtins.str: ...
@property
Expand All @@ -425,7 +425,9 @@ class RegulationDOffering:
@property
def duration_of_offering_is_more_than_year(self) -> builtins.bool: ...
@property
def securities_offered_are_of_equity_type(self) -> builtins.bool: ...
def securities_offered_are_of_equity_type(
self,
) -> typing.Optional[builtins.bool]: ...
@property
def is_business_combination_transaction(self) -> builtins.bool: ...
@property
Expand Down Expand Up @@ -477,12 +479,12 @@ class RegulationDOffering:
related_person_zip_code: builtins.str,
related_person_relationship: builtins.str,
industry_group_type: builtins.str,
revenue_range: builtins.str,
revenue_range: typing.Optional[builtins.str],
federal_exemptions_exclusions: builtins.str,
is_amendment: builtins.bool,
date_of_first_sale: typing.Optional[datetime.date],
duration_of_offering_is_more_than_year: builtins.bool,
securities_offered_are_of_equity_type: builtins.bool,
securities_offered_are_of_equity_type: typing.Optional[builtins.bool],
is_business_combination_transaction: builtins.bool,
minimum_investment_accepted: builtins.float,
total_offering_amount: builtins.float,
Expand Down
4 changes: 2 additions & 2 deletions crates/fmp-py/python/fmp/_native/market_hours/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class ExchangeHoliday:
@property
def name(self) -> builtins.str: ...
@property
def is_closed(self) -> builtins.bool: ...
def is_closed(self) -> typing.Optional[builtins.bool]: ...
@property
def adj_open_time(self) -> typing.Any: ...
@property
Expand All @@ -42,7 +42,7 @@ class ExchangeHoliday:
exchange: builtins.str,
date: datetime.date,
name: builtins.str,
is_closed: builtins.bool,
is_closed: typing.Optional[builtins.bool],
adj_open_time: typing.Optional[builtins.str],
adj_close_time: typing.Optional[builtins.str],
) -> ExchangeHoliday: ...
Expand Down
8 changes: 4 additions & 4 deletions crates/fmp-py/python/fmp/_native/news/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ class NewsArticle:
@property
def title(self) -> builtins.str: ...
@property
def image(self) -> builtins.str: ...
def image(self) -> typing.Optional[builtins.str]: ...
@property
def site(self) -> builtins.str: ...
def site(self) -> typing.Optional[builtins.str]: ...
@property
def text(self) -> builtins.str: ...
@property
Expand All @@ -101,8 +101,8 @@ class NewsArticle:
published_date: datetime.datetime,
publisher: builtins.str,
title: builtins.str,
image: builtins.str,
site: builtins.str,
image: typing.Optional[builtins.str],
site: typing.Optional[builtins.str],
text: builtins.str,
url: builtins.str,
) -> NewsArticle: ...
Expand Down
12 changes: 6 additions & 6 deletions crates/fmp-py/python/fmp/_native/sec_filings/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,11 @@ class SecCompanyProfile:
@property
def state_of_incorporation(self) -> builtins.str: ...
@property
def fiscal_year_end(self) -> builtins.str: ...
def fiscal_year_end(self) -> typing.Optional[builtins.str]: ...
@property
def ipo_date(self) -> datetime.date: ...
@property
def employees(self) -> builtins.str: ...
def employees(self) -> typing.Optional[builtins.str]: ...
@property
def sec_filings_url(self) -> builtins.str: ...
@property
Expand Down Expand Up @@ -148,9 +148,9 @@ class SecCompanyProfile:
exchange: builtins.str,
state_location: builtins.str,
state_of_incorporation: builtins.str,
fiscal_year_end: builtins.str,
fiscal_year_end: typing.Optional[builtins.str],
ipo_date: datetime.date,
employees: builtins.str,
employees: typing.Optional[builtins.str],
sec_filings_url: builtins.str,
tax_identification_number: builtins.str,
fifty_two_week_range: builtins.str,
Expand Down Expand Up @@ -199,7 +199,7 @@ class SecCompanySearchResult:
@property
def business_address(self) -> builtins.str: ...
@property
def phone_number(self) -> builtins.str: ...
def phone_number(self) -> typing.Optional[builtins.str]: ...
def __eq__(self, other: builtins.object, /) -> builtins.bool: ...
def __new__(
cls,
Expand All @@ -210,7 +210,7 @@ class SecCompanySearchResult:
sic_code: builtins.str,
industry_title: builtins.str,
business_address: builtins.str,
phone_number: builtins.str,
phone_number: typing.Optional[builtins.str],
) -> SecCompanySearchResult: ...
def __getnewargs_ex__(self) -> tuple[tuple, dict]: ...
def __repr__(self) -> builtins.str: ...
Expand Down
4 changes: 2 additions & 2 deletions crates/fmp-py/src/models/congressional.rs
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ pub(crate) struct CongressionalMemberProfile {
#[pyo3(get)]
pub latest_position: String,
#[pyo3(get)]
pub image: String,
pub image: Option<String>,
#[pyo3(get)]
pub active: bool,
#[pyo3(get)]
Expand All @@ -351,7 +351,7 @@ impl CongressionalMemberProfile {
latest_party: String,
latest_state: String,
latest_position: String,
image: String,
image: Option<String>,
active: bool,
years_active: f64,
) -> Self {
Expand Down
14 changes: 7 additions & 7 deletions crates/fmp-py/src/models/crypto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ pub(crate) struct CryptocurrencyListing {
#[pyo3(get)]
pub exchange: String,
#[pyo3(get)]
pub ico_date: ::chrono::NaiveDate,
pub ico_date: Option<::chrono::NaiveDate>,
#[pyo3(get)]
pub circulating_supply: f64,
pub circulating_supply: Option<f64>,
#[pyo3(get)]
pub total_supply: f64,
pub total_supply: Option<f64>,
}

#[gen_stub_pymethods]
Expand All @@ -34,9 +34,9 @@ impl CryptocurrencyListing {
symbol: String,
name: String,
exchange: String,
ico_date: ::chrono::NaiveDate,
circulating_supply: f64,
total_supply: f64,
ico_date: Option<::chrono::NaiveDate>,
circulating_supply: Option<f64>,
total_supply: Option<f64>,
) -> Self {
Self {
symbol,
Expand Down Expand Up @@ -147,7 +147,7 @@ impl From<libfmp::responses::crypto::CryptocurrencyListing> for CryptocurrencyLi
symbol: value.symbol.into_inner(),
name: value.name,
exchange: value.exchange.into_inner(),
ico_date: value.ico_date.into_inner(),
ico_date: value.ico_date.map(|value| value.into_inner()),
circulating_supply: value.circulating_supply,
total_supply: value.total_supply,
}
Expand Down
14 changes: 7 additions & 7 deletions crates/fmp-py/src/models/esg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ pub(crate) struct EsgDisclosure {
#[pyo3(get)]
pub cik: String,
#[pyo3(get)]
pub company_name: String,
pub company_name: Option<String>,
#[pyo3(get)]
pub form_type: String,
pub form_type: Option<String>,
#[pyo3(get)]
pub environmental_score: f64,
#[pyo3(get)]
Expand All @@ -45,8 +45,8 @@ impl EsgDisclosure {
accepted_date: ::chrono::NaiveDate,
symbol: String,
cik: String,
company_name: String,
form_type: String,
company_name: Option<String>,
form_type: Option<String>,
environmental_score: f64,
social_score: f64,
governance_score: f64,
Expand Down Expand Up @@ -222,7 +222,7 @@ impl From<libfmp::responses::esg::EsgDisclosure> for EsgDisclosure {
symbol: value.symbol.into_inner(),
cik: value.cik.into_inner(),
company_name: value.company_name,
form_type: value.form_type.into_inner(),
form_type: value.form_type.map(|value| value.into_inner()),
environmental_score: value.environmental_score,
social_score: value.social_score,
governance_score: value.governance_score,
Expand All @@ -247,7 +247,7 @@ pub(crate) struct EsgRating {
#[pyo3(get)]
pub cik: String,
#[pyo3(get)]
pub company_name: String,
pub company_name: Option<String>,
#[pyo3(get)]
pub industry: String,
#[pyo3(get)]
Expand All @@ -268,7 +268,7 @@ impl EsgRating {
fn new(
symbol: String,
cik: String,
company_name: String,
company_name: Option<String>,
industry: String,
fiscal_year: u32,
esg_risk_rating: String,
Expand Down
Loading
Loading