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
snaptrade_client/schemas.py
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
The version of the OpenAPI document: 1.0.0
|
|
9
9
|
Contact: api@snaptrade.com
|
|
10
|
-
|
|
10
|
+
Created by: https://snaptrade.com/
|
|
11
11
|
"""
|
|
12
12
|
|
|
13
13
|
from collections import defaultdict
|
|
@@ -387,7 +387,13 @@ class Schema:
|
|
|
387
387
|
FileIO = openapi binary type and the user inputs a file
|
|
388
388
|
bytes = openapi binary type and the user inputs bytes
|
|
389
389
|
"""
|
|
390
|
-
|
|
390
|
+
try:
|
|
391
|
+
# In some cases (e.g. an int with enforced minimum value) this will throw an error:
|
|
392
|
+
# TypeError('object.__new__(DynamicSchema) is not safe, use DynamicSchema.__new__()')
|
|
393
|
+
res = super(Schema, cls).__new__(cls, arg)
|
|
394
|
+
except TypeError:
|
|
395
|
+
res = cls.__new__(cls, arg)
|
|
396
|
+
return res
|
|
391
397
|
|
|
392
398
|
@classmethod
|
|
393
399
|
def from_openapi_data_oapg(
|
|
@@ -969,6 +975,40 @@ class StrBase(ValidatorBase):
|
|
|
969
975
|
return super()._validate_oapg(arg, validation_metadata=validation_metadata)
|
|
970
976
|
|
|
971
977
|
|
|
978
|
+
class IntBase:
|
|
979
|
+
@property
|
|
980
|
+
def as_int_oapg(self) -> int:
|
|
981
|
+
try:
|
|
982
|
+
return self._as_int
|
|
983
|
+
except AttributeError:
|
|
984
|
+
self._as_int = int(self)
|
|
985
|
+
return self._as_int
|
|
986
|
+
|
|
987
|
+
@classmethod
|
|
988
|
+
def __validate_format(cls, arg: typing.Optional[decimal.Decimal], validation_metadata: ValidationMetadata):
|
|
989
|
+
if isinstance(arg, decimal.Decimal):
|
|
990
|
+
|
|
991
|
+
denominator = arg.as_integer_ratio()[-1]
|
|
992
|
+
if denominator != 1:
|
|
993
|
+
raise ApiValueError(
|
|
994
|
+
"Invalid value '{}' for type integer at {}".format(arg, validation_metadata.path_to_item)
|
|
995
|
+
)
|
|
996
|
+
|
|
997
|
+
@classmethod
|
|
998
|
+
def _validate_oapg(
|
|
999
|
+
cls,
|
|
1000
|
+
arg,
|
|
1001
|
+
validation_metadata: ValidationMetadata,
|
|
1002
|
+
):
|
|
1003
|
+
"""
|
|
1004
|
+
IntBase _validate_oapg
|
|
1005
|
+
TODO what about types = (int, number) -> IntBase, NumberBase? We could drop int and keep number only
|
|
1006
|
+
"""
|
|
1007
|
+
if cls._types and int not in cls._types: cls._types.add(int)
|
|
1008
|
+
cls.__validate_format(arg, validation_metadata=validation_metadata)
|
|
1009
|
+
return super()._validate_oapg(arg, validation_metadata=validation_metadata)
|
|
1010
|
+
|
|
1011
|
+
|
|
972
1012
|
class UUIDBase:
|
|
973
1013
|
@property
|
|
974
1014
|
@functools.lru_cache()
|
|
@@ -1835,7 +1875,7 @@ class ComposedBase(Discriminable):
|
|
|
1835
1875
|
continue
|
|
1836
1876
|
try:
|
|
1837
1877
|
path_to_schemas = oneof_cls._validate_oapg(arg, validation_metadata=validation_metadata)
|
|
1838
|
-
except (ApiValueError, ApiTypeError) as ex:
|
|
1878
|
+
except (ApiValueError, ApiTypeError, SchemaValidationError) as ex:
|
|
1839
1879
|
if discriminated_cls is not None and oneof_cls is discriminated_cls:
|
|
1840
1880
|
raise ex
|
|
1841
1881
|
continue
|
|
@@ -1870,7 +1910,7 @@ class ComposedBase(Discriminable):
|
|
|
1870
1910
|
|
|
1871
1911
|
try:
|
|
1872
1912
|
other_path_to_schemas = anyof_cls._validate_oapg(arg, validation_metadata=validation_metadata)
|
|
1873
|
-
except (ApiValueError, ApiTypeError) as ex:
|
|
1913
|
+
except (ApiValueError, ApiTypeError, SchemaValidationError) as ex:
|
|
1874
1914
|
if discriminated_cls is not None and anyof_cls is discriminated_cls:
|
|
1875
1915
|
raise ex
|
|
1876
1916
|
exceptions.append(ex)
|
|
@@ -1986,6 +2026,7 @@ class ComposedSchema(
|
|
|
1986
2026
|
ComposedBase,
|
|
1987
2027
|
DictBase,
|
|
1988
2028
|
ListBase,
|
|
2029
|
+
IntBase,
|
|
1989
2030
|
NumberBase,
|
|
1990
2031
|
StrBase,
|
|
1991
2032
|
BoolBase,
|
|
@@ -2048,39 +2089,6 @@ class NumberSchema(
|
|
|
2048
2089
|
return super().__new__(cls, arg, **kwargs)
|
|
2049
2090
|
|
|
2050
2091
|
|
|
2051
|
-
class IntBase:
|
|
2052
|
-
@property
|
|
2053
|
-
def as_int_oapg(self) -> int:
|
|
2054
|
-
try:
|
|
2055
|
-
return self._as_int
|
|
2056
|
-
except AttributeError:
|
|
2057
|
-
self._as_int = int(self)
|
|
2058
|
-
return self._as_int
|
|
2059
|
-
|
|
2060
|
-
@classmethod
|
|
2061
|
-
def __validate_format(cls, arg: typing.Optional[decimal.Decimal], validation_metadata: ValidationMetadata):
|
|
2062
|
-
if isinstance(arg, decimal.Decimal):
|
|
2063
|
-
|
|
2064
|
-
denominator = arg.as_integer_ratio()[-1]
|
|
2065
|
-
if denominator != 1:
|
|
2066
|
-
raise ApiValueError(
|
|
2067
|
-
"Invalid value '{}' for type integer at {}".format(arg, validation_metadata.path_to_item)
|
|
2068
|
-
)
|
|
2069
|
-
|
|
2070
|
-
@classmethod
|
|
2071
|
-
def _validate_oapg(
|
|
2072
|
-
cls,
|
|
2073
|
-
arg,
|
|
2074
|
-
validation_metadata: ValidationMetadata,
|
|
2075
|
-
):
|
|
2076
|
-
"""
|
|
2077
|
-
IntBase _validate_oapg
|
|
2078
|
-
TODO what about types = (int, number) -> IntBase, NumberBase? We could drop int and keep number only
|
|
2079
|
-
"""
|
|
2080
|
-
cls.__validate_format(arg, validation_metadata=validation_metadata)
|
|
2081
|
-
return super()._validate_oapg(arg, validation_metadata=validation_metadata)
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
2092
|
class IntSchema(IntBase, NumberBase, Schema, IntMixin):
|
|
2085
2093
|
|
|
2086
2094
|
@classmethod
|
|
File without changes
|
|
@@ -0,0 +1,68 @@
|
|
|
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_balance import AccountBalance
|
|
19
|
+
from snaptrade_client.type.account_cash_restrictions import AccountCashRestrictions
|
|
20
|
+
from snaptrade_client.type.account_meta import AccountMeta
|
|
21
|
+
from snaptrade_client.type.account_sync_status import AccountSyncStatus
|
|
22
|
+
|
|
23
|
+
class RequiredAccount(TypedDict):
|
|
24
|
+
# Unique identifier for the connected brokerage account. This is the UUID used to reference the account in SnapTrade. This ID should not change for as long as the connection stays active. If the connection is deleted and re-added, a new account ID will be generated.
|
|
25
|
+
id: str
|
|
26
|
+
|
|
27
|
+
# Unique identifier for the connection. This is the UUID used to reference the connection in SnapTrade.
|
|
28
|
+
brokerage_authorization: str
|
|
29
|
+
|
|
30
|
+
# A display name for the account. Either assigned by the user or by the brokerage itself. For certain brokerages, SnapTrade appends the brokerage name to the account name for clarity.
|
|
31
|
+
name: typing.Optional[str]
|
|
32
|
+
|
|
33
|
+
# The account number assigned by the brokerage. For some brokerages, this field may be masked for security reasons.
|
|
34
|
+
number: str
|
|
35
|
+
|
|
36
|
+
# The name of the brokerage that holds the account.
|
|
37
|
+
institution_name: str
|
|
38
|
+
|
|
39
|
+
# Timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format indicating when the account was created in SnapTrade. This is _not_ the account opening date at the brokerage.
|
|
40
|
+
created_date: datetime
|
|
41
|
+
|
|
42
|
+
sync_status: AccountSyncStatus
|
|
43
|
+
|
|
44
|
+
balance: AccountBalance
|
|
45
|
+
|
|
46
|
+
# Indicates whether the account is a paper (simulated) trading account.
|
|
47
|
+
is_paper: bool
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
class OptionalAccount(TypedDict, total=False):
|
|
51
|
+
# The current status of the account. Can be either \"open\", \"closed\", \"archived\" or null if the status is unknown or not provided by the brokerage.
|
|
52
|
+
status: typing.Optional[str]
|
|
53
|
+
|
|
54
|
+
# The account type as provided by the brokerage
|
|
55
|
+
raw_type: typing.Optional[str]
|
|
56
|
+
|
|
57
|
+
# WARNING: This property is deprecated
|
|
58
|
+
meta: AccountMeta
|
|
59
|
+
|
|
60
|
+
# WARNING: This property is deprecated
|
|
61
|
+
# Portfolio Group ID. Portfolio Groups have been deprecated. Please contact support if you have a usecase for it.
|
|
62
|
+
portfolio_group: str
|
|
63
|
+
|
|
64
|
+
# WARNING: This property is deprecated
|
|
65
|
+
cash_restrictions: AccountCashRestrictions
|
|
66
|
+
|
|
67
|
+
class Account(RequiredAccount, OptionalAccount):
|
|
68
|
+
pass
|
|
@@ -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 RequiredAccountBalance(TypedDict):
|
|
20
|
+
pass
|
|
21
|
+
|
|
22
|
+
class OptionalAccountBalance(TypedDict, total=False):
|
|
23
|
+
# Total market value of this account (includes cash, equity, fixed income, etc). This value is directly obtained from the brokerage and should reflect the most accurate value of the account.
|
|
24
|
+
total: typing.Union[bool, date, datetime, dict, float, int, list, str, None]
|
|
25
|
+
|
|
26
|
+
class AccountBalance(RequiredAccountBalance, OptionalAccountBalance):
|
|
27
|
+
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
|
+
AccountCashRestrictions = typing.List[str]
|
|
@@ -0,0 +1,37 @@
|
|
|
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.balance import Balance
|
|
19
|
+
from snaptrade_client.type.position import Position
|
|
20
|
+
from snaptrade_client.type.snap_trade_holdings_account import SnapTradeHoldingsAccount
|
|
21
|
+
from snaptrade_client.type.snap_trade_holdings_total_value import SnapTradeHoldingsTotalValue
|
|
22
|
+
|
|
23
|
+
class RequiredAccountHoldings(TypedDict):
|
|
24
|
+
pass
|
|
25
|
+
|
|
26
|
+
class OptionalAccountHoldings(TypedDict, total=False):
|
|
27
|
+
account: SnapTradeHoldingsAccount
|
|
28
|
+
|
|
29
|
+
balances: typing.Optional[typing.List[Balance]]
|
|
30
|
+
|
|
31
|
+
positions: typing.Optional[typing.List[Position]]
|
|
32
|
+
|
|
33
|
+
# WARNING: This property is deprecated
|
|
34
|
+
total_value: SnapTradeHoldingsTotalValue
|
|
35
|
+
|
|
36
|
+
class AccountHoldings(RequiredAccountHoldings, OptionalAccountHoldings):
|
|
37
|
+
pass
|
|
@@ -0,0 +1,47 @@
|
|
|
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 import Account
|
|
19
|
+
from snaptrade_client.type.account_order_record import AccountOrderRecord
|
|
20
|
+
from snaptrade_client.type.balance import Balance
|
|
21
|
+
from snaptrade_client.type.options_position import OptionsPosition
|
|
22
|
+
from snaptrade_client.type.position import Position
|
|
23
|
+
from snaptrade_client.type.snap_trade_holdings_total_value import SnapTradeHoldingsTotalValue
|
|
24
|
+
|
|
25
|
+
class RequiredAccountHoldingsAccount(TypedDict):
|
|
26
|
+
pass
|
|
27
|
+
|
|
28
|
+
class OptionalAccountHoldingsAccount(TypedDict, total=False):
|
|
29
|
+
account: Account
|
|
30
|
+
|
|
31
|
+
# List of balances for the account. Each element of the list has a distinct currency. Some brokerages like Questrade [allows holding multiple currencies in the same account](https://www.questrade.com/learning/questrade-basics/balances-and-reports/understanding-your-account-balances).
|
|
32
|
+
balances: typing.Optional[typing.List[Balance]]
|
|
33
|
+
|
|
34
|
+
# List of stock/ETF/crypto/mutual fund positions in the account.
|
|
35
|
+
positions: typing.Optional[typing.List[Position]]
|
|
36
|
+
|
|
37
|
+
# List of option positions in the account.
|
|
38
|
+
option_positions: typing.Optional[typing.List[OptionsPosition]]
|
|
39
|
+
|
|
40
|
+
# List of recent orders in the account, including both pending and executed orders. Note that option orders are included in this list. Option orders will have a null `universal_symbol` field and a non-null `option_symbol` field.
|
|
41
|
+
orders: typing.Optional[typing.List[AccountOrderRecord]]
|
|
42
|
+
|
|
43
|
+
# WARNING: This property is deprecated
|
|
44
|
+
total_value: SnapTradeHoldingsTotalValue
|
|
45
|
+
|
|
46
|
+
class AccountHoldingsAccount(RequiredAccountHoldingsAccount, OptionalAccountHoldingsAccount):
|
|
47
|
+
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
|
+
AccountID = 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
|
+
AccountIDs = 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
|
+
AccountMeta = dict
|
|
@@ -0,0 +1,94 @@
|
|
|
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_order_record_status import AccountOrderRecordStatus
|
|
19
|
+
from snaptrade_client.type.child_brokerage_order_ids_nullable import ChildBrokerageOrderIDsNullable
|
|
20
|
+
from snaptrade_client.type.currency import Currency
|
|
21
|
+
from snaptrade_client.type.options_symbol import OptionsSymbol
|
|
22
|
+
from snaptrade_client.type.universal_symbol import UniversalSymbol
|
|
23
|
+
|
|
24
|
+
class RequiredAccountOrderRecord(TypedDict):
|
|
25
|
+
pass
|
|
26
|
+
|
|
27
|
+
class OptionalAccountOrderRecord(TypedDict, total=False):
|
|
28
|
+
# Order ID returned by brokerage. This is the unique identifier for the order in the brokerage system.
|
|
29
|
+
brokerage_order_id: str
|
|
30
|
+
|
|
31
|
+
status: AccountOrderRecordStatus
|
|
32
|
+
|
|
33
|
+
# Contains information about the security that the order is for. This field is only present for stock/ETF/crypto/mutual fund orders. For option orders, this field will be null and the `option_symbol` field will be populated.
|
|
34
|
+
universal_symbol: UniversalSymbol
|
|
35
|
+
|
|
36
|
+
# Contains information about the option contract that the order is for. This field is only present for option orders. For stock/ETF/crypto/mutual fund orders, this field will be null and the `universal_symbol` field will be populated.
|
|
37
|
+
option_symbol: OptionsSymbol
|
|
38
|
+
|
|
39
|
+
# Quote cryptocurrency. This field is only present for cryptocurrency pair orders with a cryptocurrency as quote.
|
|
40
|
+
quote_universal_symbol: UniversalSymbol
|
|
41
|
+
|
|
42
|
+
# Quote currency. This field is only present for cryptocurrency pair orders with a fiat currency as quote.
|
|
43
|
+
quote_currency: Currency
|
|
44
|
+
|
|
45
|
+
# The action describes the intent or side of a trade. This is usually `BUY` or `SELL` but can include other potential values like the following depending on the specific brokerage. - BUY - SELL - BUY_COVER - SELL_SHORT - BUY_OPEN - BUY_CLOSE - SELL_OPEN - SELL_CLOSE
|
|
46
|
+
action: str
|
|
47
|
+
|
|
48
|
+
# The total number of shares or contracts of the order. This should be the sum of the filled, canceled, and open quantities. Can be a decimal number for fractional shares.
|
|
49
|
+
total_quantity: typing.Optional[str]
|
|
50
|
+
|
|
51
|
+
# The number of shares or contracts that are still open (waiting for execution). Can be a decimal number for fractional shares.
|
|
52
|
+
open_quantity: typing.Optional[str]
|
|
53
|
+
|
|
54
|
+
# The number of shares or contracts that have been canceled. Can be a decimal number for fractional shares.
|
|
55
|
+
canceled_quantity: typing.Optional[str]
|
|
56
|
+
|
|
57
|
+
# The number of shares or contracts that have been filled. Can be a decimal number for fractional shares.
|
|
58
|
+
filled_quantity: typing.Optional[str]
|
|
59
|
+
|
|
60
|
+
# The price at which the order was executed.
|
|
61
|
+
execution_price: typing.Optional[typing.Union[int, float]]
|
|
62
|
+
|
|
63
|
+
# The limit price is maximum price one is willing to pay for a buy order or the minimum price one is willing to accept for a sell order. Should only apply to `Limit` and `StopLimit` orders.
|
|
64
|
+
limit_price: typing.Optional[typing.Union[int, float]]
|
|
65
|
+
|
|
66
|
+
# The stop price is the price at which a stop order is triggered. Should only apply to `Stop` and `StopLimit` orders.
|
|
67
|
+
stop_price: typing.Optional[typing.Union[int, float]]
|
|
68
|
+
|
|
69
|
+
# The type of order placed. The most common values are `Market`, `Limit`, `Stop`, and `StopLimit`. We try our best to map brokerage order types to these values. When mapping fails, we will return the brokerage's order type value.
|
|
70
|
+
order_type: typing.Optional[str]
|
|
71
|
+
|
|
72
|
+
# The Time in Force type for the order. This field indicates how long the order will remain active before it is executed or expires. We try our best to map brokerage time in force values to the following. When mapping fails, we will return the brokerage's time in force value. - `Day` - Day. The order is valid only for the trading day on which it is placed. - `GTC` - Good Til Canceled. The order is valid until it is executed or canceled. - `FOK` - Fill Or Kill. The order must be executed in its entirety immediately or be canceled completely. - `IOC` - Immediate Or Cancel. The order must be executed immediately. Any portion of the order that cannot be filled immediately will be canceled. - `GTD` - Good Til Date. The order is valid until the specified date. - `MOO` - Market On Open. The order is to be executed at the day's opening price. - `EHP` - Extended Hours P.M. The order is to be placed during extended hour trading, after markets close.
|
|
73
|
+
time_in_force: str
|
|
74
|
+
|
|
75
|
+
# The time the order was placed. This is the time the order was submitted to the brokerage.
|
|
76
|
+
time_placed: datetime
|
|
77
|
+
|
|
78
|
+
# The time the order was last updated in the brokerage system. This value is not always available from the brokerage.
|
|
79
|
+
time_updated: typing.Optional[datetime]
|
|
80
|
+
|
|
81
|
+
# The time the order was executed in the brokerage system. This value is not always available from the brokerage.
|
|
82
|
+
time_executed: typing.Optional[datetime]
|
|
83
|
+
|
|
84
|
+
# The time the order expires. This value is not always available from the brokerage.
|
|
85
|
+
expiry_date: typing.Optional[datetime]
|
|
86
|
+
|
|
87
|
+
# WARNING: This property is deprecated
|
|
88
|
+
# 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.
|
|
89
|
+
symbol: str
|
|
90
|
+
|
|
91
|
+
child_brokerage_order_ids: typing.Optional[ChildBrokerageOrderIDsNullable]
|
|
92
|
+
|
|
93
|
+
class AccountOrderRecord(RequiredAccountOrderRecord, OptionalAccountOrderRecord):
|
|
94
|
+
pass
|
|
@@ -0,0 +1,48 @@
|
|
|
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_order_record_leg_instrument import AccountOrderRecordLegInstrument
|
|
19
|
+
from snaptrade_client.type.account_order_record_status_v2_nullable import AccountOrderRecordStatusV2Nullable
|
|
20
|
+
|
|
21
|
+
class RequiredAccountOrderRecordLeg(TypedDict):
|
|
22
|
+
pass
|
|
23
|
+
|
|
24
|
+
class OptionalAccountOrderRecordLeg(TypedDict, total=False):
|
|
25
|
+
# Brokerage order identifier for this leg, if available.
|
|
26
|
+
leg_id: typing.Optional[str]
|
|
27
|
+
|
|
28
|
+
instrument: AccountOrderRecordLegInstrument
|
|
29
|
+
|
|
30
|
+
# The action describes the intent or side of a trade. - BUY - SELL - BUY_COVER - SELL_SHORT - BUY_TO_OPEN - BUY_TO_CLOSE - SELL_TO_OPEN - SELL_TO_CLOSE
|
|
31
|
+
action: str
|
|
32
|
+
|
|
33
|
+
# Execution price for this leg, if available.
|
|
34
|
+
execution_price: typing.Optional[typing.Union[int, float]]
|
|
35
|
+
|
|
36
|
+
# The total number of shares or contracts associated with this leg. Can be a decimal number for fractional shares.
|
|
37
|
+
total_quantity: typing.Optional[str]
|
|
38
|
+
|
|
39
|
+
# The number of shares or contracts that have been canceled for this leg.
|
|
40
|
+
canceled_quantity: typing.Optional[str]
|
|
41
|
+
|
|
42
|
+
# The number of shares or contracts that have been filled for this leg.
|
|
43
|
+
filled_quantity: typing.Optional[str]
|
|
44
|
+
|
|
45
|
+
status: typing.Optional[AccountOrderRecordStatusV2Nullable]
|
|
46
|
+
|
|
47
|
+
class AccountOrderRecordLeg(RequiredAccountOrderRecordLeg, OptionalAccountOrderRecordLeg):
|
|
48
|
+
pass
|
|
@@ -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
|
+
|
|
19
|
+
class RequiredAccountOrderRecordLegInstrument(TypedDict):
|
|
20
|
+
pass
|
|
21
|
+
|
|
22
|
+
class OptionalAccountOrderRecordLegInstrument(TypedDict, total=False):
|
|
23
|
+
# The symbol or ticker for the security.
|
|
24
|
+
symbol: str
|
|
25
|
+
|
|
26
|
+
# Human-readable description of the security.
|
|
27
|
+
description: str
|
|
28
|
+
|
|
29
|
+
# Type of instrument for the leg. - EQUITY - OPTION - CRYPTO
|
|
30
|
+
asset_type: str
|
|
31
|
+
|
|
32
|
+
# Market Identifier Code (MIC) for the exchange on which the instrument trades.
|
|
33
|
+
exchange_mic_code: str
|
|
34
|
+
|
|
35
|
+
# Financial Instrument Global Identifier (FIGI) if available.
|
|
36
|
+
figi_code: typing.Optional[str]
|
|
37
|
+
|
|
38
|
+
class AccountOrderRecordLegInstrument(RequiredAccountOrderRecordLegInstrument, OptionalAccountOrderRecordLegInstrument):
|
|
39
|
+
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
|
+
AccountOrderRecordStatus = Literal["NONE", "PENDING", "ACCEPTED", "FAILED", "REJECTED", "CANCELED", "PARTIAL_CANCELED", "CANCEL_PENDING", "EXECUTED", "PARTIAL", "REPLACE_PENDING", "REPLACED", "STOPPED", "SUSPENDED", "EXPIRED", "QUEUED", "TRIGGERED", "ACTIVATED", "PENDING_RISK_REVIEW", "CONTINGENT_ORDER"]
|
|
@@ -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
|
+
AccountOrderRecordStatusV2 = Literal["PENDING", "REJECTED", "CANCELED", "CANCEL_PENDING", "PARTIAL_CANCELED", "EXECUTED", "PARTIALLY_EXECUTED", "REPLACED", "REPLACE_PENDING", "EXPIRED"]
|
|
@@ -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
|
+
AccountOrderRecordStatusV2Nullable = Literal["PENDING", "REJECTED", "CANCELED", "CANCEL_PENDING", "PARTIAL_CANCELED", "EXECUTED", "PARTIALLY_EXECUTED", "REPLACED", "REPLACE_PENDING", "EXPIRED"]
|