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,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
|
+
Time = str
|
|
@@ -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
|
+
TimeInForce = str
|
|
@@ -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
|
+
TimeInForceStrict = Literal["FOK", "Day", "GTC", "IOC"]
|
|
@@ -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
|
+
TradeID = str
|
|
@@ -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 RequiredTradingInstrument(TypedDict):
|
|
20
|
+
# The instrument's trading ticker symbol. This currently supports stock symbols and Options symbols in the 21 character OCC format. For example `AAPL 131124C00240000` represents a call option on AAPL expiring on 2024-11-13 with a strike price of $240. For more information on the OCC format, see [here](https://en.wikipedia.org/wiki/Option_symbol#OCC_format)
|
|
21
|
+
symbol: str
|
|
22
|
+
|
|
23
|
+
# The instrument's type
|
|
24
|
+
type: str
|
|
25
|
+
|
|
26
|
+
class OptionalTradingInstrument(TypedDict, total=False):
|
|
27
|
+
pass
|
|
28
|
+
|
|
29
|
+
class TradingInstrument(RequiredTradingInstrument, OptionalTradingInstrument):
|
|
30
|
+
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
|
+
TradingSession = Literal["REGULAR", "EXTENDED"]
|
|
@@ -0,0 +1,34 @@
|
|
|
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.sync_status_date import SyncStatusDate
|
|
19
|
+
from snaptrade_client.type.sync_status_date_nullable import SyncStatusDateNullable
|
|
20
|
+
|
|
21
|
+
class RequiredTransactionsStatus(TypedDict):
|
|
22
|
+
pass
|
|
23
|
+
|
|
24
|
+
class OptionalTransactionsStatus(TypedDict, total=False):
|
|
25
|
+
# Indicates if the initial sync of transactions has been completed. For accounts with a large number of transactions, the initial sync may take a while to complete.
|
|
26
|
+
initial_sync_completed: bool
|
|
27
|
+
|
|
28
|
+
last_successful_sync: SyncStatusDateNullable
|
|
29
|
+
|
|
30
|
+
# The date of the first transaction in the account known to SnapTrade. It's possible that the account has transactions before this date, but they are not known to SnapTrade.
|
|
31
|
+
first_transaction_date: SyncStatusDate
|
|
32
|
+
|
|
33
|
+
class TransactionsStatus(RequiredTransactionsStatus, OptionalTransactionsStatus):
|
|
34
|
+
pass
|
|
@@ -0,0 +1,58 @@
|
|
|
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 import Currency
|
|
19
|
+
from snaptrade_client.type.figi_instrument_nullable import FigiInstrumentNullable
|
|
20
|
+
from snaptrade_client.type.security_type import SecurityType
|
|
21
|
+
from snaptrade_client.type.us_exchange import USExchange
|
|
22
|
+
|
|
23
|
+
class RequiredUnderlyingSymbol(TypedDict):
|
|
24
|
+
pass
|
|
25
|
+
|
|
26
|
+
class OptionalUnderlyingSymbol(TypedDict, total=False):
|
|
27
|
+
# Unique identifier for the symbol within SnapTrade. This is the ID used to reference the symbol in SnapTrade API calls.
|
|
28
|
+
id: str
|
|
29
|
+
|
|
30
|
+
# The security's trading ticker symbol. For example \"AAPL\" for Apple Inc. We largely follow the [Yahoo Finance ticker format](https://help.yahoo.com/kb/SLN2310.html)(click on \"Yahoo Finance Market Coverage and Data Delays\"). For example, for securities traded on the Toronto Stock Exchange, the symbol has a '.TO' suffix. For securities traded on NASDAQ or NYSE, the symbol does not have a suffix.
|
|
31
|
+
symbol: str
|
|
32
|
+
|
|
33
|
+
# The raw symbol is `symbol` with the exchange suffix removed. For example, if `symbol` is \"VAB.TO\", then `raw_symbol` is \"VAB\".
|
|
34
|
+
raw_symbol: str
|
|
35
|
+
|
|
36
|
+
# A human-readable description of the security. This is usually the company name or ETF name.
|
|
37
|
+
description: typing.Optional[str]
|
|
38
|
+
|
|
39
|
+
# The currency in which the security is traded.
|
|
40
|
+
currency: Currency
|
|
41
|
+
|
|
42
|
+
# The exchange on which the security is listed and traded.
|
|
43
|
+
exchange: USExchange
|
|
44
|
+
|
|
45
|
+
# The type of security. For example, \"Common Stock\" or \"ETF\".
|
|
46
|
+
type: SecurityType
|
|
47
|
+
|
|
48
|
+
# This identifier is unique per security per trading venue. See section 1.4.1 of the [FIGI Standard](https://www.openfigi.com/assets/local/figi-allocation-rules.pdf) for more information. This value should be the same as the `figi_code` in the `figi_instrument` child property.
|
|
49
|
+
figi_code: typing.Optional[str]
|
|
50
|
+
|
|
51
|
+
figi_instrument: typing.Optional[FigiInstrumentNullable]
|
|
52
|
+
|
|
53
|
+
# WARNING: This property is deprecated
|
|
54
|
+
# This field is deprecated and should not be used. Please reach out to SnapTrade support if you have a valid usecase for this.
|
|
55
|
+
currencies: typing.List[Currency]
|
|
56
|
+
|
|
57
|
+
class UnderlyingSymbol(RequiredUnderlyingSymbol, OptionalUnderlyingSymbol):
|
|
58
|
+
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
|
+
Units = 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
|
+
UnitsNullable = float
|
|
@@ -0,0 +1,76 @@
|
|
|
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.account_simple import AccountSimple
|
|
19
|
+
from snaptrade_client.type.currency import Currency
|
|
20
|
+
from snaptrade_client.type.options_symbol_nullable import OptionsSymbolNullable
|
|
21
|
+
from snaptrade_client.type.symbol_nullable import SymbolNullable
|
|
22
|
+
|
|
23
|
+
class RequiredUniversalActivity(TypedDict):
|
|
24
|
+
pass
|
|
25
|
+
|
|
26
|
+
class OptionalUniversalActivity(TypedDict, total=False):
|
|
27
|
+
# Unique identifier for the transaction. This is the ID used to reference the transaction in SnapTrade. Please note that this ID _can_ change if the transaction is deleted and re-added. Under normal circumstances, SnapTrade does not delete transactions. The only time this would happen is if SnapTrade re-fetches and reprocesses the data from the brokerage, which is rare. If you require a stable ID, please let us know and we can work with you to provide one.
|
|
28
|
+
id: str
|
|
29
|
+
|
|
30
|
+
account: AccountSimple
|
|
31
|
+
|
|
32
|
+
symbol: typing.Optional[SymbolNullable]
|
|
33
|
+
|
|
34
|
+
option_symbol: typing.Optional[OptionsSymbolNullable]
|
|
35
|
+
|
|
36
|
+
# The price of the security for the transaction. This is mostly applicable to `BUY`, `SELL`, and `DIVIDEND` transactions.
|
|
37
|
+
price: typing.Union[int, float]
|
|
38
|
+
|
|
39
|
+
# The number of units of the security for the transaction. This is mostly applicable to `BUY`, `SELL`, and `DIVIDEND` transactions.
|
|
40
|
+
units: typing.Union[int, float]
|
|
41
|
+
|
|
42
|
+
# The amount of the transaction denominated in `currency`. This can be positive or negative. In general, transactions that positively affect the account balance (like sell, deposits, dividends, etc) will have a positive amount, while transactions that negatively affect the account balance (like buy, withdrawals, fees, etc) will have a negative amount.
|
|
43
|
+
amount: typing.Optional[typing.Union[int, float]]
|
|
44
|
+
|
|
45
|
+
# The currency in which the transaction `price` and `amount` is denominated.
|
|
46
|
+
currency: Currency
|
|
47
|
+
|
|
48
|
+
# A string representing the type of transaction. SnapTrade does a best effort to categorize the brokerage transaction types into a common set of values. Here are some of the most popular values: - `BUY` - Asset bought. - `SELL` - Asset sold. - `DIVIDEND` - Dividend payout. - `CONTRIBUTION` - Cash contribution. - `WITHDRAWAL` - Cash withdrawal. - `REI` - Dividend reinvestment. - `INTEREST` - Interest deposited into the account. - `FEE` - Fee withdrawn from the account. - `OPTIONEXPIRATION` - Option expiration event. `option_symbol` contains the related option contract info. - `OPTIONASSIGNMENT` - Option assignment event. `option_symbol` contains the related option contract info. - `OPTIONEXERCISE` - Option exercise event. `option_symbol` contains the related option contract info.
|
|
49
|
+
type: str
|
|
50
|
+
|
|
51
|
+
# If an option `BUY` or `SELL` transaction, this further specifies the type of action. The possible values are: - BUY_TO_OPEN - BUY_TO_CLOSE - SELL_TO_OPEN - SELL_TO_CLOSE
|
|
52
|
+
option_type: str
|
|
53
|
+
|
|
54
|
+
# A human-readable description of the transaction. This is usually the brokerage's description of the transaction.
|
|
55
|
+
description: str
|
|
56
|
+
|
|
57
|
+
# The recorded time for the transaction. The granularity of this timestamp depends on the brokerage. Some brokerages provide the exact time of the transaction, while others provide only the date. Please check the [integrations page](https://snaptrade.notion.site/66793431ad0b416489eaabaf248d0afb?v=6fab8012ade6441fa0c6d9af9c55ce3a) for the specific brokerage to see the granularity of the timestamps. Note that even though the field is named `trade_date`, it can represent any type of transaction, not just trades.
|
|
58
|
+
trade_date: typing.Optional[datetime]
|
|
59
|
+
|
|
60
|
+
# The date on which the transaction is settled.
|
|
61
|
+
settlement_date: datetime
|
|
62
|
+
|
|
63
|
+
# Any fee associated with the transaction if provided by the brokerage.
|
|
64
|
+
fee: typing.Union[int, float]
|
|
65
|
+
|
|
66
|
+
# The forex conversion rate involved in the transaction if provided by the brokerage. Used in cases where securities of one currency are purchased in a different currency, and the forex conversion is automatic. In those cases, price, amount and fee will be in the top level currency (activity -> currency)
|
|
67
|
+
fx_rate: typing.Optional[typing.Union[int, float]]
|
|
68
|
+
|
|
69
|
+
# The institution that the transaction is associated with. This is usually the brokerage name.
|
|
70
|
+
institution: str
|
|
71
|
+
|
|
72
|
+
# Reference ID from brokerage used to identify related transactions. For example if an order comprises of several transactions (buy, fee, fx), they can be grouped if they share the same `external_reference_id`
|
|
73
|
+
external_reference_id: typing.Optional[str]
|
|
74
|
+
|
|
75
|
+
class UniversalActivity(RequiredUniversalActivity, OptionalUniversalActivity):
|
|
76
|
+
pass
|
|
@@ -0,0 +1,56 @@
|
|
|
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 import Currency
|
|
19
|
+
from snaptrade_client.type.exchange import Exchange
|
|
20
|
+
from snaptrade_client.type.figi_instrument_nullable import FigiInstrumentNullable
|
|
21
|
+
from snaptrade_client.type.security_type import SecurityType
|
|
22
|
+
|
|
23
|
+
class RequiredUniversalSymbol(TypedDict):
|
|
24
|
+
# Unique identifier for the symbol within SnapTrade. This is the ID used to reference the symbol in SnapTrade API calls.
|
|
25
|
+
id: str
|
|
26
|
+
|
|
27
|
+
# The security's trading ticker symbol. For example \"AAPL\" for Apple Inc. We largely follow the [Yahoo Finance ticker format](https://help.yahoo.com/kb/SLN2310.html)(click on \"Yahoo Finance Market Coverage and Data Delays\"). For example, for securities traded on the Toronto Stock Exchange, the symbol has a '.TO' suffix. For securities traded on NASDAQ or NYSE, the symbol does not have a suffix.
|
|
28
|
+
symbol: str
|
|
29
|
+
|
|
30
|
+
# The raw symbol is `symbol` with the exchange suffix removed. For example, if `symbol` is \"VAB.TO\", then `raw_symbol` is \"VAB\".
|
|
31
|
+
raw_symbol: str
|
|
32
|
+
|
|
33
|
+
# The currency in which the security is traded.
|
|
34
|
+
currency: Currency
|
|
35
|
+
|
|
36
|
+
type: SecurityType
|
|
37
|
+
|
|
38
|
+
# WARNING: This property is deprecated
|
|
39
|
+
# This field is deprecated and should not be used. Please reach out to SnapTrade support if you have a valid usecase for this.
|
|
40
|
+
currencies: typing.List[Currency]
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
class OptionalUniversalSymbol(TypedDict, total=False):
|
|
44
|
+
# A human-readable description of the security. This is usually the company name or ETF name.
|
|
45
|
+
description: typing.Optional[str]
|
|
46
|
+
|
|
47
|
+
# The exchange on which the security is listed and traded.
|
|
48
|
+
exchange: Exchange
|
|
49
|
+
|
|
50
|
+
# This identifier is unique per security per trading venue. See section 1.4.1 of the [FIGI Standard](https://www.openfigi.com/assets/local/figi-allocation-rules.pdf) for more information. This value should be the same as the `figi_code` in the `figi_instrument` child property.
|
|
51
|
+
figi_code: typing.Optional[str]
|
|
52
|
+
|
|
53
|
+
figi_instrument: typing.Optional[FigiInstrumentNullable]
|
|
54
|
+
|
|
55
|
+
class UniversalSymbol(RequiredUniversalSymbol, OptionalUniversalSymbol):
|
|
56
|
+
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
|
+
UniversalSymbolID = str
|
|
@@ -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
|
+
UniversalSymbolIDNullable = str
|
|
@@ -0,0 +1,42 @@
|
|
|
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 RequiredUSExchange(TypedDict):
|
|
20
|
+
pass
|
|
21
|
+
|
|
22
|
+
class OptionalUSExchange(TypedDict, total=False):
|
|
23
|
+
id: str
|
|
24
|
+
|
|
25
|
+
code: str
|
|
26
|
+
|
|
27
|
+
mic_code: str
|
|
28
|
+
|
|
29
|
+
name: str
|
|
30
|
+
|
|
31
|
+
timezone: str
|
|
32
|
+
|
|
33
|
+
start_time: str
|
|
34
|
+
|
|
35
|
+
close_time: str
|
|
36
|
+
|
|
37
|
+
suffix: typing.Optional[str]
|
|
38
|
+
|
|
39
|
+
allows_cryptocurrency_symbols: bool
|
|
40
|
+
|
|
41
|
+
class USExchange(RequiredUSExchange, OptionalUSExchange):
|
|
42
|
+
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 RequiredUserIDandSecret(TypedDict):
|
|
20
|
+
pass
|
|
21
|
+
|
|
22
|
+
class OptionalUserIDandSecret(TypedDict, total=False):
|
|
23
|
+
# SnapTrade User ID. This is chosen by the API partner and can be any string that is a) unique to the user, and b) immutable for the user. It is recommended to NOT use email addresses for this property because they are usually not immutable.
|
|
24
|
+
userId: str
|
|
25
|
+
|
|
26
|
+
# SnapTrade User Secret. This is a randomly generated string and should be stored securely. If compromised, please rotate it via the [rotate user secret endpoint](/reference/Authentication/Authentication_resetSnapTradeUserSecret).
|
|
27
|
+
userSecret: str
|
|
28
|
+
|
|
29
|
+
class UserIDandSecret(RequiredUserIDandSecret, OptionalUserIDandSecret):
|
|
30
|
+
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
|
+
UserID = str
|
|
@@ -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
|
+
UserList = typing.List[str]
|
|
@@ -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
|
+
UserSecret = str
|
|
@@ -0,0 +1,27 @@
|
|
|
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 RequiredValidatedTradeBody(TypedDict):
|
|
20
|
+
pass
|
|
21
|
+
|
|
22
|
+
class OptionalValidatedTradeBody(TypedDict, total=False):
|
|
23
|
+
# Optional, defaults to true. Determines if a wait is performed to check on order status. If false, latency will be reduced but orders returned will be more likely to be of status `PENDING` as we will not wait to check on the status before responding to the request.
|
|
24
|
+
wait_to_confirm: typing.Optional[bool]
|
|
25
|
+
|
|
26
|
+
class ValidatedTradeBody(RequiredValidatedTradeBody, OptionalValidatedTradeBody):
|
|
27
|
+
pass
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"""
|
|
2
|
+
SnapTrade
|
|
3
|
+
|
|
4
|
+
Connect brokerage accounts to your app for live positions and trading
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
Contact: api@snaptrade.com
|
|
8
|
+
Created by: https://snaptrade.com/
|
|
9
|
+
"""
|
|
10
|
+
|
|
11
|
+
from typing import Callable, Generic, TypeVar, Any
|
|
12
|
+
|
|
13
|
+
F = TypeVar("F", bound=Callable[..., Any])
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class copy_signature(Generic[F]):
|
|
17
|
+
def __init__(self, func: F, *args) -> None:
|
|
18
|
+
self.func = func
|
|
19
|
+
|
|
20
|
+
def __call__(self, *args, **kwargs) -> F:
|
|
21
|
+
if len(args) == 1:
|
|
22
|
+
return args[0]
|
|
23
|
+
return self.func(*args, **kwargs)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Copyright (c)
|
|
1
|
+
Copyright (c) 2025- Konfig, Inc. (https://konfigthis.com)
|
|
2
2
|
|
|
3
3
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
4
|
|