snaptrade-python-sdk 10.9.0__py3-none-any.whl → 11.0.152__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- snaptrade_client/__init__.py +2 -2
- snaptrade_client/api_client.py +348 -97
- snaptrade_client/api_response.py +22 -2
- snaptrade_client/apis/path_to_api.py +102 -132
- snaptrade_client/apis/paths/accounts_account_id_activities.py +7 -0
- snaptrade_client/apis/paths/accounts_account_id_orders_details.py +7 -0
- snaptrade_client/apis/paths/accounts_account_id_orders_v2.py +7 -0
- snaptrade_client/apis/paths/accounts_account_id_recent_orders.py +7 -0
- snaptrade_client/apis/paths/accounts_account_id_recent_orders_v2.py +7 -0
- snaptrade_client/apis/paths/accounts_account_id_return_rates.py +7 -0
- snaptrade_client/apis/paths/accounts_account_id_trading_bracket.py +7 -0
- snaptrade_client/apis/paths/accounts_account_id_trading_cancel.py +7 -0
- snaptrade_client/apis/paths/accounts_account_id_trading_crypto.py +7 -0
- snaptrade_client/apis/paths/accounts_account_id_trading_crypto_preview.py +7 -0
- snaptrade_client/apis/paths/accounts_account_id_trading_instruments_cryptocurrency_pairs.py +7 -0
- snaptrade_client/apis/paths/accounts_account_id_trading_instruments_cryptocurrency_pairs_instrument_symbol_quote.py +7 -0
- snaptrade_client/apis/paths/accounts_account_id_trading_options.py +7 -0
- snaptrade_client/apis/paths/accounts_account_id_trading_replace.py +7 -0
- snaptrade_client/apis/paths/authorizations_authorization_id_disable.py +7 -0
- snaptrade_client/apis/paths/authorizations_authorization_id_refresh.py +7 -0
- snaptrade_client/apis/paths/authorizations_authorization_id_return_rates.py +7 -0
- snaptrade_client/apis/paths/brokerages_slug_instruments.py +7 -0
- snaptrade_client/apis/paths/snap_trade_reset_user_secret.py +7 -0
- snaptrade_client/apis/paths/symbols_query.py +7 -0
- snaptrade_client/apis/tag_to_api.py +6 -12
- snaptrade_client/apis/tags/__init__.py +2 -4
- snaptrade_client/apis/tags/account_information_api.py +2 -32
- snaptrade_client/apis/tags/account_information_api_generated.py +43 -0
- snaptrade_client/apis/tags/api_status_api.py +2 -18
- snaptrade_client/apis/tags/{api_disclaimer_api.py → api_status_api_generated.py} +4 -5
- snaptrade_client/apis/tags/authentication_api.py +2 -26
- snaptrade_client/apis/tags/authentication_api_generated.py +29 -0
- snaptrade_client/apis/tags/connections_api.py +2 -24
- snaptrade_client/apis/tags/connections_api_generated.py +33 -0
- snaptrade_client/apis/tags/experimental_endpoints_api.py +6 -0
- snaptrade_client/apis/tags/experimental_endpoints_api_generated.py +23 -0
- snaptrade_client/apis/tags/options_api.py +2 -26
- snaptrade_client/apis/tags/options_api_generated.py +23 -0
- snaptrade_client/apis/tags/reference_data_api.py +2 -38
- snaptrade_client/apis/tags/reference_data_api_generated.py +43 -0
- snaptrade_client/apis/tags/trading_api.py +2 -36
- snaptrade_client/apis/tags/trading_api_generated.py +45 -0
- snaptrade_client/apis/tags/transactions_and_reporting_api.py +2 -20
- snaptrade_client/apis/tags/{error_logs_api.py → transactions_and_reporting_api_generated.py} +6 -5
- snaptrade_client/client.py +21 -18
- snaptrade_client/client.pyi +48 -0
- snaptrade_client/client_custom.py +29 -0
- snaptrade_client/configuration.py +40 -40
- snaptrade_client/exceptions.py +65 -50
- snaptrade_client/model/account.py +209 -71
- snaptrade_client/model/account.pyi +209 -71
- snaptrade_client/model/account_balance.py +140 -0
- snaptrade_client/model/account_balance.pyi +140 -0
- snaptrade_client/model/{target_asset_list.py → account_cash_restrictions.py} +7 -12
- snaptrade_client/model/{target_asset_list.pyi → account_cash_restrictions.pyi} +7 -12
- snaptrade_client/model/account_holdings.py +17 -15
- snaptrade_client/model/account_holdings.pyi +17 -15
- snaptrade_client/model/account_holdings_account.py +99 -23
- snaptrade_client/model/account_holdings_account.pyi +99 -23
- snaptrade_client/model/{signature.py → account_id.py} +2 -2
- snaptrade_client/model/{signature.pyi → account_id.pyi} +2 -2
- snaptrade_client/model/account_ids.py +1 -1
- snaptrade_client/model/account_ids.pyi +1 -1
- snaptrade_client/model/account_meta.py +58 -0
- snaptrade_client/model/account_meta.pyi +58 -0
- snaptrade_client/model/account_order_record.py +455 -64
- snaptrade_client/model/account_order_record.pyi +455 -64
- snaptrade_client/model/account_order_record_leg.py +252 -0
- snaptrade_client/model/account_order_record_leg.pyi +252 -0
- snaptrade_client/model/{brokerage_symbol.py → account_order_record_leg_instrument.py} +34 -43
- snaptrade_client/model/{brokerage_symbol.pyi → account_order_record_leg_instrument.pyi} +34 -43
- snaptrade_client/model/account_order_record_status.py +21 -1
- snaptrade_client/model/account_order_record_status.pyi +21 -1
- snaptrade_client/model/account_order_record_status_v2.py +90 -0
- snaptrade_client/model/account_order_record_status_v2.pyi +75 -0
- snaptrade_client/model/account_order_record_status_v2_nullable.py +105 -0
- snaptrade_client/model/account_order_record_status_v2_nullable.pyi +105 -0
- snaptrade_client/model/account_order_record_v2.py +309 -0
- snaptrade_client/model/account_order_record_v2.pyi +309 -0
- snaptrade_client/model/account_orders_v2_response.py +110 -0
- snaptrade_client/model/account_orders_v2_response.pyi +110 -0
- snaptrade_client/model/account_simple.py +2 -2
- snaptrade_client/model/account_simple.pyi +2 -2
- snaptrade_client/model/account_sync_status.py +18 -4
- snaptrade_client/model/account_sync_status.pyi +18 -4
- snaptrade_client/model/account_universal_activity.py +354 -0
- snaptrade_client/model/account_universal_activity.pyi +354 -0
- snaptrade_client/model/action.py +2 -27
- snaptrade_client/model/action.pyi +2 -20
- snaptrade_client/model/action_strict.py +50 -0
- snaptrade_client/model/{percent.pyi → action_strict.pyi} +14 -4
- snaptrade_client/model/{consumer_key.py → action_strict_v2.py} +2 -2
- snaptrade_client/model/{consumer_key.pyi → action_strict_v2.pyi} +2 -2
- snaptrade_client/model/action_strict_with_options.py +70 -0
- snaptrade_client/model/action_strict_with_options.pyi +59 -0
- snaptrade_client/model/balance.py +72 -11
- snaptrade_client/model/balance.pyi +72 -11
- snaptrade_client/model/brokerage.py +69 -68
- snaptrade_client/model/brokerage.pyi +69 -68
- snaptrade_client/model/brokerage_auth_id.py +25 -0
- snaptrade_client/model/brokerage_auth_id.pyi +25 -0
- snaptrade_client/model/brokerage_auth_ids.py +1 -1
- snaptrade_client/model/brokerage_auth_ids.pyi +1 -1
- snaptrade_client/model/brokerage_authorization.py +46 -48
- snaptrade_client/model/brokerage_authorization.pyi +46 -48
- snaptrade_client/model/{model_asset_class_target.py → brokerage_authorization_disabled_confirmation.py} +13 -16
- snaptrade_client/model/{model_asset_class_target.pyi → brokerage_authorization_disabled_confirmation.pyi} +13 -16
- snaptrade_client/model/brokerage_authorization_meta.py +58 -0
- snaptrade_client/model/brokerage_authorization_meta.pyi +58 -0
- snaptrade_client/model/brokerage_authorization_refresh_confirmation.py +78 -0
- snaptrade_client/model/brokerage_authorization_refresh_confirmation.pyi +78 -0
- snaptrade_client/model/brokerage_authorization_type_read_only.py +10 -73
- snaptrade_client/model/brokerage_authorization_type_read_only.pyi +10 -73
- snaptrade_client/model/{portfolio_group.py → brokerage_authorization_type_read_only_brokerage.py} +15 -5
- snaptrade_client/model/{model_asset_class.py → brokerage_authorization_type_read_only_brokerage.pyi} +15 -5
- snaptrade_client/model/brokerage_exchanges.py +52 -0
- snaptrade_client/model/brokerage_exchanges.pyi +52 -0
- snaptrade_client/model/brokerage_id.py +25 -0
- snaptrade_client/model/brokerage_id.pyi +25 -0
- snaptrade_client/model/brokerage_instrument.py +202 -0
- snaptrade_client/model/brokerage_instrument.pyi +202 -0
- snaptrade_client/model/{model_portfolio_asset_class.py → brokerage_instruments_response.py} +31 -28
- snaptrade_client/model/brokerage_instruments_response.pyi +103 -0
- snaptrade_client/model/brokerage_order_id.py +25 -0
- snaptrade_client/model/brokerage_order_id.pyi +25 -0
- snaptrade_client/model/brokerage_symbol_id.py +25 -0
- snaptrade_client/model/brokerage_symbol_id.pyi +25 -0
- snaptrade_client/model/brokerage_type.py +2 -2
- snaptrade_client/model/brokerage_type.pyi +2 -2
- snaptrade_client/model/cancel_order_response.py +96 -0
- snaptrade_client/model/cancel_order_response.pyi +96 -0
- snaptrade_client/model/cancel_order_response_raw_response.py +62 -0
- snaptrade_client/model/cancel_order_response_raw_response.pyi +62 -0
- snaptrade_client/model/child_brokerage_order_ids.py +86 -0
- snaptrade_client/model/child_brokerage_order_ids.pyi +86 -0
- snaptrade_client/model/child_brokerage_order_ids_nullable.py +90 -0
- snaptrade_client/model/child_brokerage_order_ids_nullable.pyi +90 -0
- snaptrade_client/model/client_id.py +1 -1
- snaptrade_client/model/client_id.pyi +1 -1
- snaptrade_client/model/crypto_order_form.py +249 -0
- snaptrade_client/model/crypto_order_form.pyi +229 -0
- snaptrade_client/model/{excluded_asset.py → crypto_order_preview.py} +14 -14
- snaptrade_client/model/{excluded_asset.pyi → crypto_order_preview.pyi} +14 -14
- snaptrade_client/model/{redirect_tokenand_pin.py → crypto_order_preview_estimated_fee.py} +25 -18
- snaptrade_client/model/{redirect_tokenand_pin.pyi → crypto_order_preview_estimated_fee.pyi} +25 -18
- snaptrade_client/model/{model_portfolio_security.py → crypto_trading_instrument.py} +36 -23
- snaptrade_client/model/{brokerage_authorization_type.py → crypto_trading_instrument.pyi} +28 -18
- snaptrade_client/model/cryptocurrency_base_symbol.py +25 -0
- snaptrade_client/model/cryptocurrency_base_symbol.pyi +25 -0
- snaptrade_client/model/cryptocurrency_increment.py +25 -0
- snaptrade_client/model/cryptocurrency_increment.pyi +25 -0
- snaptrade_client/model/{stop_price.pyi → cryptocurrency_increment_nullable.py} +8 -7
- snaptrade_client/model/{stop_price.py → cryptocurrency_increment_nullable.pyi} +8 -7
- snaptrade_client/model/cryptocurrency_pair.py +120 -0
- snaptrade_client/model/cryptocurrency_pair.pyi +120 -0
- snaptrade_client/model/{snap_trade_api_disclaimer_accept_status.pyi → cryptocurrency_pair_quote.py} +40 -15
- snaptrade_client/model/{snap_trade_api_disclaimer_accept_status.py → cryptocurrency_pair_quote.pyi} +40 -15
- snaptrade_client/model/cryptocurrency_pair_symbol.py +25 -0
- snaptrade_client/model/cryptocurrency_pair_symbol.pyi +25 -0
- snaptrade_client/model/cryptocurrency_quote_symbol.py +25 -0
- snaptrade_client/model/cryptocurrency_quote_symbol.pyi +25 -0
- snaptrade_client/model/cryptocurrency_symbol.py +25 -0
- snaptrade_client/model/cryptocurrency_symbol.pyi +25 -0
- snaptrade_client/model/currency.py +2 -2
- snaptrade_client/model/currency.pyi +2 -2
- snaptrade_client/model/currency_id.py +25 -0
- snaptrade_client/model/currency_id.pyi +25 -0
- snaptrade_client/model/{model_asset_class.pyi → currency_nullable.py} +23 -7
- snaptrade_client/model/{portfolio_group.pyi → currency_nullable.pyi} +23 -7
- snaptrade_client/model/delete_user_response.py +13 -5
- snaptrade_client/model/delete_user_response.pyi +13 -5
- snaptrade_client/model/dividend_at_date.py +1 -1
- snaptrade_client/model/dividend_at_date.pyi +1 -1
- snaptrade_client/model/encrypted_response.py +11 -73
- snaptrade_client/model/encrypted_response.pyi +11 -73
- snaptrade_client/model/encrypted_response_encrypted_message_data.py +96 -0
- snaptrade_client/model/encrypted_response_encrypted_message_data.pyi +96 -0
- snaptrade_client/model/exchange.py +2 -2
- snaptrade_client/model/exchange.pyi +2 -2
- snaptrade_client/model/exchange_id.py +25 -0
- snaptrade_client/model/exchange_id.pyi +25 -0
- snaptrade_client/model/exchange_rate_pairs.py +1 -1
- snaptrade_client/model/exchange_rate_pairs.pyi +1 -1
- snaptrade_client/model/figi_instrument.py +126 -0
- snaptrade_client/model/figi_instrument.pyi +126 -0
- snaptrade_client/model/figi_instrument_nullable.py +130 -0
- snaptrade_client/model/figi_instrument_nullable.pyi +130 -0
- snaptrade_client/model/holdings_status.py +99 -0
- snaptrade_client/model/holdings_status.pyi +99 -0
- snaptrade_client/model/holdings_sync_status_date.py +54 -0
- snaptrade_client/model/holdings_sync_status_date.pyi +54 -0
- snaptrade_client/model/holdings_sync_status_date_nullable.py +54 -0
- snaptrade_client/model/holdings_sync_status_date_nullable.pyi +54 -0
- snaptrade_client/model/id.py +1 -1
- snaptrade_client/model/id.pyi +1 -1
- snaptrade_client/model/login_redirect_uri.py +3 -3
- snaptrade_client/model/login_redirect_uri.pyi +3 -3
- snaptrade_client/model/manual_trade.py +40 -36
- snaptrade_client/model/manual_trade.pyi +40 -36
- snaptrade_client/model/manual_trade_and_impact.py +6 -7
- snaptrade_client/model/manual_trade_and_impact.pyi +6 -7
- snaptrade_client/model/manual_trade_balance.py +31 -16
- snaptrade_client/model/manual_trade_balance.pyi +31 -16
- snaptrade_client/model/manual_trade_form.py +111 -46
- snaptrade_client/model/manual_trade_form.pyi +111 -46
- snaptrade_client/model/manual_trade_form_bracket.py +237 -0
- snaptrade_client/model/manual_trade_form_bracket.pyi +237 -0
- snaptrade_client/model/manual_trade_form_with_options.py +308 -0
- snaptrade_client/model/manual_trade_form_with_options.pyi +308 -0
- snaptrade_client/model/{trade_impact.py → manual_trade_impact.py} +80 -34
- snaptrade_client/model/{trade_impact.pyi → manual_trade_impact.pyi} +80 -34
- snaptrade_client/model/manual_trade_replace_form.py +215 -0
- snaptrade_client/model/manual_trade_replace_form.pyi +215 -0
- snaptrade_client/model/manual_trade_symbol.py +14 -14
- snaptrade_client/model/manual_trade_symbol.pyi +14 -14
- snaptrade_client/model/mleg_action_strict.py +70 -0
- snaptrade_client/model/mleg_action_strict.pyi +59 -0
- snaptrade_client/model/mleg_instrument_type.py +50 -0
- snaptrade_client/model/{percent.py → mleg_instrument_type.pyi} +14 -8
- snaptrade_client/model/mleg_leg.py +114 -0
- snaptrade_client/model/mleg_leg.pyi +114 -0
- snaptrade_client/model/mleg_order_response.py +120 -0
- snaptrade_client/model/mleg_order_response.pyi +120 -0
- snaptrade_client/model/mleg_order_type_strict.py +60 -0
- snaptrade_client/model/mleg_order_type_strict.pyi +51 -0
- snaptrade_client/model/mleg_price_effect_strict.py +55 -0
- snaptrade_client/model/mleg_price_effect_strict.pyi +47 -0
- snaptrade_client/model/mleg_price_effect_strict_nullable.py +70 -0
- snaptrade_client/model/mleg_price_effect_strict_nullable.pyi +70 -0
- snaptrade_client/model/mleg_trade_form.py +223 -0
- snaptrade_client/model/mleg_trade_form.pyi +223 -0
- snaptrade_client/model/{model_portfolio_security.pyi → mleg_trading_instrument.py} +24 -22
- snaptrade_client/model/mleg_trading_instrument.pyi +98 -0
- snaptrade_client/model/model400_failed_request_response.py +1 -1
- snaptrade_client/model/model400_failed_request_response.pyi +1 -1
- snaptrade_client/model/model401_failed_request_response.py +1 -1
- snaptrade_client/model/model401_failed_request_response.pyi +1 -1
- snaptrade_client/model/model402_brokerage_auth_already_disabled_exception.py +88 -0
- snaptrade_client/model/model402_brokerage_auth_already_disabled_exception.pyi +88 -0
- snaptrade_client/model/model402_brokerage_auth_disabled_response.py +88 -0
- snaptrade_client/model/model402_brokerage_auth_disabled_response.pyi +88 -0
- snaptrade_client/model/model403_failed_request_response.py +1 -1
- snaptrade_client/model/model403_failed_request_response.pyi +1 -1
- snaptrade_client/model/model403_feature_not_enabled_response.py +88 -0
- snaptrade_client/model/model403_feature_not_enabled_response.pyi +88 -0
- snaptrade_client/model/model404_failed_request_response.py +1 -1
- snaptrade_client/model/model404_failed_request_response.pyi +1 -1
- snaptrade_client/model/model425_failed_request_response.py +88 -0
- snaptrade_client/model/model425_failed_request_response.pyi +88 -0
- snaptrade_client/model/model500_unexpected_exception_response.py +98 -0
- snaptrade_client/model/model500_unexpected_exception_response.pyi +98 -0
- snaptrade_client/model/monthly_dividends.py +1 -1
- snaptrade_client/model/monthly_dividends.pyi +1 -1
- snaptrade_client/model/net_contributions.py +1 -1
- snaptrade_client/model/net_contributions.pyi +1 -1
- snaptrade_client/model/net_dividend.py +1 -1
- snaptrade_client/model/net_dividend.pyi +1 -1
- snaptrade_client/model/notional_value.py +68 -0
- snaptrade_client/model/notional_value.pyi +68 -0
- snaptrade_client/model/notional_value_nullable.py +68 -0
- snaptrade_client/model/notional_value_nullable.pyi +68 -0
- snaptrade_client/model/{model_portfolio.pyi → option_brokerage_symbol.py} +26 -36
- snaptrade_client/model/option_brokerage_symbol.pyi +103 -0
- snaptrade_client/model/option_chain.py +8 -343
- snaptrade_client/model/option_chain.pyi +8 -343
- snaptrade_client/model/option_chain_item.py +121 -0
- snaptrade_client/model/option_chain_item.pyi +121 -0
- snaptrade_client/model/option_chain_item_chain_per_root.py +55 -0
- snaptrade_client/model/option_chain_item_chain_per_root.pyi +55 -0
- snaptrade_client/model/option_chain_item_chain_per_root_item.py +101 -0
- snaptrade_client/model/option_chain_item_chain_per_root_item.pyi +101 -0
- snaptrade_client/model/option_chain_item_chain_per_root_item_chain_per_strike_price.py +55 -0
- snaptrade_client/model/option_chain_item_chain_per_root_item_chain_per_strike_price.pyi +55 -0
- snaptrade_client/model/option_chain_item_chain_per_root_item_chain_per_strike_price_item.py +168 -0
- snaptrade_client/model/option_chain_item_chain_per_root_item_chain_per_strike_price_item.pyi +168 -0
- snaptrade_client/model/option_leg.py +1 -1
- snaptrade_client/model/option_leg.pyi +1 -1
- snaptrade_client/model/option_strategy.py +9 -107
- snaptrade_client/model/option_strategy.pyi +9 -107
- snaptrade_client/model/option_strategy_legs.py +130 -0
- snaptrade_client/model/option_strategy_legs.pyi +130 -0
- snaptrade_client/model/option_symbol_id.py +25 -0
- snaptrade_client/model/option_symbol_id.pyi +25 -0
- snaptrade_client/model/options_position.py +43 -44
- snaptrade_client/model/options_position.pyi +43 -44
- snaptrade_client/model/options_symbol.py +66 -71
- snaptrade_client/model/options_symbol.pyi +59 -71
- snaptrade_client/model/options_symbol_nullable.py +170 -0
- snaptrade_client/model/options_symbol_nullable.pyi +163 -0
- snaptrade_client/model/order_type.py +16 -27
- snaptrade_client/model/order_type.pyi +18 -20
- snaptrade_client/model/order_type_strict.py +64 -0
- snaptrade_client/model/order_type_strict.pyi +55 -0
- snaptrade_client/model/{model_portfolio_asset_class.pyi → order_updated_response.py} +24 -24
- snaptrade_client/model/order_updated_response.pyi +96 -0
- snaptrade_client/model/paginated_universal_activity.py +119 -0
- snaptrade_client/model/paginated_universal_activity.pyi +119 -0
- snaptrade_client/model/pagination_details.py +98 -0
- snaptrade_client/model/pagination_details.pyi +98 -0
- snaptrade_client/model/partner_data.py +37 -37
- snaptrade_client/model/partner_data.pyi +37 -37
- snaptrade_client/model/past_value.py +1 -1
- snaptrade_client/model/past_value.pyi +1 -1
- snaptrade_client/model/performance_custom.py +9 -46
- snaptrade_client/model/performance_custom.pyi +9 -46
- snaptrade_client/model/performance_custom_bad_tickers.py +71 -0
- snaptrade_client/model/performance_custom_bad_tickers.pyi +71 -0
- snaptrade_client/model/portfolio_group_id.py +25 -0
- snaptrade_client/model/portfolio_group_id.pyi +25 -0
- snaptrade_client/model/position.py +88 -13
- snaptrade_client/model/position.pyi +88 -13
- snaptrade_client/model/position_symbol.py +15 -15
- snaptrade_client/model/position_symbol.pyi +15 -15
- snaptrade_client/model/price.py +26 -2
- snaptrade_client/model/price.pyi +26 -2
- snaptrade_client/model/rate_of_return_object.py +133 -0
- snaptrade_client/model/rate_of_return_object.pyi +123 -0
- snaptrade_client/model/rate_of_return_response.py +105 -0
- snaptrade_client/model/rate_of_return_response.pyi +105 -0
- snaptrade_client/model/{calculated_trade.py → recent_orders_response.py} +18 -28
- snaptrade_client/model/{calculated_trade.pyi → recent_orders_response.pyi} +18 -28
- snaptrade_client/model/reporting_date.py +1 -1
- snaptrade_client/model/reporting_date.pyi +1 -1
- snaptrade_client/model/reporting_frequency.py +1 -1
- snaptrade_client/model/reporting_frequency.pyi +1 -1
- snaptrade_client/model/security_type.py +2 -2
- snaptrade_client/model/security_type.pyi +2 -2
- snaptrade_client/model/security_type_id.py +25 -0
- snaptrade_client/model/security_type_id.pyi +25 -0
- snaptrade_client/model/session_event.py +47 -7
- snaptrade_client/model/session_event.pyi +37 -5
- snaptrade_client/model/simple_order_form.py +248 -0
- snaptrade_client/model/simple_order_form.pyi +228 -0
- snaptrade_client/model/snap_trade_holdings_account.py +9 -33
- snaptrade_client/model/snap_trade_holdings_account.pyi +9 -33
- snaptrade_client/model/snap_trade_holdings_account_meta.py +56 -0
- snaptrade_client/model/snap_trade_holdings_account_meta.pyi +56 -0
- snaptrade_client/model/snap_trade_holdings_total_value.py +47 -6
- snaptrade_client/model/snap_trade_holdings_total_value.pyi +47 -6
- snaptrade_client/model/snap_trade_login_user_request_body.py +63 -3
- snaptrade_client/model/snap_trade_login_user_request_body.pyi +54 -3
- snaptrade_client/model/snap_trade_register_user_request_body.py +10 -15
- snaptrade_client/model/snap_trade_register_user_request_body.pyi +10 -15
- snaptrade_client/model/status.py +1 -1
- snaptrade_client/model/status.pyi +1 -1
- snaptrade_client/model/{portfolio_group_position.py → stop_loss.py} +22 -37
- snaptrade_client/model/{portfolio_group_position.pyi → stop_loss.pyi} +22 -37
- snaptrade_client/model/strategy_order_record.py +25 -64
- snaptrade_client/model/strategy_order_record.pyi +25 -48
- snaptrade_client/model/strategy_quotes.py +31 -105
- snaptrade_client/model/strategy_quotes.pyi +31 -105
- snaptrade_client/model/strategy_quotes_greek.py +116 -0
- snaptrade_client/model/strategy_quotes_greek.pyi +116 -0
- snaptrade_client/model/sub_period_return_rate.py +1 -1
- snaptrade_client/model/sub_period_return_rate.pyi +1 -1
- snaptrade_client/model/symbol.py +150 -24
- snaptrade_client/model/symbol.pyi +150 -24
- snaptrade_client/model/symbol_nullable.py +281 -0
- snaptrade_client/model/symbol_nullable.pyi +281 -0
- snaptrade_client/model/symbol_query.py +1 -3
- snaptrade_client/model/symbol_query.pyi +1 -3
- snaptrade_client/model/symbols_quotes.py +111 -87
- snaptrade_client/model/symbols_quotes.pyi +111 -87
- snaptrade_client/model/sync_status_date.py +1 -1
- snaptrade_client/model/sync_status_date.pyi +1 -1
- snaptrade_client/model/sync_status_date_nullable.py +54 -0
- snaptrade_client/model/sync_status_date_nullable.pyi +54 -0
- snaptrade_client/model/{jwt.py → take_profit.py} +12 -12
- snaptrade_client/model/{jwt.pyi → take_profit.pyi} +12 -12
- snaptrade_client/model/time.py +1 -1
- snaptrade_client/model/time.pyi +1 -1
- snaptrade_client/model/time_in_force.py +2 -36
- snaptrade_client/model/time_in_force.pyi +2 -28
- snaptrade_client/model/time_in_force_strict.py +65 -0
- snaptrade_client/model/time_in_force_strict.pyi +56 -0
- snaptrade_client/model/{email.py → trade_id.py} +2 -2
- snaptrade_client/model/{email.pyi → trade_id.pyi} +2 -2
- snaptrade_client/model/trading_instrument.py +123 -0
- snaptrade_client/model/{brokerage_authorization_type.pyi → trading_instrument.pyi} +36 -11
- snaptrade_client/model/trading_session.py +53 -0
- snaptrade_client/model/trading_session.pyi +46 -0
- snaptrade_client/model/transactions_status.py +59 -9
- snaptrade_client/model/transactions_status.pyi +59 -9
- snaptrade_client/model/underlying_symbol.py +172 -23
- snaptrade_client/model/underlying_symbol.pyi +172 -23
- snaptrade_client/model/units.py +1 -1
- snaptrade_client/model/units.pyi +1 -1
- snaptrade_client/model/{cash.py → units_nullable.py} +4 -4
- snaptrade_client/model/{cash.pyi → units_nullable.pyi} +4 -4
- snaptrade_client/model/universal_activity.py +168 -73
- snaptrade_client/model/universal_activity.pyi +168 -73
- snaptrade_client/model/universal_symbol.py +171 -50
- snaptrade_client/model/universal_symbol.pyi +171 -50
- snaptrade_client/model/universal_symbol_id.py +25 -0
- snaptrade_client/model/universal_symbol_id.pyi +25 -0
- snaptrade_client/model/universal_symbol_id_nullable.py +54 -0
- snaptrade_client/model/universal_symbol_id_nullable.pyi +54 -0
- snaptrade_client/model/us_exchange.py +1 -1
- snaptrade_client/model/us_exchange.pyi +1 -1
- snaptrade_client/model/user_i_dand_secret.py +8 -9
- snaptrade_client/model/user_i_dand_secret.pyi +8 -9
- snaptrade_client/model/user_id.py +1 -1
- snaptrade_client/model/user_id.pyi +1 -1
- snaptrade_client/model/user_list.py +2 -2
- snaptrade_client/model/user_list.pyi +2 -2
- snaptrade_client/model/user_secret.py +1 -1
- snaptrade_client/model/user_secret.pyi +1 -1
- snaptrade_client/model/validated_trade_body.py +96 -0
- snaptrade_client/model/validated_trade_body.pyi +96 -0
- snaptrade_client/models/__init__.py +104 -43
- snaptrade_client/operation_parameter_map.py +895 -0
- snaptrade_client/paths/__init__.py +34 -44
- snaptrade_client/paths/accounts/get.py +244 -39
- snaptrade_client/paths/accounts/get.pyi +244 -39
- snaptrade_client/paths/accounts_account_id/get.py +284 -73
- snaptrade_client/paths/accounts_account_id/get.pyi +284 -73
- snaptrade_client/paths/accounts_account_id/put.py +285 -49
- snaptrade_client/paths/accounts_account_id/put.pyi +285 -49
- snaptrade_client/paths/{model_portfolio → accounts_account_id_activities}/__init__.py +2 -2
- snaptrade_client/paths/accounts_account_id_activities/get.py +647 -0
- snaptrade_client/paths/accounts_account_id_activities/get.pyi +628 -0
- snaptrade_client/paths/accounts_account_id_balances/get.py +291 -55
- snaptrade_client/paths/accounts_account_id_balances/get.pyi +291 -55
- snaptrade_client/paths/accounts_account_id_holdings/get.py +322 -59
- snaptrade_client/paths/accounts_account_id_holdings/get.pyi +321 -59
- snaptrade_client/paths/accounts_account_id_options/get.py +311 -50
- snaptrade_client/paths/accounts_account_id_options/get.pyi +311 -50
- snaptrade_client/paths/accounts_account_id_options_chain/get.py +298 -56
- snaptrade_client/paths/accounts_account_id_options_chain/get.pyi +298 -56
- snaptrade_client/paths/accounts_account_id_orders/get.py +329 -57
- snaptrade_client/paths/accounts_account_id_orders/get.pyi +325 -57
- snaptrade_client/paths/accounts_account_id_orders_cancel/post.py +356 -74
- snaptrade_client/paths/accounts_account_id_orders_cancel/post.pyi +356 -74
- snaptrade_client/paths/{model_portfolio_model_portfolio_id → accounts_account_id_orders_details}/__init__.py +2 -2
- snaptrade_client/paths/accounts_account_id_orders_details/post.py +691 -0
- snaptrade_client/paths/accounts_account_id_orders_details/post.pyi +678 -0
- snaptrade_client/paths/{portfolio_groups → accounts_account_id_orders_v2}/__init__.py +2 -2
- snaptrade_client/paths/accounts_account_id_orders_v2/get.py +592 -0
- snaptrade_client/paths/accounts_account_id_orders_v2/get.pyi +569 -0
- snaptrade_client/paths/accounts_account_id_positions/get.py +291 -55
- snaptrade_client/paths/accounts_account_id_positions/get.pyi +291 -55
- snaptrade_client/paths/accounts_account_id_quotes/get.py +310 -62
- snaptrade_client/paths/accounts_account_id_quotes/get.pyi +310 -62
- snaptrade_client/paths/accounts_account_id_recent_orders/__init__.py +7 -0
- snaptrade_client/paths/accounts_account_id_recent_orders/get.py +561 -0
- snaptrade_client/paths/accounts_account_id_recent_orders/get.pyi +549 -0
- snaptrade_client/paths/accounts_account_id_recent_orders_v2/__init__.py +7 -0
- snaptrade_client/paths/accounts_account_id_recent_orders_v2/get.py +561 -0
- snaptrade_client/paths/accounts_account_id_recent_orders_v2/get.pyi +549 -0
- snaptrade_client/paths/{model_asset_class → accounts_account_id_return_rates}/__init__.py +2 -2
- snaptrade_client/paths/accounts_account_id_return_rates/get.py +540 -0
- snaptrade_client/paths/accounts_account_id_return_rates/get.pyi +528 -0
- snaptrade_client/paths/accounts_account_id_symbols/post.py +338 -71
- snaptrade_client/paths/accounts_account_id_symbols/post.pyi +338 -71
- snaptrade_client/paths/{accounts_account_id_option_strategy → accounts_account_id_trading_bracket}/__init__.py +2 -2
- snaptrade_client/paths/accounts_account_id_trading_bracket/post.py +732 -0
- snaptrade_client/paths/accounts_account_id_trading_bracket/post.pyi +719 -0
- snaptrade_client/paths/accounts_account_id_trading_cancel/__init__.py +7 -0
- snaptrade_client/paths/accounts_account_id_trading_cancel/post.py +660 -0
- snaptrade_client/paths/accounts_account_id_trading_cancel/post.pyi +648 -0
- snaptrade_client/paths/accounts_account_id_trading_crypto/__init__.py +7 -0
- snaptrade_client/paths/accounts_account_id_trading_crypto/post.py +700 -0
- snaptrade_client/paths/accounts_account_id_trading_crypto/post.pyi +688 -0
- snaptrade_client/paths/accounts_account_id_trading_crypto_preview/__init__.py +7 -0
- snaptrade_client/paths/accounts_account_id_trading_crypto_preview/post.py +700 -0
- snaptrade_client/paths/accounts_account_id_trading_crypto_preview/post.pyi +688 -0
- snaptrade_client/paths/{accounts_account_id_option_strategy_option_strategy_id → accounts_account_id_trading_instruments_cryptocurrency_pairs}/__init__.py +2 -2
- snaptrade_client/paths/accounts_account_id_trading_instruments_cryptocurrency_pairs/get.py +653 -0
- snaptrade_client/paths/accounts_account_id_trading_instruments_cryptocurrency_pairs/get.pyi +641 -0
- snaptrade_client/paths/{accounts_account_id_option_strategy_option_strategy_id_execute → accounts_account_id_trading_instruments_cryptocurrency_pairs_instrument_symbol_quote}/__init__.py +2 -2
- snaptrade_client/paths/accounts_account_id_trading_instruments_cryptocurrency_pairs_instrument_symbol_quote/get.py +554 -0
- snaptrade_client/paths/accounts_account_id_trading_instruments_cryptocurrency_pairs_instrument_symbol_quote/get.pyi +542 -0
- snaptrade_client/paths/accounts_account_id_trading_options/__init__.py +7 -0
- snaptrade_client/paths/accounts_account_id_trading_options/post.py +671 -0
- snaptrade_client/paths/accounts_account_id_trading_options/post.pyi +659 -0
- snaptrade_client/paths/accounts_account_id_trading_replace/__init__.py +7 -0
- snaptrade_client/paths/accounts_account_id_trading_replace/post.py +717 -0
- snaptrade_client/paths/accounts_account_id_trading_replace/post.pyi +704 -0
- snaptrade_client/paths/activities/get.py +316 -62
- snaptrade_client/paths/activities/get.pyi +316 -62
- snaptrade_client/paths/authorizations/get.py +244 -39
- snaptrade_client/paths/authorizations/get.pyi +244 -39
- snaptrade_client/paths/authorizations_authorization_id/delete.py +291 -43
- snaptrade_client/paths/authorizations_authorization_id/delete.pyi +291 -43
- snaptrade_client/paths/authorizations_authorization_id/get.py +285 -49
- snaptrade_client/paths/authorizations_authorization_id/get.pyi +285 -49
- snaptrade_client/paths/{model_asset_class_model_asset_class_id → authorizations_authorization_id_disable}/__init__.py +2 -2
- snaptrade_client/paths/authorizations_authorization_id_disable/post.py +588 -0
- snaptrade_client/paths/authorizations_authorization_id_disable/post.pyi +574 -0
- snaptrade_client/paths/authorizations_authorization_id_refresh/__init__.py +7 -0
- snaptrade_client/paths/authorizations_authorization_id_refresh/post.py +588 -0
- snaptrade_client/paths/authorizations_authorization_id_refresh/post.pyi +574 -0
- snaptrade_client/paths/authorizations_authorization_id_return_rates/__init__.py +7 -0
- snaptrade_client/paths/authorizations_authorization_id_return_rates/get.py +540 -0
- snaptrade_client/paths/authorizations_authorization_id_return_rates/get.pyi +528 -0
- snaptrade_client/paths/brokerage_authorization_types/get.py +232 -33
- snaptrade_client/paths/brokerage_authorization_types/get.pyi +232 -33
- snaptrade_client/paths/brokerages/get.py +188 -21
- snaptrade_client/paths/brokerages/get.pyi +188 -21
- snaptrade_client/paths/{snap_trade_list_user_errors → brokerages_slug_instruments}/__init__.py +2 -2
- snaptrade_client/paths/brokerages_slug_instruments/get.py +417 -0
- snaptrade_client/paths/brokerages_slug_instruments/get.pyi +406 -0
- snaptrade_client/paths/currencies/get.py +188 -21
- snaptrade_client/paths/currencies/get.pyi +188 -21
- snaptrade_client/paths/currencies_rates/get.py +175 -21
- snaptrade_client/paths/currencies_rates/get.pyi +175 -21
- snaptrade_client/paths/currencies_rates_currency_pair/get.py +218 -33
- snaptrade_client/paths/currencies_rates_currency_pair/get.pyi +218 -33
- snaptrade_client/paths/exchanges/get.py +175 -21
- snaptrade_client/paths/exchanges/get.pyi +175 -21
- snaptrade_client/paths/holdings/get.py +297 -55
- snaptrade_client/paths/holdings/get.pyi +296 -55
- snaptrade_client/paths/performance_custom/get.py +306 -67
- snaptrade_client/paths/performance_custom/get.pyi +306 -67
- snaptrade_client/paths/root/get.py +183 -19
- snaptrade_client/paths/root/get.pyi +183 -19
- snaptrade_client/paths/security_types/get.py +188 -21
- snaptrade_client/paths/security_types/get.pyi +188 -21
- snaptrade_client/paths/session_events/get.py +254 -43
- snaptrade_client/paths/session_events/get.pyi +254 -43
- snaptrade_client/paths/snap_trade_delete_user/delete.py +254 -47
- snaptrade_client/paths/snap_trade_delete_user/delete.pyi +254 -47
- snaptrade_client/paths/snap_trade_list_users/get.py +208 -31
- snaptrade_client/paths/snap_trade_list_users/get.pyi +208 -31
- snaptrade_client/paths/snap_trade_login/post.py +391 -93
- snaptrade_client/paths/snap_trade_login/post.pyi +391 -93
- snaptrade_client/paths/snap_trade_partners/get.py +210 -35
- snaptrade_client/paths/snap_trade_partners/get.pyi +210 -35
- snaptrade_client/paths/snap_trade_register_user/post.py +259 -55
- snaptrade_client/paths/snap_trade_register_user/post.pyi +259 -55
- snaptrade_client/paths/{snap_trade_accept_disclaimer → snap_trade_reset_user_secret}/__init__.py +2 -2
- snaptrade_client/paths/snap_trade_reset_user_secret/post.py +459 -0
- snaptrade_client/paths/snap_trade_reset_user_secret/post.pyi +446 -0
- snaptrade_client/paths/symbols/post.py +237 -39
- snaptrade_client/paths/symbols/post.pyi +237 -39
- snaptrade_client/paths/{trade_oco → symbols_query}/__init__.py +2 -2
- snaptrade_client/paths/symbols_query/get.py +441 -0
- snaptrade_client/paths/symbols_query/get.pyi +429 -0
- snaptrade_client/paths/trade_impact/post.py +403 -106
- snaptrade_client/paths/trade_impact/post.pyi +403 -106
- snaptrade_client/paths/trade_place/post.py +429 -108
- snaptrade_client/paths/trade_place/post.pyi +429 -108
- snaptrade_client/paths/trade_trade_id/post.py +358 -54
- snaptrade_client/paths/trade_trade_id/post.pyi +358 -54
- snaptrade_client/pydantic/__init__.py +0 -0
- snaptrade_client/request_before_hook.py +1 -0
- snaptrade_client/request_before_url_hook.py +26 -0
- snaptrade_client/rest.py +10 -3
- snaptrade_client/schemas.py +45 -37
- snaptrade_client/type/__init__.py +0 -0
- snaptrade_client/type/account.py +68 -0
- snaptrade_client/type/account_balance.py +27 -0
- snaptrade_client/type/account_cash_restrictions.py +19 -0
- snaptrade_client/type/account_holdings.py +37 -0
- snaptrade_client/type/account_holdings_account.py +47 -0
- snaptrade_client/type/account_id.py +19 -0
- snaptrade_client/type/account_ids.py +19 -0
- snaptrade_client/type/account_meta.py +19 -0
- snaptrade_client/type/account_order_record.py +94 -0
- snaptrade_client/type/account_order_record_leg.py +48 -0
- snaptrade_client/type/account_order_record_leg_instrument.py +39 -0
- snaptrade_client/type/account_order_record_status.py +19 -0
- snaptrade_client/type/account_order_record_status_v2.py +19 -0
- snaptrade_client/type/account_order_record_status_v2_nullable.py +19 -0
- snaptrade_client/type/account_order_record_v2.py +58 -0
- snaptrade_client/type/account_orders_v2_response.py +28 -0
- snaptrade_client/type/account_simple.py +36 -0
- snaptrade_client/type/account_sync_status.py +30 -0
- snaptrade_client/type/account_universal_activity.py +73 -0
- snaptrade_client/type/action.py +19 -0
- snaptrade_client/type/action_strict.py +19 -0
- snaptrade_client/type/action_strict_v2.py +19 -0
- snaptrade_client/type/action_strict_with_options.py +19 -0
- snaptrade_client/type/balance.py +34 -0
- snaptrade_client/type/brokerage.py +80 -0
- snaptrade_client/type/brokerage_auth_id.py +19 -0
- snaptrade_client/type/brokerage_auth_ids.py +19 -0
- snaptrade_client/type/brokerage_authorization.py +56 -0
- snaptrade_client/type/brokerage_authorization_disabled_confirmation.py +27 -0
- snaptrade_client/type/brokerage_authorization_meta.py +19 -0
- snaptrade_client/type/brokerage_authorization_refresh_confirmation.py +27 -0
- snaptrade_client/type/brokerage_authorization_type_read_only.py +33 -0
- snaptrade_client/type/brokerage_authorization_type_read_only_brokerage.py +32 -0
- snaptrade_client/type/brokerage_exchanges.py +19 -0
- snaptrade_client/type/brokerage_id.py +19 -0
- snaptrade_client/type/brokerage_instrument.py +38 -0
- snaptrade_client/type/brokerage_instruments_response.py +27 -0
- snaptrade_client/type/brokerage_order_id.py +19 -0
- snaptrade_client/type/brokerage_symbol_id.py +19 -0
- snaptrade_client/type/brokerage_type.py +28 -0
- snaptrade_client/type/cancel_order_response.py +29 -0
- snaptrade_client/type/cancel_order_response_raw_response.py +19 -0
- snaptrade_client/type/child_brokerage_order_ids.py +30 -0
- snaptrade_client/type/child_brokerage_order_ids_nullable.py +30 -0
- snaptrade_client/type/client_id.py +19 -0
- snaptrade_client/type/crypto_order_form.py +50 -0
- snaptrade_client/type/crypto_order_preview.py +27 -0
- snaptrade_client/type/crypto_order_preview_estimated_fee.py +29 -0
- snaptrade_client/type/crypto_trading_instrument.py +30 -0
- snaptrade_client/type/cryptocurrency_base_symbol.py +19 -0
- snaptrade_client/type/cryptocurrency_increment.py +19 -0
- snaptrade_client/type/cryptocurrency_increment_nullable.py +19 -0
- snaptrade_client/type/cryptocurrency_pair.py +35 -0
- snaptrade_client/type/cryptocurrency_pair_quote.py +35 -0
- snaptrade_client/type/cryptocurrency_pair_symbol.py +19 -0
- snaptrade_client/type/cryptocurrency_quote_symbol.py +19 -0
- snaptrade_client/type/cryptocurrency_symbol.py +19 -0
- snaptrade_client/type/currency.py +33 -0
- snaptrade_client/type/currency_id.py +19 -0
- snaptrade_client/type/currency_nullable.py +33 -0
- snaptrade_client/type/delete_user_response.py +33 -0
- snaptrade_client/type/dividend_at_date.py +33 -0
- snaptrade_client/type/encrypted_response.py +29 -0
- snaptrade_client/type/encrypted_response_encrypted_message_data.py +30 -0
- snaptrade_client/type/exchange.py +48 -0
- snaptrade_client/type/exchange_id.py +19 -0
- snaptrade_client/type/exchange_rate_pairs.py +31 -0
- snaptrade_client/type/figi_instrument.py +30 -0
- snaptrade_client/type/figi_instrument_nullable.py +30 -0
- snaptrade_client/type/holdings_status.py +30 -0
- snaptrade_client/type/holdings_sync_status_date.py +19 -0
- snaptrade_client/type/holdings_sync_status_date_nullable.py +19 -0
- snaptrade_client/type/id.py +19 -0
- snaptrade_client/type/login_redirect_uri.py +30 -0
- snaptrade_client/type/manual_trade.py +48 -0
- snaptrade_client/type/manual_trade_and_impact.py +34 -0
- snaptrade_client/type/manual_trade_balance.py +33 -0
- snaptrade_client/type/manual_trade_form.py +50 -0
- snaptrade_client/type/manual_trade_form_bracket.py +50 -0
- snaptrade_client/type/manual_trade_form_with_options.py +57 -0
- snaptrade_client/type/manual_trade_impact.py +39 -0
- snaptrade_client/type/manual_trade_replace_form.py +47 -0
- snaptrade_client/type/manual_trade_symbol.py +46 -0
- snaptrade_client/type/mleg_action_strict.py +19 -0
- snaptrade_client/type/mleg_instrument_type.py +19 -0
- snaptrade_client/type/mleg_leg.py +33 -0
- snaptrade_client/type/mleg_order_response.py +30 -0
- snaptrade_client/type/mleg_order_type_strict.py +19 -0
- snaptrade_client/type/mleg_price_effect_strict.py +19 -0
- snaptrade_client/type/mleg_price_effect_strict_nullable.py +19 -0
- snaptrade_client/type/mleg_trade_form.py +41 -0
- snaptrade_client/type/mleg_trading_instrument.py +30 -0
- snaptrade_client/type/model400_failed_request_response.py +28 -0
- snaptrade_client/type/model401_failed_request_response.py +28 -0
- snaptrade_client/type/model402_brokerage_auth_already_disabled_exception.py +28 -0
- snaptrade_client/type/model402_brokerage_auth_disabled_response.py +28 -0
- snaptrade_client/type/model403_failed_request_response.py +28 -0
- snaptrade_client/type/model403_feature_not_enabled_response.py +28 -0
- snaptrade_client/type/model404_failed_request_response.py +28 -0
- snaptrade_client/type/model425_failed_request_response.py +28 -0
- snaptrade_client/type/model500_unexpected_exception_response.py +30 -0
- snaptrade_client/type/monthly_dividends.py +30 -0
- snaptrade_client/type/net_contributions.py +31 -0
- snaptrade_client/type/net_dividend.py +31 -0
- snaptrade_client/type/notional_value.py +19 -0
- snaptrade_client/type/notional_value_nullable.py +19 -0
- snaptrade_client/type/option_brokerage_symbol.py +35 -0
- snaptrade_client/type/option_chain.py +20 -0
- snaptrade_client/type/option_chain_item.py +35 -0
- snaptrade_client/type/option_chain_item_chain_per_root.py +20 -0
- snaptrade_client/type/option_chain_item_chain_per_root_item.py +31 -0
- snaptrade_client/type/option_chain_item_chain_per_root_item_chain_per_strike_price.py +20 -0
- snaptrade_client/type/option_chain_item_chain_per_root_item_chain_per_strike_price_item.py +30 -0
- snaptrade_client/type/option_leg.py +31 -0
- snaptrade_client/type/option_strategy.py +36 -0
- snaptrade_client/type/option_strategy_legs.py +19 -0
- snaptrade_client/type/option_symbol_id.py +19 -0
- snaptrade_client/type/options_position.py +39 -0
- snaptrade_client/type/options_symbol.py +44 -0
- snaptrade_client/type/options_symbol_nullable.py +44 -0
- snaptrade_client/type/order_type.py +19 -0
- snaptrade_client/type/order_type_strict.py +19 -0
- snaptrade_client/type/order_updated_response.py +29 -0
- snaptrade_client/type/paginated_universal_activity.py +30 -0
- snaptrade_client/type/pagination_details.py +33 -0
- snaptrade_client/type/partner_data.py +62 -0
- snaptrade_client/type/past_value.py +31 -0
- snaptrade_client/type/performance_custom.py +78 -0
- snaptrade_client/type/performance_custom_bad_tickers.py +19 -0
- snaptrade_client/type/portfolio_group_id.py +19 -0
- snaptrade_client/type/position.py +50 -0
- snaptrade_client/type/position_symbol.py +47 -0
- snaptrade_client/type/price.py +19 -0
- snaptrade_client/type/rate_of_return_object.py +33 -0
- snaptrade_client/type/rate_of_return_response.py +28 -0
- snaptrade_client/type/recent_orders_response.py +28 -0
- snaptrade_client/type/reporting_date.py +19 -0
- snaptrade_client/type/reporting_frequency.py +19 -0
- snaptrade_client/type/security_type.py +37 -0
- snaptrade_client/type/security_type_id.py +19 -0
- snaptrade_client/type/session_event.py +40 -0
- snaptrade_client/type/simple_order_form.py +50 -0
- snaptrade_client/type/snap_trade_holdings_account.py +43 -0
- snaptrade_client/type/snap_trade_holdings_account_meta.py +19 -0
- snaptrade_client/type/snap_trade_holdings_total_value.py +30 -0
- snaptrade_client/type/snap_trade_login_user_request_body.py +48 -0
- snaptrade_client/type/snap_trade_register_user_request_body.py +27 -0
- snaptrade_client/type/status.py +30 -0
- snaptrade_client/type/stop_loss.py +28 -0
- snaptrade_client/type/strategy_order_record.py +52 -0
- snaptrade_client/type/strategy_quotes.py +39 -0
- snaptrade_client/type/strategy_quotes_greek.py +34 -0
- snaptrade_client/type/sub_period_return_rate.py +33 -0
- snaptrade_client/type/symbol.py +53 -0
- snaptrade_client/type/symbol_nullable.py +53 -0
- snaptrade_client/type/symbol_query.py +27 -0
- snaptrade_client/type/symbols_quotes.py +20 -0
- snaptrade_client/type/sync_status_date.py +19 -0
- snaptrade_client/type/sync_status_date_nullable.py +19 -0
- snaptrade_client/type/take_profit.py +26 -0
- snaptrade_client/type/time.py +19 -0
- snaptrade_client/type/time_in_force.py +19 -0
- snaptrade_client/type/time_in_force_strict.py +19 -0
- snaptrade_client/type/trade_id.py +19 -0
- snaptrade_client/type/trading_instrument.py +30 -0
- snaptrade_client/type/trading_session.py +19 -0
- snaptrade_client/type/transactions_status.py +34 -0
- snaptrade_client/type/underlying_symbol.py +58 -0
- snaptrade_client/type/units.py +19 -0
- snaptrade_client/type/units_nullable.py +19 -0
- snaptrade_client/type/universal_activity.py +76 -0
- snaptrade_client/type/universal_symbol.py +56 -0
- snaptrade_client/type/universal_symbol_id.py +19 -0
- snaptrade_client/type/universal_symbol_id_nullable.py +19 -0
- snaptrade_client/type/us_exchange.py +42 -0
- snaptrade_client/type/user_i_dand_secret.py +30 -0
- snaptrade_client/type/user_id.py +19 -0
- snaptrade_client/type/user_list.py +19 -0
- snaptrade_client/type/user_secret.py +19 -0
- snaptrade_client/type/validated_trade_body.py +27 -0
- snaptrade_client/type_util.py +23 -0
- {snaptrade_python_sdk-10.9.0.dist-info → snaptrade_python_sdk-11.0.152.dist-info}/LICENSE +1 -1
- snaptrade_python_sdk-11.0.152.dist-info/METADATA +2683 -0
- snaptrade_python_sdk-11.0.152.dist-info/RECORD +809 -0
- {snaptrade_python_sdk-10.9.0.dist-info → snaptrade_python_sdk-11.0.152.dist-info}/WHEEL +1 -1
- snaptrade_client/apis/paths/accounts_account_id_option_strategy.py +0 -7
- snaptrade_client/apis/paths/accounts_account_id_option_strategy_option_strategy_id.py +0 -7
- snaptrade_client/apis/paths/accounts_account_id_option_strategy_option_strategy_id_execute.py +0 -7
- snaptrade_client/apis/paths/model_asset_class.py +0 -9
- snaptrade_client/apis/paths/model_asset_class_model_asset_class_id.py +0 -11
- snaptrade_client/apis/paths/model_portfolio.py +0 -9
- snaptrade_client/apis/paths/model_portfolio_model_portfolio_id.py +0 -11
- snaptrade_client/apis/paths/portfolio_groups.py +0 -9
- snaptrade_client/apis/paths/portfolio_groups_portfolio_group_id.py +0 -11
- snaptrade_client/apis/paths/portfolio_groups_portfolio_group_id_accounts.py +0 -7
- snaptrade_client/apis/paths/portfolio_groups_portfolio_group_id_balances.py +0 -7
- snaptrade_client/apis/paths/portfolio_groups_portfolio_group_id_calculatedtrades.py +0 -7
- snaptrade_client/apis/paths/portfolio_groups_portfolio_group_id_calculatedtrades_calculated_trade_id_impact.py +0 -7
- snaptrade_client/apis/paths/portfolio_groups_portfolio_group_id_calculatedtrades_calculated_trade_id_modify_trade_id.py +0 -9
- snaptrade_client/apis/paths/portfolio_groups_portfolio_group_id_calculatedtrades_calculated_trade_id_place_orders.py +0 -7
- snaptrade_client/apis/paths/portfolio_groups_portfolio_group_id_calculatedtrades_calculated_trade_id_trade_id.py +0 -7
- snaptrade_client/apis/paths/portfolio_groups_portfolio_group_id_excludedassets.py +0 -9
- snaptrade_client/apis/paths/portfolio_groups_portfolio_group_id_excludedassets_symbol_id.py +0 -7
- snaptrade_client/apis/paths/portfolio_groups_portfolio_group_id_import.py +0 -7
- snaptrade_client/apis/paths/portfolio_groups_portfolio_group_id_info.py +0 -7
- snaptrade_client/apis/paths/portfolio_groups_portfolio_group_id_positions.py +0 -7
- snaptrade_client/apis/paths/portfolio_groups_portfolio_group_id_settings.py +0 -9
- snaptrade_client/apis/paths/portfolio_groups_portfolio_group_id_symbols.py +0 -7
- snaptrade_client/apis/paths/portfolio_groups_portfolio_group_id_targets.py +0 -9
- snaptrade_client/apis/paths/portfolio_groups_portfolio_group_id_targets_target_asset_id.py +0 -11
- snaptrade_client/apis/paths/snap_trade_accept_disclaimer.py +0 -7
- snaptrade_client/apis/paths/snap_trade_encrypted_jwt.py +0 -7
- snaptrade_client/apis/paths/snap_trade_list_user_errors.py +0 -7
- snaptrade_client/apis/paths/symbols_ticker.py +0 -7
- snaptrade_client/apis/paths/trade_oco.py +0 -7
- snaptrade_client/apis/tags/portfolio_management_api.py +0 -86
- snaptrade_client/model/cash_restriction.py +0 -138
- snaptrade_client/model/cash_restriction.pyi +0 -131
- snaptrade_client/model/model_asset_class_details.py +0 -118
- snaptrade_client/model/model_asset_class_details.pyi +0 -118
- snaptrade_client/model/model_portfolio.py +0 -121
- snaptrade_client/model/model_portfolio_details.py +0 -154
- snaptrade_client/model/model_portfolio_details.pyi +0 -154
- snaptrade_client/model/options_holdings.py +0 -156
- snaptrade_client/model/options_holdings.pyi +0 -156
- snaptrade_client/model/portfolio_group_info.py +0 -415
- snaptrade_client/model/portfolio_group_info.pyi +0 -415
- snaptrade_client/model/portfolio_group_settings.py +0 -125
- snaptrade_client/model/portfolio_group_settings.pyi +0 -125
- snaptrade_client/model/rsa_public_key.py +0 -25
- snaptrade_client/model/rsa_public_key.pyi +0 -25
- snaptrade_client/model/signed_content.py +0 -25
- snaptrade_client/model/signed_content.pyi +0 -25
- snaptrade_client/model/snap_trade_holdings_account_account_id.py +0 -232
- snaptrade_client/model/snap_trade_holdings_account_account_id.pyi +0 -232
- snaptrade_client/model/snap_trade_user_id.py +0 -25
- snaptrade_client/model/snap_trade_user_id.pyi +0 -25
- snaptrade_client/model/snap_trade_user_secret.py +0 -25
- snaptrade_client/model/snap_trade_user_secret.pyi +0 -25
- snaptrade_client/model/strategy_impact.py +0 -308
- snaptrade_client/model/strategy_impact.pyi +0 -308
- snaptrade_client/model/strategy_order_place.py +0 -708
- snaptrade_client/model/strategy_order_place.pyi +0 -708
- snaptrade_client/model/strategy_order_quotes.py +0 -25
- snaptrade_client/model/strategy_order_quotes.pyi +0 -25
- snaptrade_client/model/target_asset.py +0 -170
- snaptrade_client/model/target_asset.pyi +0 -170
- snaptrade_client/model/timestamp.py +0 -25
- snaptrade_client/model/timestamp.pyi +0 -25
- snaptrade_client/model/trade.py +0 -182
- snaptrade_client/model/trade.pyi +0 -175
- snaptrade_client/model/trade_execution_status.py +0 -254
- snaptrade_client/model/trade_execution_status.pyi +0 -237
- snaptrade_client/model/universal_symbol_ticker.py +0 -186
- snaptrade_client/model/universal_symbol_ticker.pyi +0 -186
- snaptrade_client/model/user_error_log.py +0 -128
- snaptrade_client/model/user_error_log.pyi +0 -128
- snaptrade_client/model/user_settings.py +0 -173
- snaptrade_client/model/user_settings.pyi +0 -173
- snaptrade_client/paths/accounts_account_id_option_strategy/post.py +0 -452
- snaptrade_client/paths/accounts_account_id_option_strategy/post.pyi +0 -435
- snaptrade_client/paths/accounts_account_id_option_strategy_option_strategy_id/get.py +0 -295
- snaptrade_client/paths/accounts_account_id_option_strategy_option_strategy_id/get.pyi +0 -284
- snaptrade_client/paths/accounts_account_id_option_strategy_option_strategy_id_execute/post.py +0 -476
- snaptrade_client/paths/accounts_account_id_option_strategy_option_strategy_id_execute/post.pyi +0 -449
- snaptrade_client/paths/model_asset_class/get.py +0 -174
- snaptrade_client/paths/model_asset_class/get.pyi +0 -164
- snaptrade_client/paths/model_asset_class/post.py +0 -149
- snaptrade_client/paths/model_asset_class/post.pyi +0 -139
- snaptrade_client/paths/model_asset_class_model_asset_class_id/delete.py +0 -180
- snaptrade_client/paths/model_asset_class_model_asset_class_id/delete.pyi +0 -170
- snaptrade_client/paths/model_asset_class_model_asset_class_id/get.py +0 -200
- snaptrade_client/paths/model_asset_class_model_asset_class_id/get.pyi +0 -190
- snaptrade_client/paths/model_asset_class_model_asset_class_id/post.py +0 -233
- snaptrade_client/paths/model_asset_class_model_asset_class_id/post.pyi +0 -223
- snaptrade_client/paths/model_portfolio/get.py +0 -174
- snaptrade_client/paths/model_portfolio/get.pyi +0 -164
- snaptrade_client/paths/model_portfolio/post.py +0 -149
- snaptrade_client/paths/model_portfolio/post.pyi +0 -139
- snaptrade_client/paths/model_portfolio_model_portfolio_id/delete.py +0 -180
- snaptrade_client/paths/model_portfolio_model_portfolio_id/delete.pyi +0 -170
- snaptrade_client/paths/model_portfolio_model_portfolio_id/get.py +0 -200
- snaptrade_client/paths/model_portfolio_model_portfolio_id/get.pyi +0 -190
- snaptrade_client/paths/model_portfolio_model_portfolio_id/post.py +0 -239
- snaptrade_client/paths/model_portfolio_model_portfolio_id/post.pyi +0 -229
- snaptrade_client/paths/portfolio_groups/get.py +0 -262
- snaptrade_client/paths/portfolio_groups/get.pyi +0 -251
- snaptrade_client/paths/portfolio_groups/post.py +0 -320
- snaptrade_client/paths/portfolio_groups/post.pyi +0 -308
- snaptrade_client/paths/portfolio_groups_portfolio_group_id/__init__.py +0 -7
- snaptrade_client/paths/portfolio_groups_portfolio_group_id/delete.py +0 -241
- snaptrade_client/paths/portfolio_groups_portfolio_group_id/delete.pyi +0 -228
- snaptrade_client/paths/portfolio_groups_portfolio_group_id/get.py +0 -219
- snaptrade_client/paths/portfolio_groups_portfolio_group_id/get.pyi +0 -208
- snaptrade_client/paths/portfolio_groups_portfolio_group_id/patch.py +0 -288
- snaptrade_client/paths/portfolio_groups_portfolio_group_id/patch.pyi +0 -275
- snaptrade_client/paths/portfolio_groups_portfolio_group_id_accounts/__init__.py +0 -7
- snaptrade_client/paths/portfolio_groups_portfolio_group_id_accounts/get.py +0 -244
- snaptrade_client/paths/portfolio_groups_portfolio_group_id_accounts/get.pyi +0 -233
- snaptrade_client/paths/portfolio_groups_portfolio_group_id_balances/__init__.py +0 -7
- snaptrade_client/paths/portfolio_groups_portfolio_group_id_balances/get.py +0 -266
- snaptrade_client/paths/portfolio_groups_portfolio_group_id_balances/get.pyi +0 -253
- snaptrade_client/paths/portfolio_groups_portfolio_group_id_calculatedtrades/__init__.py +0 -7
- snaptrade_client/paths/portfolio_groups_portfolio_group_id_calculatedtrades/get.py +0 -200
- snaptrade_client/paths/portfolio_groups_portfolio_group_id_calculatedtrades/get.pyi +0 -190
- snaptrade_client/paths/portfolio_groups_portfolio_group_id_calculatedtrades_calculated_trade_id_impact/__init__.py +0 -7
- snaptrade_client/paths/portfolio_groups_portfolio_group_id_calculatedtrades_calculated_trade_id_impact/get.py +0 -240
- snaptrade_client/paths/portfolio_groups_portfolio_group_id_calculatedtrades_calculated_trade_id_impact/get.pyi +0 -230
- snaptrade_client/paths/portfolio_groups_portfolio_group_id_calculatedtrades_calculated_trade_id_modify_trade_id/__init__.py +0 -7
- snaptrade_client/paths/portfolio_groups_portfolio_group_id_calculatedtrades_calculated_trade_id_modify_trade_id/get.py +0 -230
- snaptrade_client/paths/portfolio_groups_portfolio_group_id_calculatedtrades_calculated_trade_id_modify_trade_id/get.pyi +0 -220
- snaptrade_client/paths/portfolio_groups_portfolio_group_id_calculatedtrades_calculated_trade_id_modify_trade_id/patch.py +0 -310
- snaptrade_client/paths/portfolio_groups_portfolio_group_id_calculatedtrades_calculated_trade_id_modify_trade_id/patch.pyi +0 -300
- snaptrade_client/paths/portfolio_groups_portfolio_group_id_calculatedtrades_calculated_trade_id_place_orders/__init__.py +0 -7
- snaptrade_client/paths/portfolio_groups_portfolio_group_id_calculatedtrades_calculated_trade_id_place_orders/post.py +0 -240
- snaptrade_client/paths/portfolio_groups_portfolio_group_id_calculatedtrades_calculated_trade_id_place_orders/post.pyi +0 -230
- snaptrade_client/paths/portfolio_groups_portfolio_group_id_calculatedtrades_calculated_trade_id_trade_id/__init__.py +0 -7
- snaptrade_client/paths/portfolio_groups_portfolio_group_id_calculatedtrades_calculated_trade_id_trade_id/get.py +0 -255
- snaptrade_client/paths/portfolio_groups_portfolio_group_id_calculatedtrades_calculated_trade_id_trade_id/get.pyi +0 -245
- snaptrade_client/paths/portfolio_groups_portfolio_group_id_excludedassets/__init__.py +0 -7
- snaptrade_client/paths/portfolio_groups_portfolio_group_id_excludedassets/get.py +0 -244
- snaptrade_client/paths/portfolio_groups_portfolio_group_id_excludedassets/get.pyi +0 -233
- snaptrade_client/paths/portfolio_groups_portfolio_group_id_excludedassets/post.py +0 -281
- snaptrade_client/paths/portfolio_groups_portfolio_group_id_excludedassets/post.pyi +0 -271
- snaptrade_client/paths/portfolio_groups_portfolio_group_id_excludedassets_symbol_id/__init__.py +0 -7
- snaptrade_client/paths/portfolio_groups_portfolio_group_id_excludedassets_symbol_id/delete.py +0 -195
- snaptrade_client/paths/portfolio_groups_portfolio_group_id_excludedassets_symbol_id/delete.pyi +0 -185
- snaptrade_client/paths/portfolio_groups_portfolio_group_id_import/__init__.py +0 -7
- snaptrade_client/paths/portfolio_groups_portfolio_group_id_import/post.py +0 -244
- snaptrade_client/paths/portfolio_groups_portfolio_group_id_import/post.pyi +0 -233
- snaptrade_client/paths/portfolio_groups_portfolio_group_id_info/__init__.py +0 -7
- snaptrade_client/paths/portfolio_groups_portfolio_group_id_info/get.py +0 -219
- snaptrade_client/paths/portfolio_groups_portfolio_group_id_info/get.pyi +0 -208
- snaptrade_client/paths/portfolio_groups_portfolio_group_id_positions/__init__.py +0 -7
- snaptrade_client/paths/portfolio_groups_portfolio_group_id_positions/get.py +0 -266
- snaptrade_client/paths/portfolio_groups_portfolio_group_id_positions/get.pyi +0 -253
- snaptrade_client/paths/portfolio_groups_portfolio_group_id_settings/__init__.py +0 -7
- snaptrade_client/paths/portfolio_groups_portfolio_group_id_settings/get.py +0 -219
- snaptrade_client/paths/portfolio_groups_portfolio_group_id_settings/get.pyi +0 -208
- snaptrade_client/paths/portfolio_groups_portfolio_group_id_settings/patch.py +0 -219
- snaptrade_client/paths/portfolio_groups_portfolio_group_id_settings/patch.pyi +0 -208
- snaptrade_client/paths/portfolio_groups_portfolio_group_id_symbols/__init__.py +0 -7
- snaptrade_client/paths/portfolio_groups_portfolio_group_id_symbols/post.py +0 -283
- snaptrade_client/paths/portfolio_groups_portfolio_group_id_symbols/post.pyi +0 -272
- snaptrade_client/paths/portfolio_groups_portfolio_group_id_targets/__init__.py +0 -7
- snaptrade_client/paths/portfolio_groups_portfolio_group_id_targets/get.py +0 -266
- snaptrade_client/paths/portfolio_groups_portfolio_group_id_targets/get.pyi +0 -253
- snaptrade_client/paths/portfolio_groups_portfolio_group_id_targets/post.py +0 -273
- snaptrade_client/paths/portfolio_groups_portfolio_group_id_targets/post.pyi +0 -260
- snaptrade_client/paths/portfolio_groups_portfolio_group_id_targets_target_asset_id/__init__.py +0 -7
- snaptrade_client/paths/portfolio_groups_portfolio_group_id_targets_target_asset_id/delete.py +0 -256
- snaptrade_client/paths/portfolio_groups_portfolio_group_id_targets_target_asset_id/delete.pyi +0 -243
- snaptrade_client/paths/portfolio_groups_portfolio_group_id_targets_target_asset_id/get.py +0 -234
- snaptrade_client/paths/portfolio_groups_portfolio_group_id_targets_target_asset_id/get.pyi +0 -223
- snaptrade_client/paths/portfolio_groups_portfolio_group_id_targets_target_asset_id/patch.py +0 -321
- snaptrade_client/paths/portfolio_groups_portfolio_group_id_targets_target_asset_id/patch.pyi +0 -308
- snaptrade_client/paths/snap_trade_accept_disclaimer/post.py +0 -319
- snaptrade_client/paths/snap_trade_accept_disclaimer/post.pyi +0 -308
- snaptrade_client/paths/snap_trade_encrypted_jwt/__init__.py +0 -7
- snaptrade_client/paths/snap_trade_encrypted_jwt/get.py +0 -286
- snaptrade_client/paths/snap_trade_encrypted_jwt/get.pyi +0 -272
- snaptrade_client/paths/snap_trade_list_user_errors/get.py +0 -243
- snaptrade_client/paths/snap_trade_list_user_errors/get.pyi +0 -233
- snaptrade_client/paths/symbols_ticker/__init__.py +0 -7
- snaptrade_client/paths/symbols_ticker/get.py +0 -282
- snaptrade_client/paths/symbols_ticker/get.pyi +0 -270
- snaptrade_client/paths/trade_oco/post.py +0 -354
- snaptrade_client/paths/trade_oco/post.pyi +0 -342
- snaptrade_python_sdk-10.9.0.dist-info/METADATA +0 -314
- snaptrade_python_sdk-10.9.0.dist-info/RECORD +0 -563
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
SnapTrade
|
|
5
|
+
|
|
6
|
+
Connect brokerage accounts to your app for live positions and trading
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Contact: api@snaptrade.com
|
|
10
|
+
Created by: https://snaptrade.com/
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
from datetime import datetime, date
|
|
14
|
+
import typing
|
|
15
|
+
from enum import Enum
|
|
16
|
+
from typing_extensions import TypedDict, Literal, TYPE_CHECKING
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class RequiredModel404FailedRequestResponse(TypedDict):
|
|
20
|
+
pass
|
|
21
|
+
|
|
22
|
+
class OptionalModel404FailedRequestResponse(TypedDict, total=False):
|
|
23
|
+
default_detail: typing.Union[bool, date, datetime, dict, float, int, list, str, None]
|
|
24
|
+
|
|
25
|
+
default_code: typing.Union[bool, date, datetime, dict, float, int, list, str, None]
|
|
26
|
+
|
|
27
|
+
class Model404FailedRequestResponse(RequiredModel404FailedRequestResponse, OptionalModel404FailedRequestResponse):
|
|
28
|
+
pass
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
SnapTrade
|
|
5
|
+
|
|
6
|
+
Connect brokerage accounts to your app for live positions and trading
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Contact: api@snaptrade.com
|
|
10
|
+
Created by: https://snaptrade.com/
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
from datetime import datetime, date
|
|
14
|
+
import typing
|
|
15
|
+
from enum import Enum
|
|
16
|
+
from typing_extensions import TypedDict, Literal, TYPE_CHECKING
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class RequiredModel425FailedRequestResponse(TypedDict):
|
|
20
|
+
pass
|
|
21
|
+
|
|
22
|
+
class OptionalModel425FailedRequestResponse(TypedDict, total=False):
|
|
23
|
+
detail: typing.Union[bool, date, datetime, dict, float, int, list, str, None]
|
|
24
|
+
|
|
25
|
+
code: typing.Union[bool, date, datetime, dict, float, int, list, str, None]
|
|
26
|
+
|
|
27
|
+
class Model425FailedRequestResponse(RequiredModel425FailedRequestResponse, OptionalModel425FailedRequestResponse):
|
|
28
|
+
pass
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
SnapTrade
|
|
5
|
+
|
|
6
|
+
Connect brokerage accounts to your app for live positions and trading
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Contact: api@snaptrade.com
|
|
10
|
+
Created by: https://snaptrade.com/
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
from datetime import datetime, date
|
|
14
|
+
import typing
|
|
15
|
+
from enum import Enum
|
|
16
|
+
from typing_extensions import TypedDict, Literal, TYPE_CHECKING
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class RequiredModel500UnexpectedExceptionResponse(TypedDict):
|
|
20
|
+
pass
|
|
21
|
+
|
|
22
|
+
class OptionalModel500UnexpectedExceptionResponse(TypedDict, total=False):
|
|
23
|
+
detail: typing.Union[bool, date, datetime, dict, float, int, list, str, None]
|
|
24
|
+
|
|
25
|
+
status_code: typing.Union[bool, date, datetime, dict, float, int, list, str, None]
|
|
26
|
+
|
|
27
|
+
code: typing.Union[bool, date, datetime, dict, float, int, list, str, None]
|
|
28
|
+
|
|
29
|
+
class Model500UnexpectedExceptionResponse(RequiredModel500UnexpectedExceptionResponse, OptionalModel500UnexpectedExceptionResponse):
|
|
30
|
+
pass
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
SnapTrade
|
|
5
|
+
|
|
6
|
+
Connect brokerage accounts to your app for live positions and trading
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Contact: api@snaptrade.com
|
|
10
|
+
Created by: https://snaptrade.com/
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
from datetime import datetime, date
|
|
14
|
+
import typing
|
|
15
|
+
from enum import Enum
|
|
16
|
+
from typing_extensions import TypedDict, Literal, TYPE_CHECKING
|
|
17
|
+
|
|
18
|
+
from snaptrade_client.type.dividend_at_date import DividendAtDate
|
|
19
|
+
|
|
20
|
+
class RequiredMonthlyDividends(TypedDict):
|
|
21
|
+
pass
|
|
22
|
+
|
|
23
|
+
class OptionalMonthlyDividends(TypedDict, total=False):
|
|
24
|
+
# Date used to specify timeframe for a reporting call (in YYYY-MM-DD format). These dates are inclusive.
|
|
25
|
+
date: date
|
|
26
|
+
|
|
27
|
+
dividends: typing.List[DividendAtDate]
|
|
28
|
+
|
|
29
|
+
class MonthlyDividends(RequiredMonthlyDividends, OptionalMonthlyDividends):
|
|
30
|
+
pass
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
SnapTrade
|
|
5
|
+
|
|
6
|
+
Connect brokerage accounts to your app for live positions and trading
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Contact: api@snaptrade.com
|
|
10
|
+
Created by: https://snaptrade.com/
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
from datetime import datetime, date
|
|
14
|
+
import typing
|
|
15
|
+
from enum import Enum
|
|
16
|
+
from typing_extensions import TypedDict, Literal, TYPE_CHECKING
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class RequiredNetContributions(TypedDict):
|
|
20
|
+
pass
|
|
21
|
+
|
|
22
|
+
class OptionalNetContributions(TypedDict, total=False):
|
|
23
|
+
# Date used to specify timeframe for a reporting call (in YYYY-MM-DD format). These dates are inclusive.
|
|
24
|
+
date: date
|
|
25
|
+
|
|
26
|
+
contributions: typing.Optional[typing.Union[int, float]]
|
|
27
|
+
|
|
28
|
+
currency: str
|
|
29
|
+
|
|
30
|
+
class NetContributions(RequiredNetContributions, OptionalNetContributions):
|
|
31
|
+
pass
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
SnapTrade
|
|
5
|
+
|
|
6
|
+
Connect brokerage accounts to your app for live positions and trading
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Contact: api@snaptrade.com
|
|
10
|
+
Created by: https://snaptrade.com/
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
from datetime import datetime, date
|
|
14
|
+
import typing
|
|
15
|
+
from enum import Enum
|
|
16
|
+
from typing_extensions import TypedDict, Literal, TYPE_CHECKING
|
|
17
|
+
|
|
18
|
+
from snaptrade_client.type.universal_symbol import UniversalSymbol
|
|
19
|
+
|
|
20
|
+
class RequiredNetDividend(TypedDict):
|
|
21
|
+
pass
|
|
22
|
+
|
|
23
|
+
class OptionalNetDividend(TypedDict, total=False):
|
|
24
|
+
symbol: UniversalSymbol
|
|
25
|
+
|
|
26
|
+
amount: typing.Optional[typing.Union[int, float]]
|
|
27
|
+
|
|
28
|
+
currency: str
|
|
29
|
+
|
|
30
|
+
class NetDividend(RequiredNetDividend, OptionalNetDividend):
|
|
31
|
+
pass
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
SnapTrade
|
|
5
|
+
|
|
6
|
+
Connect brokerage accounts to your app for live positions and trading
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Contact: api@snaptrade.com
|
|
10
|
+
Created by: https://snaptrade.com/
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
from datetime import datetime, date
|
|
14
|
+
import typing
|
|
15
|
+
from enum import Enum
|
|
16
|
+
from typing_extensions import TypedDict, Literal, TYPE_CHECKING
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
NotionalValue = typing.Union[str,typing.Union[int, float]]
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
SnapTrade
|
|
5
|
+
|
|
6
|
+
Connect brokerage accounts to your app for live positions and trading
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Contact: api@snaptrade.com
|
|
10
|
+
Created by: https://snaptrade.com/
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
from datetime import datetime, date
|
|
14
|
+
import typing
|
|
15
|
+
from enum import Enum
|
|
16
|
+
from typing_extensions import TypedDict, Literal, TYPE_CHECKING
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
NotionalValueNullable = typing.Union[str,typing.Union[int, float]]
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
SnapTrade
|
|
5
|
+
|
|
6
|
+
Connect brokerage accounts to your app for live positions and trading
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Contact: api@snaptrade.com
|
|
10
|
+
Created by: https://snaptrade.com/
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
from datetime import datetime, date
|
|
14
|
+
import typing
|
|
15
|
+
from enum import Enum
|
|
16
|
+
from typing_extensions import TypedDict, Literal, TYPE_CHECKING
|
|
17
|
+
|
|
18
|
+
from snaptrade_client.type.options_symbol import OptionsSymbol
|
|
19
|
+
|
|
20
|
+
class RequiredOptionBrokerageSymbol(TypedDict):
|
|
21
|
+
pass
|
|
22
|
+
|
|
23
|
+
class OptionalOptionBrokerageSymbol(TypedDict, total=False):
|
|
24
|
+
option_symbol: OptionsSymbol
|
|
25
|
+
|
|
26
|
+
# WARNING: This property is deprecated
|
|
27
|
+
# A unique ID for the security within SnapTrade, scoped to the brokerage account that the security belongs to. This is a legacy field and should not be used. Do not rely on this being a stable ID as it can change.
|
|
28
|
+
id: str
|
|
29
|
+
|
|
30
|
+
# WARNING: This property is deprecated
|
|
31
|
+
# This field is deprecated and the caller should use the `option_symbol` child property's `description` instead.
|
|
32
|
+
description: str
|
|
33
|
+
|
|
34
|
+
class OptionBrokerageSymbol(RequiredOptionBrokerageSymbol, OptionalOptionBrokerageSymbol):
|
|
35
|
+
pass
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
SnapTrade
|
|
5
|
+
|
|
6
|
+
Connect brokerage accounts to your app for live positions and trading
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Contact: api@snaptrade.com
|
|
10
|
+
Created by: https://snaptrade.com/
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
from datetime import datetime, date
|
|
14
|
+
import typing
|
|
15
|
+
from enum import Enum
|
|
16
|
+
from typing_extensions import TypedDict, Literal, TYPE_CHECKING
|
|
17
|
+
|
|
18
|
+
from snaptrade_client.type.option_chain_item import OptionChainItem
|
|
19
|
+
|
|
20
|
+
OptionChain = typing.List[OptionChainItem]
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
SnapTrade
|
|
5
|
+
|
|
6
|
+
Connect brokerage accounts to your app for live positions and trading
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Contact: api@snaptrade.com
|
|
10
|
+
Created by: https://snaptrade.com/
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
from datetime import datetime, date
|
|
14
|
+
import typing
|
|
15
|
+
from enum import Enum
|
|
16
|
+
from typing_extensions import TypedDict, Literal, TYPE_CHECKING
|
|
17
|
+
|
|
18
|
+
from snaptrade_client.type.option_chain_item_chain_per_root import OptionChainItemChainPerRoot
|
|
19
|
+
|
|
20
|
+
class RequiredOptionChainItem(TypedDict):
|
|
21
|
+
pass
|
|
22
|
+
|
|
23
|
+
class OptionalOptionChainItem(TypedDict, total=False):
|
|
24
|
+
expiryDate: str
|
|
25
|
+
|
|
26
|
+
description: str
|
|
27
|
+
|
|
28
|
+
listingExchange: str
|
|
29
|
+
|
|
30
|
+
optionExerciseType: str
|
|
31
|
+
|
|
32
|
+
chainPerRoot: OptionChainItemChainPerRoot
|
|
33
|
+
|
|
34
|
+
class OptionChainItem(RequiredOptionChainItem, OptionalOptionChainItem):
|
|
35
|
+
pass
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
SnapTrade
|
|
5
|
+
|
|
6
|
+
Connect brokerage accounts to your app for live positions and trading
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Contact: api@snaptrade.com
|
|
10
|
+
Created by: https://snaptrade.com/
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
from datetime import datetime, date
|
|
14
|
+
import typing
|
|
15
|
+
from enum import Enum
|
|
16
|
+
from typing_extensions import TypedDict, Literal, TYPE_CHECKING
|
|
17
|
+
|
|
18
|
+
from snaptrade_client.type.option_chain_item_chain_per_root_item import OptionChainItemChainPerRootItem
|
|
19
|
+
|
|
20
|
+
OptionChainItemChainPerRoot = typing.List[OptionChainItemChainPerRootItem]
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
SnapTrade
|
|
5
|
+
|
|
6
|
+
Connect brokerage accounts to your app for live positions and trading
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Contact: api@snaptrade.com
|
|
10
|
+
Created by: https://snaptrade.com/
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
from datetime import datetime, date
|
|
14
|
+
import typing
|
|
15
|
+
from enum import Enum
|
|
16
|
+
from typing_extensions import TypedDict, Literal, TYPE_CHECKING
|
|
17
|
+
|
|
18
|
+
from snaptrade_client.type.option_chain_item_chain_per_root_item_chain_per_strike_price import OptionChainItemChainPerRootItemChainPerStrikePrice
|
|
19
|
+
|
|
20
|
+
class RequiredOptionChainItemChainPerRootItem(TypedDict):
|
|
21
|
+
pass
|
|
22
|
+
|
|
23
|
+
class OptionalOptionChainItemChainPerRootItem(TypedDict, total=False):
|
|
24
|
+
optionRoot: str
|
|
25
|
+
|
|
26
|
+
chainPerStrikePrice: OptionChainItemChainPerRootItemChainPerStrikePrice
|
|
27
|
+
|
|
28
|
+
multiplier: int
|
|
29
|
+
|
|
30
|
+
class OptionChainItemChainPerRootItem(RequiredOptionChainItemChainPerRootItem, OptionalOptionChainItemChainPerRootItem):
|
|
31
|
+
pass
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
SnapTrade
|
|
5
|
+
|
|
6
|
+
Connect brokerage accounts to your app for live positions and trading
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Contact: api@snaptrade.com
|
|
10
|
+
Created by: https://snaptrade.com/
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
from datetime import datetime, date
|
|
14
|
+
import typing
|
|
15
|
+
from enum import Enum
|
|
16
|
+
from typing_extensions import TypedDict, Literal, TYPE_CHECKING
|
|
17
|
+
|
|
18
|
+
from snaptrade_client.type.option_chain_item_chain_per_root_item_chain_per_strike_price_item import OptionChainItemChainPerRootItemChainPerStrikePriceItem
|
|
19
|
+
|
|
20
|
+
OptionChainItemChainPerRootItemChainPerStrikePrice = typing.List[OptionChainItemChainPerRootItemChainPerStrikePriceItem]
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
SnapTrade
|
|
5
|
+
|
|
6
|
+
Connect brokerage accounts to your app for live positions and trading
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Contact: api@snaptrade.com
|
|
10
|
+
Created by: https://snaptrade.com/
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
from datetime import datetime, date
|
|
14
|
+
import typing
|
|
15
|
+
from enum import Enum
|
|
16
|
+
from typing_extensions import TypedDict, Literal, TYPE_CHECKING
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class RequiredOptionChainItemChainPerRootItemChainPerStrikePriceItem(TypedDict):
|
|
20
|
+
pass
|
|
21
|
+
|
|
22
|
+
class OptionalOptionChainItemChainPerRootItemChainPerStrikePriceItem(TypedDict, total=False):
|
|
23
|
+
strikePrice: typing.Optional[int]
|
|
24
|
+
|
|
25
|
+
callSymbolId: typing.Optional[int]
|
|
26
|
+
|
|
27
|
+
putSymbolId: typing.Optional[int]
|
|
28
|
+
|
|
29
|
+
class OptionChainItemChainPerRootItemChainPerStrikePriceItem(RequiredOptionChainItemChainPerRootItemChainPerStrikePriceItem, OptionalOptionChainItemChainPerRootItemChainPerStrikePriceItem):
|
|
30
|
+
pass
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
SnapTrade
|
|
5
|
+
|
|
6
|
+
Connect brokerage accounts to your app for live positions and trading
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Contact: api@snaptrade.com
|
|
10
|
+
Created by: https://snaptrade.com/
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
from datetime import datetime, date
|
|
14
|
+
import typing
|
|
15
|
+
from enum import Enum
|
|
16
|
+
from typing_extensions import TypedDict, Literal, TYPE_CHECKING
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class RequiredOptionLeg(TypedDict):
|
|
20
|
+
pass
|
|
21
|
+
|
|
22
|
+
class OptionalOptionLeg(TypedDict, total=False):
|
|
23
|
+
action: str
|
|
24
|
+
|
|
25
|
+
# Obtained from calling options chain endpoint (option_id)
|
|
26
|
+
option_symbol_id: str
|
|
27
|
+
|
|
28
|
+
quantity: typing.Union[int, float]
|
|
29
|
+
|
|
30
|
+
class OptionLeg(RequiredOptionLeg, OptionalOptionLeg):
|
|
31
|
+
pass
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
SnapTrade
|
|
5
|
+
|
|
6
|
+
Connect brokerage accounts to your app for live positions and trading
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Contact: api@snaptrade.com
|
|
10
|
+
Created by: https://snaptrade.com/
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
from datetime import datetime, date
|
|
14
|
+
import typing
|
|
15
|
+
from enum import Enum
|
|
16
|
+
from typing_extensions import TypedDict, Literal, TYPE_CHECKING
|
|
17
|
+
|
|
18
|
+
from snaptrade_client.type.option_strategy_legs import OptionStrategyLegs
|
|
19
|
+
from snaptrade_client.type.universal_symbol import UniversalSymbol
|
|
20
|
+
|
|
21
|
+
class RequiredOptionStrategy(TypedDict):
|
|
22
|
+
pass
|
|
23
|
+
|
|
24
|
+
class OptionalOptionStrategy(TypedDict, total=False):
|
|
25
|
+
id: str
|
|
26
|
+
|
|
27
|
+
underlying_symbol_id: UniversalSymbol
|
|
28
|
+
|
|
29
|
+
strategy_type: str
|
|
30
|
+
|
|
31
|
+
number_of_legs: typing.Union[int, float]
|
|
32
|
+
|
|
33
|
+
legs: OptionStrategyLegs
|
|
34
|
+
|
|
35
|
+
class OptionStrategy(RequiredOptionStrategy, OptionalOptionStrategy):
|
|
36
|
+
pass
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
SnapTrade
|
|
5
|
+
|
|
6
|
+
Connect brokerage accounts to your app for live positions and trading
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Contact: api@snaptrade.com
|
|
10
|
+
Created by: https://snaptrade.com/
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
from datetime import datetime, date
|
|
14
|
+
import typing
|
|
15
|
+
from enum import Enum
|
|
16
|
+
from typing_extensions import TypedDict, Literal, TYPE_CHECKING
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
OptionStrategyLegs = typing.List[typing.Union[bool, date, datetime, dict, float, int, list, str, None]]
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
SnapTrade
|
|
5
|
+
|
|
6
|
+
Connect brokerage accounts to your app for live positions and trading
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Contact: api@snaptrade.com
|
|
10
|
+
Created by: https://snaptrade.com/
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
from datetime import datetime, date
|
|
14
|
+
import typing
|
|
15
|
+
from enum import Enum
|
|
16
|
+
from typing_extensions import TypedDict, Literal, TYPE_CHECKING
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
OptionSymbolID = str
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
SnapTrade
|
|
5
|
+
|
|
6
|
+
Connect brokerage accounts to your app for live positions and trading
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Contact: api@snaptrade.com
|
|
10
|
+
Created by: https://snaptrade.com/
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
from datetime import datetime, date
|
|
14
|
+
import typing
|
|
15
|
+
from enum import Enum
|
|
16
|
+
from typing_extensions import TypedDict, Literal, TYPE_CHECKING
|
|
17
|
+
|
|
18
|
+
from snaptrade_client.type.currency_nullable import CurrencyNullable
|
|
19
|
+
from snaptrade_client.type.option_brokerage_symbol import OptionBrokerageSymbol
|
|
20
|
+
|
|
21
|
+
class RequiredOptionsPosition(TypedDict):
|
|
22
|
+
pass
|
|
23
|
+
|
|
24
|
+
class OptionalOptionsPosition(TypedDict, total=False):
|
|
25
|
+
symbol: OptionBrokerageSymbol
|
|
26
|
+
|
|
27
|
+
# Last known market price _per share_ of the option contract. The freshness of this price depends on the brokerage. Some brokerages provide real-time prices, while others provide delayed prices. It is recommended that you rely on your own third-party market data provider for most up to date prices.
|
|
28
|
+
price: typing.Optional[typing.Union[int, float]]
|
|
29
|
+
|
|
30
|
+
# The number of contracts for this option position. A positive number indicates a long position, while a negative number indicates a short position.
|
|
31
|
+
units: typing.Union[int, float]
|
|
32
|
+
|
|
33
|
+
# Cost basis _per contract_ of this option position. To get the cost basis _per share_, divide this value by the number of shares per contract (usually 100).
|
|
34
|
+
average_purchase_price: typing.Optional[typing.Union[int, float]]
|
|
35
|
+
|
|
36
|
+
currency: typing.Optional[CurrencyNullable]
|
|
37
|
+
|
|
38
|
+
class OptionsPosition(RequiredOptionsPosition, OptionalOptionsPosition):
|
|
39
|
+
pass
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
SnapTrade
|
|
5
|
+
|
|
6
|
+
Connect brokerage accounts to your app for live positions and trading
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Contact: api@snaptrade.com
|
|
10
|
+
Created by: https://snaptrade.com/
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
from datetime import datetime, date
|
|
14
|
+
import typing
|
|
15
|
+
from enum import Enum
|
|
16
|
+
from typing_extensions import TypedDict, Literal, TYPE_CHECKING
|
|
17
|
+
|
|
18
|
+
from snaptrade_client.type.underlying_symbol import UnderlyingSymbol
|
|
19
|
+
|
|
20
|
+
class RequiredOptionsSymbol(TypedDict):
|
|
21
|
+
# Unique identifier for the option symbol within SnapTrade. This is the ID used to reference the symbol in SnapTrade API calls.
|
|
22
|
+
id: str
|
|
23
|
+
|
|
24
|
+
# The [OCC symbol](https://en.wikipedia.org/wiki/Option_symbol) for the option.
|
|
25
|
+
ticker: str
|
|
26
|
+
|
|
27
|
+
# The type of option. Either \"CALL\" or \"PUT\".
|
|
28
|
+
option_type: str
|
|
29
|
+
|
|
30
|
+
# The option strike price.
|
|
31
|
+
strike_price: typing.Union[int, float]
|
|
32
|
+
|
|
33
|
+
# The option expiration date.
|
|
34
|
+
expiration_date: date
|
|
35
|
+
|
|
36
|
+
underlying_symbol: UnderlyingSymbol
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
class OptionalOptionsSymbol(TypedDict, total=False):
|
|
40
|
+
# Whether the option is a mini option. Mini options have 10 underlying shares per contract instead of the standard 100.
|
|
41
|
+
is_mini_option: bool
|
|
42
|
+
|
|
43
|
+
class OptionsSymbol(RequiredOptionsSymbol, OptionalOptionsSymbol):
|
|
44
|
+
pass
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
SnapTrade
|
|
5
|
+
|
|
6
|
+
Connect brokerage accounts to your app for live positions and trading
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Contact: api@snaptrade.com
|
|
10
|
+
Created by: https://snaptrade.com/
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
from datetime import datetime, date
|
|
14
|
+
import typing
|
|
15
|
+
from enum import Enum
|
|
16
|
+
from typing_extensions import TypedDict, Literal, TYPE_CHECKING
|
|
17
|
+
|
|
18
|
+
from snaptrade_client.type.underlying_symbol import UnderlyingSymbol
|
|
19
|
+
|
|
20
|
+
class RequiredOptionsSymbolNullable(TypedDict):
|
|
21
|
+
# Unique identifier for the option symbol within SnapTrade. This is the ID used to reference the symbol in SnapTrade API calls.
|
|
22
|
+
id: str
|
|
23
|
+
|
|
24
|
+
# The [OCC symbol](https://en.wikipedia.org/wiki/Option_symbol) for the option.
|
|
25
|
+
ticker: str
|
|
26
|
+
|
|
27
|
+
# The type of option. Either \"CALL\" or \"PUT\".
|
|
28
|
+
option_type: str
|
|
29
|
+
|
|
30
|
+
# The option strike price.
|
|
31
|
+
strike_price: typing.Union[int, float]
|
|
32
|
+
|
|
33
|
+
# The option expiration date.
|
|
34
|
+
expiration_date: date
|
|
35
|
+
|
|
36
|
+
underlying_symbol: UnderlyingSymbol
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
class OptionalOptionsSymbolNullable(TypedDict, total=False):
|
|
40
|
+
# Whether the option is a mini option. Mini options have 10 underlying shares per contract instead of the standard 100.
|
|
41
|
+
is_mini_option: bool
|
|
42
|
+
|
|
43
|
+
class OptionsSymbolNullable(RequiredOptionsSymbolNullable, OptionalOptionsSymbolNullable):
|
|
44
|
+
pass
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
SnapTrade
|
|
5
|
+
|
|
6
|
+
Connect brokerage accounts to your app for live positions and trading
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Contact: api@snaptrade.com
|
|
10
|
+
Created by: https://snaptrade.com/
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
from datetime import datetime, date
|
|
14
|
+
import typing
|
|
15
|
+
from enum import Enum
|
|
16
|
+
from typing_extensions import TypedDict, Literal, TYPE_CHECKING
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
OrderType = str
|