snaptrade 3.0.15 → 3.0.17
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.
- checksums.yaml +4 -4
- data/README.md +63 -6
- data/lib/snaptrade/api/account_information_api.rb +1 -1
- data/lib/snaptrade/api/api_status_api.rb +1 -1
- data/lib/snaptrade/api/authentication_api.rb +1 -1
- data/lib/snaptrade/api/connections_api.rb +1 -1
- data/lib/snaptrade/api/experimental_endpoints_api.rb +1 -1
- data/lib/snaptrade/api/reference_data_api.rb +1 -1
- data/lib/snaptrade/api/trading_api.rb +1 -1
- data/lib/snaptrade/api_client.rb +1 -1
- data/lib/snaptrade/api_error.rb +1 -1
- data/lib/snaptrade/configuration.rb +1 -1
- data/lib/snaptrade/models/account.rb +1 -1
- data/lib/snaptrade/models/account_balance.rb +1 -1
- data/lib/snaptrade/models/account_balance_total.rb +1 -1
- data/lib/snaptrade/models/account_category.rb +1 -1
- data/lib/snaptrade/models/account_holdings.rb +1 -1
- data/lib/snaptrade/models/account_holdings_account.rb +1 -1
- data/lib/snaptrade/models/account_information_get_user_account_order_detail_request.rb +1 -1
- data/lib/snaptrade/models/account_order_record.rb +1 -1
- data/lib/snaptrade/models/account_order_record_child_brokerage_order_ids.rb +1 -1
- data/lib/snaptrade/models/account_order_record_leg.rb +1 -1
- data/lib/snaptrade/models/account_order_record_leg_instrument.rb +1 -1
- data/lib/snaptrade/models/account_order_record_option_symbol.rb +1 -1
- data/lib/snaptrade/models/account_order_record_quote_currency.rb +1 -1
- data/lib/snaptrade/models/account_order_record_quote_universal_symbol.rb +1 -1
- data/lib/snaptrade/models/account_order_record_status.rb +1 -1
- data/lib/snaptrade/models/account_order_record_status_v2.rb +1 -1
- data/lib/snaptrade/models/account_order_record_trailing_stop.rb +1 -1
- data/lib/snaptrade/models/account_order_record_universal_symbol.rb +1 -1
- data/lib/snaptrade/models/account_order_record_v2.rb +1 -1
- data/lib/snaptrade/models/account_order_record_v2_order_role.rb +1 -1
- data/lib/snaptrade/models/account_orders_v2_response.rb +1 -1
- data/lib/snaptrade/models/account_position.rb +1 -1
- data/lib/snaptrade/models/account_simple.rb +1 -1
- data/lib/snaptrade/models/account_status.rb +1 -1
- data/lib/snaptrade/models/account_sync_status.rb +1 -1
- data/lib/snaptrade/models/account_universal_activity.rb +1 -1
- data/lib/snaptrade/models/account_universal_activity_currency.rb +1 -1
- data/lib/snaptrade/models/account_universal_activity_currency_universal_symbol.rb +1 -1
- data/lib/snaptrade/models/account_universal_activity_option_symbol.rb +1 -1
- data/lib/snaptrade/models/account_universal_activity_symbol.rb +1 -1
- data/lib/snaptrade/models/account_value_history_item.rb +1 -1
- data/lib/snaptrade/models/account_value_history_response.rb +1 -1
- data/lib/snaptrade/models/action_strict.rb +1 -1
- data/lib/snaptrade/models/action_strict_with_options.rb +1 -1
- data/lib/snaptrade/models/adr_instrument.rb +1 -1
- data/lib/snaptrade/models/adr_instrument_kind.rb +1 -1
- data/lib/snaptrade/models/all_account_positions_response.rb +1 -1
- data/lib/snaptrade/models/all_account_positions_response_data_freshness.rb +1 -1
- data/lib/snaptrade/models/auth_type.rb +1 -1
- data/lib/snaptrade/models/authentication_login_snap_trade_user200_response.rb +1 -1
- data/lib/snaptrade/models/balance.rb +1 -1
- data/lib/snaptrade/models/balance_currency.rb +1 -1
- data/lib/snaptrade/models/brokerage.rb +1 -1
- data/lib/snaptrade/models/brokerage_authorization.rb +1 -1
- data/lib/snaptrade/models/brokerage_authorization_data_freshness_mode.rb +4 -2
- data/lib/snaptrade/models/brokerage_authorization_disabled_confirmation.rb +1 -1
- data/lib/snaptrade/models/brokerage_authorization_refresh_confirmation.rb +1 -1
- data/lib/snaptrade/models/brokerage_authorization_transactions_sync_confirmation.rb +1 -1
- data/lib/snaptrade/models/brokerage_authorization_type_read_only.rb +1 -1
- data/lib/snaptrade/models/brokerage_authorization_type_read_only_brokerage.rb +1 -1
- data/lib/snaptrade/models/brokerage_authorization_type_read_only_type.rb +1 -1
- data/lib/snaptrade/models/brokerage_instrument.rb +1 -1
- data/lib/snaptrade/models/brokerage_instruments_response.rb +1 -1
- data/lib/snaptrade/models/brokerage_type.rb +1 -1
- data/lib/snaptrade/models/cancel_order_response.rb +1 -1
- data/lib/snaptrade/models/cash_change_direction.rb +1 -1
- data/lib/snaptrade/models/cef_instrument.rb +1 -1
- data/lib/snaptrade/models/cef_instrument_kind.rb +1 -1
- data/lib/snaptrade/models/cfd_instrument.rb +1 -1
- data/lib/snaptrade/models/cfd_instrument_kind.rb +1 -1
- data/lib/snaptrade/models/child_brokerage_order_ids.rb +1 -1
- data/lib/snaptrade/models/complex_order_leg.rb +25 -6
- data/lib/snaptrade/models/complex_order_leg_order_role.rb +1 -1
- data/lib/snaptrade/models/complex_order_response.rb +1 -1
- data/lib/snaptrade/models/complex_order_response_type.rb +1 -1
- data/lib/snaptrade/models/connection_account.rb +1 -1
- data/lib/snaptrade/models/connection_account_sync_status.rb +1 -1
- data/lib/snaptrade/models/connection_portal_version.rb +1 -1
- data/lib/snaptrade/models/connection_type.rb +1 -1
- data/lib/snaptrade/models/crypto_instrument.rb +1 -1
- data/lib/snaptrade/models/crypto_instrument_kind.rb +1 -1
- data/lib/snaptrade/models/crypto_order_form.rb +1 -1
- data/lib/snaptrade/models/crypto_order_form_time_in_force.rb +1 -1
- data/lib/snaptrade/models/crypto_order_form_type.rb +1 -1
- data/lib/snaptrade/models/crypto_order_preview.rb +1 -1
- data/lib/snaptrade/models/crypto_order_preview_estimated_fee.rb +1 -1
- data/lib/snaptrade/models/crypto_trading_instrument.rb +1 -1
- data/lib/snaptrade/models/crypto_trading_instrument_type.rb +1 -1
- data/lib/snaptrade/models/cryptocurrency_pair.rb +1 -1
- data/lib/snaptrade/models/cryptocurrency_pair_quote.rb +1 -1
- data/lib/snaptrade/models/currency.rb +1 -1
- data/lib/snaptrade/models/delete_connection_confirmation.rb +1 -1
- data/lib/snaptrade/models/delete_user_response.rb +1 -1
- data/lib/snaptrade/models/deposit_account.rb +1 -1
- data/lib/snaptrade/models/deposit_account_kind.rb +1 -1
- data/lib/snaptrade/models/deposit_account_net_value.rb +1 -1
- data/lib/snaptrade/models/deposit_account_sync_status.rb +1 -1
- data/lib/snaptrade/models/dividend_at_date.rb +1 -1
- data/lib/snaptrade/models/encrypted_response.rb +1 -1
- data/lib/snaptrade/models/encrypted_response_encrypted_message_data.rb +1 -1
- data/lib/snaptrade/models/etf_instrument.rb +1 -1
- data/lib/snaptrade/models/etf_instrument_kind.rb +1 -1
- data/lib/snaptrade/models/exchange.rb +1 -1
- data/lib/snaptrade/models/exchange_rate_pairs.rb +1 -1
- data/lib/snaptrade/models/figi_instrument.rb +1 -1
- data/lib/snaptrade/models/future_instrument.rb +1 -1
- data/lib/snaptrade/models/future_instrument_kind.rb +1 -1
- data/lib/snaptrade/models/holdings_status.rb +1 -1
- data/lib/snaptrade/models/institution.rb +1 -1
- data/lib/snaptrade/models/instrument.rb +1 -1
- data/lib/snaptrade/models/investment_account.rb +1 -1
- data/lib/snaptrade/models/investment_account_net_value.rb +1 -1
- data/lib/snaptrade/models/kind.rb +1 -1
- data/lib/snaptrade/models/line_of_credit_account.rb +27 -6
- data/lib/snaptrade/models/line_of_credit_account_available_credit.rb +228 -0
- data/lib/snaptrade/models/line_of_credit_account_kind.rb +1 -1
- data/lib/snaptrade/models/line_of_credit_account_minimum_payment_amount.rb +1 -1
- data/lib/snaptrade/models/line_of_credit_account_net_value.rb +1 -1
- data/lib/snaptrade/models/line_of_credit_account_sync_status.rb +1 -1
- data/lib/snaptrade/models/login_redirect_uri.rb +1 -1
- data/lib/snaptrade/models/manual_trade.rb +1 -1
- data/lib/snaptrade/models/manual_trade_and_impact.rb +1 -1
- data/lib/snaptrade/models/manual_trade_balance.rb +1 -1
- data/lib/snaptrade/models/manual_trade_form.rb +1 -1
- data/lib/snaptrade/models/manual_trade_form_bracket.rb +1 -1
- data/lib/snaptrade/models/manual_trade_form_complex.rb +1 -1
- data/lib/snaptrade/models/manual_trade_form_complex_type.rb +1 -1
- data/lib/snaptrade/models/manual_trade_form_notional_value.rb +1 -1
- data/lib/snaptrade/models/manual_trade_form_with_options.rb +1 -1
- data/lib/snaptrade/models/manual_trade_impact.rb +1 -1
- data/lib/snaptrade/models/manual_trade_place_time_in_force_strict.rb +1 -1
- data/lib/snaptrade/models/manual_trade_replace_form.rb +1 -1
- data/lib/snaptrade/models/manual_trade_symbol.rb +1 -1
- data/lib/snaptrade/models/mleg_action_strict.rb +1 -1
- data/lib/snaptrade/models/mleg_instrument_type.rb +1 -1
- data/lib/snaptrade/models/mleg_leg.rb +1 -1
- data/lib/snaptrade/models/mleg_order_response.rb +1 -1
- data/lib/snaptrade/models/mleg_order_type_strict.rb +1 -1
- data/lib/snaptrade/models/mleg_price_effect_strict.rb +1 -1
- data/lib/snaptrade/models/mleg_trade_form.rb +1 -1
- data/lib/snaptrade/models/mleg_trading_instrument.rb +1 -1
- data/lib/snaptrade/models/model400_failed_request_response.rb +1 -1
- data/lib/snaptrade/models/model401_failed_request_response.rb +1 -1
- data/lib/snaptrade/models/model402_brokerage_auth_already_disabled_exception.rb +1 -1
- data/lib/snaptrade/models/model402_brokerage_auth_disabled_response.rb +1 -1
- data/lib/snaptrade/models/model403_failed_request_response.rb +1 -1
- data/lib/snaptrade/models/model403_feature_not_enabled_response.rb +1 -1
- data/lib/snaptrade/models/model404_failed_request_response.rb +1 -1
- data/lib/snaptrade/models/model425_failed_request_response.rb +1 -1
- data/lib/snaptrade/models/model429_too_many_requests_response.rb +1 -1
- data/lib/snaptrade/models/model500_unexpected_exception_response.rb +1 -1
- data/lib/snaptrade/models/model501_not_implemented_response.rb +1 -1
- data/lib/snaptrade/models/model503_brokerage_request_response.rb +1 -1
- data/lib/snaptrade/models/monthly_dividends.rb +1 -1
- data/lib/snaptrade/models/mutual_fund_instrument.rb +1 -1
- data/lib/snaptrade/models/mutual_fund_instrument_kind.rb +1 -1
- data/lib/snaptrade/models/net_contributions.rb +1 -1
- data/lib/snaptrade/models/net_dividend.rb +1 -1
- data/lib/snaptrade/models/notional_value.rb +1 -1
- data/lib/snaptrade/models/o_auth_webhook_base.rb +1 -1
- data/lib/snaptrade/models/option_brokerage_symbol.rb +1 -1
- data/lib/snaptrade/models/option_chain_inner.rb +1 -1
- data/lib/snaptrade/models/option_chain_inner_chain_per_root_inner.rb +1 -1
- data/lib/snaptrade/models/option_chain_inner_chain_per_root_inner_chain_per_strike_price_inner.rb +1 -1
- data/lib/snaptrade/models/option_impact.rb +1 -1
- data/lib/snaptrade/models/option_instrument.rb +1 -1
- data/lib/snaptrade/models/option_instrument_kind.rb +1 -1
- data/lib/snaptrade/models/option_leg.rb +1 -1
- data/lib/snaptrade/models/option_leg_action.rb +1 -1
- data/lib/snaptrade/models/option_quote.rb +1 -1
- data/lib/snaptrade/models/option_quote_greeks.rb +1 -1
- data/lib/snaptrade/models/option_strategy.rb +1 -1
- data/lib/snaptrade/models/option_strategy_legs_inner.rb +1 -1
- data/lib/snaptrade/models/option_type.rb +1 -1
- data/lib/snaptrade/models/options_position.rb +1 -1
- data/lib/snaptrade/models/options_position_currency.rb +1 -1
- data/lib/snaptrade/models/options_symbol.rb +1 -1
- data/lib/snaptrade/models/options_symbol_option_type.rb +1 -1
- data/lib/snaptrade/models/order_role.rb +1 -1
- data/lib/snaptrade/models/order_type_strict.rb +1 -1
- data/lib/snaptrade/models/order_updated_response.rb +1 -1
- data/lib/snaptrade/models/order_updated_response_order.rb +1 -1
- data/lib/snaptrade/models/other_instrument.rb +1 -1
- data/lib/snaptrade/models/other_instrument_kind.rb +1 -1
- data/lib/snaptrade/models/paginated_universal_activity.rb +1 -1
- data/lib/snaptrade/models/pagination_details.rb +1 -1
- data/lib/snaptrade/models/partner_data.rb +1 -1
- data/lib/snaptrade/models/past_value.rb +1 -1
- data/lib/snaptrade/models/performance_custom.rb +1 -1
- data/lib/snaptrade/models/position.rb +1 -1
- data/lib/snaptrade/models/position_currency.rb +1 -1
- data/lib/snaptrade/models/position_symbol.rb +1 -1
- data/lib/snaptrade/models/price_effect.rb +1 -1
- data/lib/snaptrade/models/rate_of_return_object.rb +1 -1
- data/lib/snaptrade/models/rate_of_return_response.rb +1 -1
- data/lib/snaptrade/models/recent_orders_response.rb +1 -1
- data/lib/snaptrade/models/schema_version.rb +1 -1
- data/lib/snaptrade/models/security_type.rb +1 -1
- data/lib/snaptrade/models/session_event.rb +1 -1
- data/lib/snaptrade/models/session_event_type.rb +1 -1
- data/lib/snaptrade/models/simple_order_form.rb +1 -1
- data/lib/snaptrade/models/simple_order_form_time_in_force.rb +1 -1
- data/lib/snaptrade/models/simple_order_form_type.rb +1 -1
- data/lib/snaptrade/models/snap_trade_holdings_account.rb +1 -1
- data/lib/snaptrade/models/snap_trade_holdings_total_value.rb +1 -1
- data/lib/snaptrade/models/snap_trade_login_user_request_body.rb +1 -1
- data/lib/snaptrade/models/snap_trade_register_user_request_body.rb +1 -1
- data/lib/snaptrade/models/snaptrade.rb +1 -1
- data/lib/snaptrade/models/status.rb +1 -1
- data/lib/snaptrade/models/stock_instrument.rb +1 -1
- data/lib/snaptrade/models/stock_instrument_figi_instrument.rb +1 -1
- data/lib/snaptrade/models/stock_instrument_kind.rb +1 -1
- data/lib/snaptrade/models/stop_loss.rb +1 -1
- data/lib/snaptrade/models/strategy_order_record.rb +1 -1
- data/lib/snaptrade/models/strategy_order_record_status.rb +1 -1
- data/lib/snaptrade/models/strategy_quotes.rb +1 -1
- data/lib/snaptrade/models/strategy_quotes_greek.rb +1 -1
- data/lib/snaptrade/models/strategy_type.rb +1 -1
- data/lib/snaptrade/models/sub_period_return_rate.rb +1 -1
- data/lib/snaptrade/models/symbol.rb +1 -1
- data/lib/snaptrade/models/symbol_currency.rb +1 -1
- data/lib/snaptrade/models/symbol_exchange.rb +1 -1
- data/lib/snaptrade/models/symbol_query.rb +1 -1
- data/lib/snaptrade/models/symbols_quotes_inner.rb +1 -1
- data/lib/snaptrade/models/take_profit.rb +1 -1
- data/lib/snaptrade/models/tax_lot.rb +1 -1
- data/lib/snaptrade/models/time_in_force_strict.rb +1 -1
- data/lib/snaptrade/models/timeframe.rb +1 -1
- data/lib/snaptrade/models/trade_detection_add_subscription_request.rb +1 -1
- data/lib/snaptrade/models/trade_detection_cancel_subscription_request.rb +1 -1
- data/lib/snaptrade/models/trade_detection_cancel_subscription_response.rb +1 -1
- data/lib/snaptrade/models/trade_detection_subscription.rb +1 -1
- data/lib/snaptrade/models/trading_instrument.rb +1 -1
- data/lib/snaptrade/models/trading_instrument_type.rb +1 -1
- data/lib/snaptrade/models/trading_search_cryptocurrency_pair_instruments200_response.rb +1 -1
- data/lib/snaptrade/models/trading_session.rb +1 -1
- data/lib/snaptrade/models/trailing_stop.rb +1 -1
- data/lib/snaptrade/models/transactions_status.rb +1 -1
- data/lib/snaptrade/models/type.rb +1 -1
- data/lib/snaptrade/models/underlying_cfd_instrument.rb +1 -1
- data/lib/snaptrade/models/underlying_option_instrument.rb +1 -1
- data/lib/snaptrade/models/underlying_symbol.rb +1 -1
- data/lib/snaptrade/models/underlying_symbol_exchange.rb +1 -1
- data/lib/snaptrade/models/underlying_symbol_type.rb +1 -1
- data/lib/snaptrade/models/universal_activity.rb +1 -1
- data/lib/snaptrade/models/universal_symbol.rb +1 -1
- data/lib/snaptrade/models/us_exchange.rb +1 -1
- data/lib/snaptrade/models/user_i_dand_secret.rb +1 -1
- data/lib/snaptrade/models/validated_trade_body.rb +1 -1
- data/lib/snaptrade/version.rb +2 -2
- data/lib/snaptrade.rb +2 -1
- data/snaptrade.gemspec +2 -2
- data/spec/api/account_information_api_spec.rb +1 -1
- data/spec/api/api_status_api_spec.rb +1 -1
- data/spec/api/authentication_api_spec.rb +1 -1
- data/spec/api/connections_api_spec.rb +1 -1
- data/spec/api/experimental_endpoints_api_spec.rb +1 -1
- data/spec/api/reference_data_api_spec.rb +1 -1
- data/spec/api/trading_api_spec.rb +1 -1
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/account_balance_spec.rb +1 -1
- data/spec/models/account_balance_total_spec.rb +1 -1
- data/spec/models/account_category_spec.rb +1 -1
- data/spec/models/account_holdings_account_spec.rb +1 -1
- data/spec/models/account_holdings_spec.rb +1 -1
- data/spec/models/account_information_get_user_account_order_detail_request_spec.rb +1 -1
- data/spec/models/account_order_record_child_brokerage_order_ids_spec.rb +1 -1
- data/spec/models/account_order_record_leg_instrument_spec.rb +1 -1
- data/spec/models/account_order_record_leg_spec.rb +1 -1
- data/spec/models/account_order_record_option_symbol_spec.rb +1 -1
- data/spec/models/account_order_record_quote_currency_spec.rb +1 -1
- data/spec/models/account_order_record_quote_universal_symbol_spec.rb +1 -1
- data/spec/models/account_order_record_spec.rb +1 -1
- data/spec/models/account_order_record_status_spec.rb +1 -1
- data/spec/models/account_order_record_status_v2_spec.rb +1 -1
- data/spec/models/account_order_record_trailing_stop_spec.rb +1 -1
- data/spec/models/account_order_record_universal_symbol_spec.rb +1 -1
- data/spec/models/account_order_record_v2_order_role_spec.rb +1 -1
- data/spec/models/account_order_record_v2_spec.rb +1 -1
- data/spec/models/account_orders_v2_response_spec.rb +1 -1
- data/spec/models/account_position_spec.rb +1 -1
- data/spec/models/account_simple_spec.rb +1 -1
- data/spec/models/account_spec.rb +1 -1
- data/spec/models/account_status_spec.rb +1 -1
- data/spec/models/account_sync_status_spec.rb +1 -1
- data/spec/models/account_universal_activity_currency_spec.rb +1 -1
- data/spec/models/account_universal_activity_currency_universal_symbol_spec.rb +1 -1
- data/spec/models/account_universal_activity_option_symbol_spec.rb +1 -1
- data/spec/models/account_universal_activity_spec.rb +1 -1
- data/spec/models/account_universal_activity_symbol_spec.rb +1 -1
- data/spec/models/account_value_history_item_spec.rb +1 -1
- data/spec/models/account_value_history_response_spec.rb +1 -1
- data/spec/models/action_strict_spec.rb +1 -1
- data/spec/models/action_strict_with_options_spec.rb +1 -1
- data/spec/models/adr_instrument_kind_spec.rb +1 -1
- data/spec/models/adr_instrument_spec.rb +1 -1
- data/spec/models/all_account_positions_response_data_freshness_spec.rb +1 -1
- data/spec/models/all_account_positions_response_spec.rb +1 -1
- data/spec/models/auth_type_spec.rb +1 -1
- data/spec/models/authentication_login_snap_trade_user200_response_spec.rb +1 -1
- data/spec/models/balance_currency_spec.rb +1 -1
- data/spec/models/balance_spec.rb +1 -1
- data/spec/models/brokerage_authorization_data_freshness_mode_spec.rb +1 -1
- data/spec/models/brokerage_authorization_disabled_confirmation_spec.rb +1 -1
- data/spec/models/brokerage_authorization_refresh_confirmation_spec.rb +1 -1
- data/spec/models/brokerage_authorization_spec.rb +1 -1
- data/spec/models/brokerage_authorization_transactions_sync_confirmation_spec.rb +1 -1
- data/spec/models/brokerage_authorization_type_read_only_brokerage_spec.rb +1 -1
- data/spec/models/brokerage_authorization_type_read_only_spec.rb +1 -1
- data/spec/models/brokerage_authorization_type_read_only_type_spec.rb +1 -1
- data/spec/models/brokerage_instrument_spec.rb +1 -1
- data/spec/models/brokerage_instruments_response_spec.rb +1 -1
- data/spec/models/brokerage_spec.rb +1 -1
- data/spec/models/brokerage_type_spec.rb +1 -1
- data/spec/models/cancel_order_response_spec.rb +1 -1
- data/spec/models/cash_change_direction_spec.rb +1 -1
- data/spec/models/cef_instrument_kind_spec.rb +1 -1
- data/spec/models/cef_instrument_spec.rb +1 -1
- data/spec/models/cfd_instrument_kind_spec.rb +1 -1
- data/spec/models/cfd_instrument_spec.rb +1 -1
- data/spec/models/child_brokerage_order_ids_spec.rb +1 -1
- data/spec/models/complex_order_leg_order_role_spec.rb +1 -1
- data/spec/models/complex_order_leg_spec.rb +1 -1
- data/spec/models/complex_order_response_spec.rb +1 -1
- data/spec/models/complex_order_response_type_spec.rb +1 -1
- data/spec/models/connection_account_spec.rb +1 -1
- data/spec/models/connection_account_sync_status_spec.rb +1 -1
- data/spec/models/connection_portal_version_spec.rb +1 -1
- data/spec/models/connection_type_spec.rb +1 -1
- data/spec/models/crypto_instrument_kind_spec.rb +1 -1
- data/spec/models/crypto_instrument_spec.rb +1 -1
- data/spec/models/crypto_order_form_spec.rb +1 -1
- data/spec/models/crypto_order_form_time_in_force_spec.rb +1 -1
- data/spec/models/crypto_order_form_type_spec.rb +1 -1
- data/spec/models/crypto_order_preview_estimated_fee_spec.rb +1 -1
- data/spec/models/crypto_order_preview_spec.rb +1 -1
- data/spec/models/crypto_trading_instrument_spec.rb +1 -1
- data/spec/models/crypto_trading_instrument_type_spec.rb +1 -1
- data/spec/models/cryptocurrency_pair_quote_spec.rb +1 -1
- data/spec/models/cryptocurrency_pair_spec.rb +1 -1
- data/spec/models/currency_spec.rb +1 -1
- data/spec/models/delete_connection_confirmation_spec.rb +1 -1
- data/spec/models/delete_user_response_spec.rb +1 -1
- data/spec/models/deposit_account_kind_spec.rb +1 -1
- data/spec/models/deposit_account_net_value_spec.rb +1 -1
- data/spec/models/deposit_account_spec.rb +1 -1
- data/spec/models/deposit_account_sync_status_spec.rb +1 -1
- data/spec/models/dividend_at_date_spec.rb +1 -1
- data/spec/models/encrypted_response_encrypted_message_data_spec.rb +1 -1
- data/spec/models/encrypted_response_spec.rb +1 -1
- data/spec/models/etf_instrument_kind_spec.rb +1 -1
- data/spec/models/etf_instrument_spec.rb +1 -1
- data/spec/models/exchange_rate_pairs_spec.rb +1 -1
- data/spec/models/exchange_spec.rb +1 -1
- data/spec/models/figi_instrument_spec.rb +1 -1
- data/spec/models/future_instrument_kind_spec.rb +1 -1
- data/spec/models/future_instrument_spec.rb +1 -1
- data/spec/models/holdings_status_spec.rb +1 -1
- data/spec/models/institution_spec.rb +1 -1
- data/spec/models/instrument_spec.rb +1 -1
- data/spec/models/investment_account_net_value_spec.rb +1 -1
- data/spec/models/investment_account_spec.rb +1 -1
- data/spec/models/kind_spec.rb +1 -1
- data/spec/models/line_of_credit_account_available_credit_spec.rb +35 -0
- data/spec/models/line_of_credit_account_kind_spec.rb +1 -1
- data/spec/models/line_of_credit_account_minimum_payment_amount_spec.rb +1 -1
- data/spec/models/line_of_credit_account_net_value_spec.rb +1 -1
- data/spec/models/line_of_credit_account_spec.rb +13 -1
- data/spec/models/line_of_credit_account_sync_status_spec.rb +1 -1
- data/spec/models/login_redirect_uri_spec.rb +1 -1
- data/spec/models/manual_trade_and_impact_spec.rb +1 -1
- data/spec/models/manual_trade_balance_spec.rb +1 -1
- data/spec/models/manual_trade_form_bracket_spec.rb +1 -1
- data/spec/models/manual_trade_form_complex_spec.rb +1 -1
- data/spec/models/manual_trade_form_complex_type_spec.rb +1 -1
- data/spec/models/manual_trade_form_notional_value_spec.rb +1 -1
- data/spec/models/manual_trade_form_spec.rb +1 -1
- data/spec/models/manual_trade_form_with_options_spec.rb +1 -1
- data/spec/models/manual_trade_impact_spec.rb +1 -1
- data/spec/models/manual_trade_place_time_in_force_strict_spec.rb +1 -1
- data/spec/models/manual_trade_replace_form_spec.rb +1 -1
- data/spec/models/manual_trade_spec.rb +1 -1
- data/spec/models/manual_trade_symbol_spec.rb +1 -1
- data/spec/models/mleg_action_strict_spec.rb +1 -1
- data/spec/models/mleg_instrument_type_spec.rb +1 -1
- data/spec/models/mleg_leg_spec.rb +1 -1
- data/spec/models/mleg_order_response_spec.rb +1 -1
- data/spec/models/mleg_order_type_strict_spec.rb +1 -1
- data/spec/models/mleg_price_effect_strict_spec.rb +1 -1
- data/spec/models/mleg_trade_form_spec.rb +1 -1
- data/spec/models/mleg_trading_instrument_spec.rb +1 -1
- data/spec/models/model400_failed_request_response_spec.rb +1 -1
- data/spec/models/model401_failed_request_response_spec.rb +1 -1
- data/spec/models/model402_brokerage_auth_already_disabled_exception_spec.rb +1 -1
- data/spec/models/model402_brokerage_auth_disabled_response_spec.rb +1 -1
- data/spec/models/model403_failed_request_response_spec.rb +1 -1
- data/spec/models/model403_feature_not_enabled_response_spec.rb +1 -1
- data/spec/models/model404_failed_request_response_spec.rb +1 -1
- data/spec/models/model425_failed_request_response_spec.rb +1 -1
- data/spec/models/model429_too_many_requests_response_spec.rb +1 -1
- data/spec/models/model500_unexpected_exception_response_spec.rb +1 -1
- data/spec/models/model501_not_implemented_response_spec.rb +1 -1
- data/spec/models/model503_brokerage_request_response_spec.rb +1 -1
- data/spec/models/monthly_dividends_spec.rb +1 -1
- data/spec/models/mutual_fund_instrument_kind_spec.rb +1 -1
- data/spec/models/mutual_fund_instrument_spec.rb +1 -1
- data/spec/models/net_contributions_spec.rb +1 -1
- data/spec/models/net_dividend_spec.rb +1 -1
- data/spec/models/notional_value_spec.rb +1 -1
- data/spec/models/o_auth_webhook_base_spec.rb +1 -1
- data/spec/models/option_brokerage_symbol_spec.rb +1 -1
- data/spec/models/option_chain_inner_chain_per_root_inner_chain_per_strike_price_inner_spec.rb +1 -1
- data/spec/models/option_chain_inner_chain_per_root_inner_spec.rb +1 -1
- data/spec/models/option_chain_inner_spec.rb +1 -1
- data/spec/models/option_impact_spec.rb +1 -1
- data/spec/models/option_instrument_kind_spec.rb +1 -1
- data/spec/models/option_instrument_spec.rb +1 -1
- data/spec/models/option_leg_action_spec.rb +1 -1
- data/spec/models/option_leg_spec.rb +1 -1
- data/spec/models/option_quote_greeks_spec.rb +1 -1
- data/spec/models/option_quote_spec.rb +1 -1
- data/spec/models/option_strategy_legs_inner_spec.rb +1 -1
- data/spec/models/option_strategy_spec.rb +1 -1
- data/spec/models/option_type_spec.rb +1 -1
- data/spec/models/options_position_currency_spec.rb +1 -1
- data/spec/models/options_position_spec.rb +1 -1
- data/spec/models/options_symbol_option_type_spec.rb +1 -1
- data/spec/models/options_symbol_spec.rb +1 -1
- data/spec/models/order_role_spec.rb +1 -1
- data/spec/models/order_type_strict_spec.rb +1 -1
- data/spec/models/order_updated_response_order_spec.rb +1 -1
- data/spec/models/order_updated_response_spec.rb +1 -1
- data/spec/models/other_instrument_kind_spec.rb +1 -1
- data/spec/models/other_instrument_spec.rb +1 -1
- data/spec/models/paginated_universal_activity_spec.rb +1 -1
- data/spec/models/pagination_details_spec.rb +1 -1
- data/spec/models/partner_data_spec.rb +1 -1
- data/spec/models/past_value_spec.rb +1 -1
- data/spec/models/performance_custom_spec.rb +1 -1
- data/spec/models/position_currency_spec.rb +1 -1
- data/spec/models/position_spec.rb +1 -1
- data/spec/models/position_symbol_spec.rb +1 -1
- data/spec/models/price_effect_spec.rb +1 -1
- data/spec/models/rate_of_return_object_spec.rb +1 -1
- data/spec/models/rate_of_return_response_spec.rb +1 -1
- data/spec/models/recent_orders_response_spec.rb +1 -1
- data/spec/models/schema_version_spec.rb +1 -1
- data/spec/models/security_type_spec.rb +1 -1
- data/spec/models/session_event_spec.rb +1 -1
- data/spec/models/session_event_type_spec.rb +1 -1
- data/spec/models/simple_order_form_spec.rb +1 -1
- data/spec/models/simple_order_form_time_in_force_spec.rb +1 -1
- data/spec/models/simple_order_form_type_spec.rb +1 -1
- data/spec/models/snap_trade_holdings_account_spec.rb +1 -1
- data/spec/models/snap_trade_holdings_total_value_spec.rb +1 -1
- data/spec/models/snap_trade_login_user_request_body_spec.rb +1 -1
- data/spec/models/snap_trade_register_user_request_body_spec.rb +1 -1
- data/spec/models/snaptrade_spec.rb +1 -1
- data/spec/models/status_spec.rb +1 -1
- data/spec/models/stock_instrument_figi_instrument_spec.rb +1 -1
- data/spec/models/stock_instrument_kind_spec.rb +1 -1
- data/spec/models/stock_instrument_spec.rb +1 -1
- data/spec/models/stop_loss_spec.rb +1 -1
- data/spec/models/strategy_order_record_spec.rb +1 -1
- data/spec/models/strategy_order_record_status_spec.rb +1 -1
- data/spec/models/strategy_quotes_greek_spec.rb +1 -1
- data/spec/models/strategy_quotes_spec.rb +1 -1
- data/spec/models/strategy_type_spec.rb +1 -1
- data/spec/models/sub_period_return_rate_spec.rb +1 -1
- data/spec/models/symbol_currency_spec.rb +1 -1
- data/spec/models/symbol_exchange_spec.rb +1 -1
- data/spec/models/symbol_query_spec.rb +1 -1
- data/spec/models/symbol_spec.rb +1 -1
- data/spec/models/symbols_quotes_inner_spec.rb +1 -1
- data/spec/models/take_profit_spec.rb +1 -1
- data/spec/models/tax_lot_spec.rb +1 -1
- data/spec/models/time_in_force_strict_spec.rb +1 -1
- data/spec/models/timeframe_spec.rb +1 -1
- data/spec/models/trade_detection_add_subscription_request_spec.rb +1 -1
- data/spec/models/trade_detection_cancel_subscription_request_spec.rb +1 -1
- data/spec/models/trade_detection_cancel_subscription_response_spec.rb +1 -1
- data/spec/models/trade_detection_subscription_spec.rb +1 -1
- data/spec/models/trading_instrument_spec.rb +1 -1
- data/spec/models/trading_instrument_type_spec.rb +1 -1
- data/spec/models/trading_search_cryptocurrency_pair_instruments200_response_spec.rb +1 -1
- data/spec/models/trading_session_spec.rb +1 -1
- data/spec/models/trailing_stop_spec.rb +1 -1
- data/spec/models/transactions_status_spec.rb +1 -1
- data/spec/models/type_spec.rb +1 -1
- data/spec/models/underlying_cfd_instrument_spec.rb +1 -1
- data/spec/models/underlying_option_instrument_spec.rb +1 -1
- data/spec/models/underlying_symbol_exchange_spec.rb +1 -1
- data/spec/models/underlying_symbol_spec.rb +1 -1
- data/spec/models/underlying_symbol_type_spec.rb +1 -1
- data/spec/models/universal_activity_spec.rb +1 -1
- data/spec/models/universal_symbol_spec.rb +1 -1
- data/spec/models/us_exchange_spec.rb +1 -1
- data/spec/models/user_i_dand_secret_spec.rb +1 -1
- data/spec/models/validated_trade_body_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +257 -217
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#SnapTrade
|
|
3
3
|
|
|
4
|
-
#Connect brokerage accounts to your app for live positions and trading
|
|
4
|
+
#Connect brokerage accounts to your app for live positions and trading. ## Rate limiting Two limits apply to requests signed with your `clientId`. The stricter one wins, and exceeding either returns `429 Too Many Requests`. - **Customer-level** — 250 requests/minute by default, scoped to your `clientId` and applied across all endpoints. Reported in `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset`. - **Account-level** — 10 requests/minute per account, scoped to (`clientId`, `accountId`). All covered operations for one account draw on the same bucket — reading balances and reading positions share it — and enforcement does not depend on the HTTP method, so updating an account consumes the same bucket as reading it. Only enforced for Personal users, and only for integrations it has been rolled out to — it is not yet in force for every Personal integration. It also does not apply on every operation that documents a 429 below. Where it applies it is reported in `X-RateLimit-Account-Limit`, `X-RateLimit-Account-Remaining` and `X-RateLimit-Account-Reset`. Do not read the absence of those headers as proof the limit is off — some configurations omit the rate limit headers while still enforcing the limit, so header absence tells you nothing about your allowance. On a 429, `X-RateLimit-Remaining: 0` means you hit the customer-level limit and `X-RateLimit-Account-Remaining: 0` means the account-level one. Wait for the corresponding `*-Reset` value (seconds) before retrying, or fall back to exponential backoff with jitter. Not every 429 is explained by those headers. A separate per-authenticated-user limit, reported in no `X-RateLimit-*` header, covers OAuth-authenticated requests and signed requests in configurations where the customer-level limit is not in effect — on the operations that use the default throttles. A few operations override those and are governed by the customer-level limit alone. The two do not stack: a signed request governed by the customer-level limit above is not additionally subject to the per-user one. If a 429 arrives with no header at zero — or with no `X-RateLimit-*` headers at all — honour `Retry-After` and back off. Treat the remaining counts as a hint, not a guarantee that the next request will succeed. Because the customer-level limit applies everywhere, any signed request can return 429. **OAuth-authenticated requests are an exception.** They are not subject to the customer-level limit and do not receive `X-RateLimit-Limit`, `X-RateLimit-Remaining` or `X-RateLimit-Reset` — do not wait on those headers or design around a customer-level allowance on this path. The account-level limit still applies to them on the account-data endpoints above, reported in the `X-RateLimit-Account-*` headers. On operations using the default throttles the per-user limit above applies to them as well, so an OAuth request can be rejected while the account headers still show capacity; on the few operations that override those throttles, OAuth callers have no per-user ceiling at all. Drive retries from `Retry-After` and exponential backoff with jitter rather than from the headers. See https://docs.snaptrade.com/docs/ratelimiting.
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
|
7
7
|
Contact: api@snaptrade.com
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#SnapTrade
|
|
3
3
|
|
|
4
|
-
#Connect brokerage accounts to your app for live positions and trading
|
|
4
|
+
#Connect brokerage accounts to your app for live positions and trading. ## Rate limiting Two limits apply to requests signed with your `clientId`. The stricter one wins, and exceeding either returns `429 Too Many Requests`. - **Customer-level** — 250 requests/minute by default, scoped to your `clientId` and applied across all endpoints. Reported in `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset`. - **Account-level** — 10 requests/minute per account, scoped to (`clientId`, `accountId`). All covered operations for one account draw on the same bucket — reading balances and reading positions share it — and enforcement does not depend on the HTTP method, so updating an account consumes the same bucket as reading it. Only enforced for Personal users, and only for integrations it has been rolled out to — it is not yet in force for every Personal integration. It also does not apply on every operation that documents a 429 below. Where it applies it is reported in `X-RateLimit-Account-Limit`, `X-RateLimit-Account-Remaining` and `X-RateLimit-Account-Reset`. Do not read the absence of those headers as proof the limit is off — some configurations omit the rate limit headers while still enforcing the limit, so header absence tells you nothing about your allowance. On a 429, `X-RateLimit-Remaining: 0` means you hit the customer-level limit and `X-RateLimit-Account-Remaining: 0` means the account-level one. Wait for the corresponding `*-Reset` value (seconds) before retrying, or fall back to exponential backoff with jitter. Not every 429 is explained by those headers. A separate per-authenticated-user limit, reported in no `X-RateLimit-*` header, covers OAuth-authenticated requests and signed requests in configurations where the customer-level limit is not in effect — on the operations that use the default throttles. A few operations override those and are governed by the customer-level limit alone. The two do not stack: a signed request governed by the customer-level limit above is not additionally subject to the per-user one. If a 429 arrives with no header at zero — or with no `X-RateLimit-*` headers at all — honour `Retry-After` and back off. Treat the remaining counts as a hint, not a guarantee that the next request will succeed. Because the customer-level limit applies everywhere, any signed request can return 429. **OAuth-authenticated requests are an exception.** They are not subject to the customer-level limit and do not receive `X-RateLimit-Limit`, `X-RateLimit-Remaining` or `X-RateLimit-Reset` — do not wait on those headers or design around a customer-level allowance on this path. The account-level limit still applies to them on the account-data endpoints above, reported in the `X-RateLimit-Account-*` headers. On operations using the default throttles the per-user limit above applies to them as well, so an OAuth request can be rejected while the account headers still show capacity; on the few operations that override those throttles, OAuth callers have no per-user ceiling at all. Drive retries from `Retry-After` and exponential backoff with jitter rather than from the headers. See https://docs.snaptrade.com/docs/ratelimiting.
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
|
7
7
|
Contact: api@snaptrade.com
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#SnapTrade
|
|
3
3
|
|
|
4
|
-
#Connect brokerage accounts to your app for live positions and trading
|
|
4
|
+
#Connect brokerage accounts to your app for live positions and trading. ## Rate limiting Two limits apply to requests signed with your `clientId`. The stricter one wins, and exceeding either returns `429 Too Many Requests`. - **Customer-level** — 250 requests/minute by default, scoped to your `clientId` and applied across all endpoints. Reported in `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset`. - **Account-level** — 10 requests/minute per account, scoped to (`clientId`, `accountId`). All covered operations for one account draw on the same bucket — reading balances and reading positions share it — and enforcement does not depend on the HTTP method, so updating an account consumes the same bucket as reading it. Only enforced for Personal users, and only for integrations it has been rolled out to — it is not yet in force for every Personal integration. It also does not apply on every operation that documents a 429 below. Where it applies it is reported in `X-RateLimit-Account-Limit`, `X-RateLimit-Account-Remaining` and `X-RateLimit-Account-Reset`. Do not read the absence of those headers as proof the limit is off — some configurations omit the rate limit headers while still enforcing the limit, so header absence tells you nothing about your allowance. On a 429, `X-RateLimit-Remaining: 0` means you hit the customer-level limit and `X-RateLimit-Account-Remaining: 0` means the account-level one. Wait for the corresponding `*-Reset` value (seconds) before retrying, or fall back to exponential backoff with jitter. Not every 429 is explained by those headers. A separate per-authenticated-user limit, reported in no `X-RateLimit-*` header, covers OAuth-authenticated requests and signed requests in configurations where the customer-level limit is not in effect — on the operations that use the default throttles. A few operations override those and are governed by the customer-level limit alone. The two do not stack: a signed request governed by the customer-level limit above is not additionally subject to the per-user one. If a 429 arrives with no header at zero — or with no `X-RateLimit-*` headers at all — honour `Retry-After` and back off. Treat the remaining counts as a hint, not a guarantee that the next request will succeed. Because the customer-level limit applies everywhere, any signed request can return 429. **OAuth-authenticated requests are an exception.** They are not subject to the customer-level limit and do not receive `X-RateLimit-Limit`, `X-RateLimit-Remaining` or `X-RateLimit-Reset` — do not wait on those headers or design around a customer-level allowance on this path. The account-level limit still applies to them on the account-data endpoints above, reported in the `X-RateLimit-Account-*` headers. On operations using the default throttles the per-user limit above applies to them as well, so an OAuth request can be rejected while the account headers still show capacity; on the few operations that override those throttles, OAuth callers have no per-user ceiling at all. Drive retries from `Retry-After` and exponential backoff with jitter rather than from the headers. See https://docs.snaptrade.com/docs/ratelimiting.
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
|
7
7
|
Contact: api@snaptrade.com
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#SnapTrade
|
|
3
3
|
|
|
4
|
-
#Connect brokerage accounts to your app for live positions and trading
|
|
4
|
+
#Connect brokerage accounts to your app for live positions and trading. ## Rate limiting Two limits apply to requests signed with your `clientId`. The stricter one wins, and exceeding either returns `429 Too Many Requests`. - **Customer-level** — 250 requests/minute by default, scoped to your `clientId` and applied across all endpoints. Reported in `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset`. - **Account-level** — 10 requests/minute per account, scoped to (`clientId`, `accountId`). All covered operations for one account draw on the same bucket — reading balances and reading positions share it — and enforcement does not depend on the HTTP method, so updating an account consumes the same bucket as reading it. Only enforced for Personal users, and only for integrations it has been rolled out to — it is not yet in force for every Personal integration. It also does not apply on every operation that documents a 429 below. Where it applies it is reported in `X-RateLimit-Account-Limit`, `X-RateLimit-Account-Remaining` and `X-RateLimit-Account-Reset`. Do not read the absence of those headers as proof the limit is off — some configurations omit the rate limit headers while still enforcing the limit, so header absence tells you nothing about your allowance. On a 429, `X-RateLimit-Remaining: 0` means you hit the customer-level limit and `X-RateLimit-Account-Remaining: 0` means the account-level one. Wait for the corresponding `*-Reset` value (seconds) before retrying, or fall back to exponential backoff with jitter. Not every 429 is explained by those headers. A separate per-authenticated-user limit, reported in no `X-RateLimit-*` header, covers OAuth-authenticated requests and signed requests in configurations where the customer-level limit is not in effect — on the operations that use the default throttles. A few operations override those and are governed by the customer-level limit alone. The two do not stack: a signed request governed by the customer-level limit above is not additionally subject to the per-user one. If a 429 arrives with no header at zero — or with no `X-RateLimit-*` headers at all — honour `Retry-After` and back off. Treat the remaining counts as a hint, not a guarantee that the next request will succeed. Because the customer-level limit applies everywhere, any signed request can return 429. **OAuth-authenticated requests are an exception.** They are not subject to the customer-level limit and do not receive `X-RateLimit-Limit`, `X-RateLimit-Remaining` or `X-RateLimit-Reset` — do not wait on those headers or design around a customer-level allowance on this path. The account-level limit still applies to them on the account-data endpoints above, reported in the `X-RateLimit-Account-*` headers. On operations using the default throttles the per-user limit above applies to them as well, so an OAuth request can be rejected while the account headers still show capacity; on the few operations that override those throttles, OAuth callers have no per-user ceiling at all. Drive retries from `Retry-After` and exponential backoff with jitter rather than from the headers. See https://docs.snaptrade.com/docs/ratelimiting.
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
|
7
7
|
Contact: api@snaptrade.com
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#SnapTrade
|
|
3
3
|
|
|
4
|
-
#Connect brokerage accounts to your app for live positions and trading
|
|
4
|
+
#Connect brokerage accounts to your app for live positions and trading. ## Rate limiting Two limits apply to requests signed with your `clientId`. The stricter one wins, and exceeding either returns `429 Too Many Requests`. - **Customer-level** — 250 requests/minute by default, scoped to your `clientId` and applied across all endpoints. Reported in `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset`. - **Account-level** — 10 requests/minute per account, scoped to (`clientId`, `accountId`). All covered operations for one account draw on the same bucket — reading balances and reading positions share it — and enforcement does not depend on the HTTP method, so updating an account consumes the same bucket as reading it. Only enforced for Personal users, and only for integrations it has been rolled out to — it is not yet in force for every Personal integration. It also does not apply on every operation that documents a 429 below. Where it applies it is reported in `X-RateLimit-Account-Limit`, `X-RateLimit-Account-Remaining` and `X-RateLimit-Account-Reset`. Do not read the absence of those headers as proof the limit is off — some configurations omit the rate limit headers while still enforcing the limit, so header absence tells you nothing about your allowance. On a 429, `X-RateLimit-Remaining: 0` means you hit the customer-level limit and `X-RateLimit-Account-Remaining: 0` means the account-level one. Wait for the corresponding `*-Reset` value (seconds) before retrying, or fall back to exponential backoff with jitter. Not every 429 is explained by those headers. A separate per-authenticated-user limit, reported in no `X-RateLimit-*` header, covers OAuth-authenticated requests and signed requests in configurations where the customer-level limit is not in effect — on the operations that use the default throttles. A few operations override those and are governed by the customer-level limit alone. The two do not stack: a signed request governed by the customer-level limit above is not additionally subject to the per-user one. If a 429 arrives with no header at zero — or with no `X-RateLimit-*` headers at all — honour `Retry-After` and back off. Treat the remaining counts as a hint, not a guarantee that the next request will succeed. Because the customer-level limit applies everywhere, any signed request can return 429. **OAuth-authenticated requests are an exception.** They are not subject to the customer-level limit and do not receive `X-RateLimit-Limit`, `X-RateLimit-Remaining` or `X-RateLimit-Reset` — do not wait on those headers or design around a customer-level allowance on this path. The account-level limit still applies to them on the account-data endpoints above, reported in the `X-RateLimit-Account-*` headers. On operations using the default throttles the per-user limit above applies to them as well, so an OAuth request can be rejected while the account headers still show capacity; on the few operations that override those throttles, OAuth callers have no per-user ceiling at all. Drive retries from `Retry-After` and exponential backoff with jitter rather than from the headers. See https://docs.snaptrade.com/docs/ratelimiting.
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
|
7
7
|
Contact: api@snaptrade.com
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#SnapTrade
|
|
3
3
|
|
|
4
|
-
#Connect brokerage accounts to your app for live positions and trading
|
|
4
|
+
#Connect brokerage accounts to your app for live positions and trading. ## Rate limiting Two limits apply to requests signed with your `clientId`. The stricter one wins, and exceeding either returns `429 Too Many Requests`. - **Customer-level** — 250 requests/minute by default, scoped to your `clientId` and applied across all endpoints. Reported in `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset`. - **Account-level** — 10 requests/minute per account, scoped to (`clientId`, `accountId`). All covered operations for one account draw on the same bucket — reading balances and reading positions share it — and enforcement does not depend on the HTTP method, so updating an account consumes the same bucket as reading it. Only enforced for Personal users, and only for integrations it has been rolled out to — it is not yet in force for every Personal integration. It also does not apply on every operation that documents a 429 below. Where it applies it is reported in `X-RateLimit-Account-Limit`, `X-RateLimit-Account-Remaining` and `X-RateLimit-Account-Reset`. Do not read the absence of those headers as proof the limit is off — some configurations omit the rate limit headers while still enforcing the limit, so header absence tells you nothing about your allowance. On a 429, `X-RateLimit-Remaining: 0` means you hit the customer-level limit and `X-RateLimit-Account-Remaining: 0` means the account-level one. Wait for the corresponding `*-Reset` value (seconds) before retrying, or fall back to exponential backoff with jitter. Not every 429 is explained by those headers. A separate per-authenticated-user limit, reported in no `X-RateLimit-*` header, covers OAuth-authenticated requests and signed requests in configurations where the customer-level limit is not in effect — on the operations that use the default throttles. A few operations override those and are governed by the customer-level limit alone. The two do not stack: a signed request governed by the customer-level limit above is not additionally subject to the per-user one. If a 429 arrives with no header at zero — or with no `X-RateLimit-*` headers at all — honour `Retry-After` and back off. Treat the remaining counts as a hint, not a guarantee that the next request will succeed. Because the customer-level limit applies everywhere, any signed request can return 429. **OAuth-authenticated requests are an exception.** They are not subject to the customer-level limit and do not receive `X-RateLimit-Limit`, `X-RateLimit-Remaining` or `X-RateLimit-Reset` — do not wait on those headers or design around a customer-level allowance on this path. The account-level limit still applies to them on the account-data endpoints above, reported in the `X-RateLimit-Account-*` headers. On operations using the default throttles the per-user limit above applies to them as well, so an OAuth request can be rejected while the account headers still show capacity; on the few operations that override those throttles, OAuth callers have no per-user ceiling at all. Drive retries from `Retry-After` and exponential backoff with jitter rather than from the headers. See https://docs.snaptrade.com/docs/ratelimiting.
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
|
7
7
|
Contact: api@snaptrade.com
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#SnapTrade
|
|
3
3
|
|
|
4
|
-
#Connect brokerage accounts to your app for live positions and trading
|
|
4
|
+
#Connect brokerage accounts to your app for live positions and trading. ## Rate limiting Two limits apply to requests signed with your `clientId`. The stricter one wins, and exceeding either returns `429 Too Many Requests`. - **Customer-level** — 250 requests/minute by default, scoped to your `clientId` and applied across all endpoints. Reported in `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset`. - **Account-level** — 10 requests/minute per account, scoped to (`clientId`, `accountId`). All covered operations for one account draw on the same bucket — reading balances and reading positions share it — and enforcement does not depend on the HTTP method, so updating an account consumes the same bucket as reading it. Only enforced for Personal users, and only for integrations it has been rolled out to — it is not yet in force for every Personal integration. It also does not apply on every operation that documents a 429 below. Where it applies it is reported in `X-RateLimit-Account-Limit`, `X-RateLimit-Account-Remaining` and `X-RateLimit-Account-Reset`. Do not read the absence of those headers as proof the limit is off — some configurations omit the rate limit headers while still enforcing the limit, so header absence tells you nothing about your allowance. On a 429, `X-RateLimit-Remaining: 0` means you hit the customer-level limit and `X-RateLimit-Account-Remaining: 0` means the account-level one. Wait for the corresponding `*-Reset` value (seconds) before retrying, or fall back to exponential backoff with jitter. Not every 429 is explained by those headers. A separate per-authenticated-user limit, reported in no `X-RateLimit-*` header, covers OAuth-authenticated requests and signed requests in configurations where the customer-level limit is not in effect — on the operations that use the default throttles. A few operations override those and are governed by the customer-level limit alone. The two do not stack: a signed request governed by the customer-level limit above is not additionally subject to the per-user one. If a 429 arrives with no header at zero — or with no `X-RateLimit-*` headers at all — honour `Retry-After` and back off. Treat the remaining counts as a hint, not a guarantee that the next request will succeed. Because the customer-level limit applies everywhere, any signed request can return 429. **OAuth-authenticated requests are an exception.** They are not subject to the customer-level limit and do not receive `X-RateLimit-Limit`, `X-RateLimit-Remaining` or `X-RateLimit-Reset` — do not wait on those headers or design around a customer-level allowance on this path. The account-level limit still applies to them on the account-data endpoints above, reported in the `X-RateLimit-Account-*` headers. On operations using the default throttles the per-user limit above applies to them as well, so an OAuth request can be rejected while the account headers still show capacity; on the few operations that override those throttles, OAuth callers have no per-user ceiling at all. Drive retries from `Retry-After` and exponential backoff with jitter rather than from the headers. See https://docs.snaptrade.com/docs/ratelimiting.
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
|
7
7
|
Contact: api@snaptrade.com
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#SnapTrade
|
|
3
3
|
|
|
4
|
-
#Connect brokerage accounts to your app for live positions and trading
|
|
4
|
+
#Connect brokerage accounts to your app for live positions and trading. ## Rate limiting Two limits apply to requests signed with your `clientId`. The stricter one wins, and exceeding either returns `429 Too Many Requests`. - **Customer-level** — 250 requests/minute by default, scoped to your `clientId` and applied across all endpoints. Reported in `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset`. - **Account-level** — 10 requests/minute per account, scoped to (`clientId`, `accountId`). All covered operations for one account draw on the same bucket — reading balances and reading positions share it — and enforcement does not depend on the HTTP method, so updating an account consumes the same bucket as reading it. Only enforced for Personal users, and only for integrations it has been rolled out to — it is not yet in force for every Personal integration. It also does not apply on every operation that documents a 429 below. Where it applies it is reported in `X-RateLimit-Account-Limit`, `X-RateLimit-Account-Remaining` and `X-RateLimit-Account-Reset`. Do not read the absence of those headers as proof the limit is off — some configurations omit the rate limit headers while still enforcing the limit, so header absence tells you nothing about your allowance. On a 429, `X-RateLimit-Remaining: 0` means you hit the customer-level limit and `X-RateLimit-Account-Remaining: 0` means the account-level one. Wait for the corresponding `*-Reset` value (seconds) before retrying, or fall back to exponential backoff with jitter. Not every 429 is explained by those headers. A separate per-authenticated-user limit, reported in no `X-RateLimit-*` header, covers OAuth-authenticated requests and signed requests in configurations where the customer-level limit is not in effect — on the operations that use the default throttles. A few operations override those and are governed by the customer-level limit alone. The two do not stack: a signed request governed by the customer-level limit above is not additionally subject to the per-user one. If a 429 arrives with no header at zero — or with no `X-RateLimit-*` headers at all — honour `Retry-After` and back off. Treat the remaining counts as a hint, not a guarantee that the next request will succeed. Because the customer-level limit applies everywhere, any signed request can return 429. **OAuth-authenticated requests are an exception.** They are not subject to the customer-level limit and do not receive `X-RateLimit-Limit`, `X-RateLimit-Remaining` or `X-RateLimit-Reset` — do not wait on those headers or design around a customer-level allowance on this path. The account-level limit still applies to them on the account-data endpoints above, reported in the `X-RateLimit-Account-*` headers. On operations using the default throttles the per-user limit above applies to them as well, so an OAuth request can be rejected while the account headers still show capacity; on the few operations that override those throttles, OAuth callers have no per-user ceiling at all. Drive retries from `Retry-After` and exponential backoff with jitter rather than from the headers. See https://docs.snaptrade.com/docs/ratelimiting.
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
|
7
7
|
Contact: api@snaptrade.com
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#SnapTrade
|
|
3
3
|
|
|
4
|
-
#Connect brokerage accounts to your app for live positions and trading
|
|
4
|
+
#Connect brokerage accounts to your app for live positions and trading. ## Rate limiting Two limits apply to requests signed with your `clientId`. The stricter one wins, and exceeding either returns `429 Too Many Requests`. - **Customer-level** — 250 requests/minute by default, scoped to your `clientId` and applied across all endpoints. Reported in `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset`. - **Account-level** — 10 requests/minute per account, scoped to (`clientId`, `accountId`). All covered operations for one account draw on the same bucket — reading balances and reading positions share it — and enforcement does not depend on the HTTP method, so updating an account consumes the same bucket as reading it. Only enforced for Personal users, and only for integrations it has been rolled out to — it is not yet in force for every Personal integration. It also does not apply on every operation that documents a 429 below. Where it applies it is reported in `X-RateLimit-Account-Limit`, `X-RateLimit-Account-Remaining` and `X-RateLimit-Account-Reset`. Do not read the absence of those headers as proof the limit is off — some configurations omit the rate limit headers while still enforcing the limit, so header absence tells you nothing about your allowance. On a 429, `X-RateLimit-Remaining: 0` means you hit the customer-level limit and `X-RateLimit-Account-Remaining: 0` means the account-level one. Wait for the corresponding `*-Reset` value (seconds) before retrying, or fall back to exponential backoff with jitter. Not every 429 is explained by those headers. A separate per-authenticated-user limit, reported in no `X-RateLimit-*` header, covers OAuth-authenticated requests and signed requests in configurations where the customer-level limit is not in effect — on the operations that use the default throttles. A few operations override those and are governed by the customer-level limit alone. The two do not stack: a signed request governed by the customer-level limit above is not additionally subject to the per-user one. If a 429 arrives with no header at zero — or with no `X-RateLimit-*` headers at all — honour `Retry-After` and back off. Treat the remaining counts as a hint, not a guarantee that the next request will succeed. Because the customer-level limit applies everywhere, any signed request can return 429. **OAuth-authenticated requests are an exception.** They are not subject to the customer-level limit and do not receive `X-RateLimit-Limit`, `X-RateLimit-Remaining` or `X-RateLimit-Reset` — do not wait on those headers or design around a customer-level allowance on this path. The account-level limit still applies to them on the account-data endpoints above, reported in the `X-RateLimit-Account-*` headers. On operations using the default throttles the per-user limit above applies to them as well, so an OAuth request can be rejected while the account headers still show capacity; on the few operations that override those throttles, OAuth callers have no per-user ceiling at all. Drive retries from `Retry-After` and exponential backoff with jitter rather than from the headers. See https://docs.snaptrade.com/docs/ratelimiting.
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
|
7
7
|
Contact: api@snaptrade.com
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#SnapTrade
|
|
3
3
|
|
|
4
|
-
#Connect brokerage accounts to your app for live positions and trading
|
|
4
|
+
#Connect brokerage accounts to your app for live positions and trading. ## Rate limiting Two limits apply to requests signed with your `clientId`. The stricter one wins, and exceeding either returns `429 Too Many Requests`. - **Customer-level** — 250 requests/minute by default, scoped to your `clientId` and applied across all endpoints. Reported in `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset`. - **Account-level** — 10 requests/minute per account, scoped to (`clientId`, `accountId`). All covered operations for one account draw on the same bucket — reading balances and reading positions share it — and enforcement does not depend on the HTTP method, so updating an account consumes the same bucket as reading it. Only enforced for Personal users, and only for integrations it has been rolled out to — it is not yet in force for every Personal integration. It also does not apply on every operation that documents a 429 below. Where it applies it is reported in `X-RateLimit-Account-Limit`, `X-RateLimit-Account-Remaining` and `X-RateLimit-Account-Reset`. Do not read the absence of those headers as proof the limit is off — some configurations omit the rate limit headers while still enforcing the limit, so header absence tells you nothing about your allowance. On a 429, `X-RateLimit-Remaining: 0` means you hit the customer-level limit and `X-RateLimit-Account-Remaining: 0` means the account-level one. Wait for the corresponding `*-Reset` value (seconds) before retrying, or fall back to exponential backoff with jitter. Not every 429 is explained by those headers. A separate per-authenticated-user limit, reported in no `X-RateLimit-*` header, covers OAuth-authenticated requests and signed requests in configurations where the customer-level limit is not in effect — on the operations that use the default throttles. A few operations override those and are governed by the customer-level limit alone. The two do not stack: a signed request governed by the customer-level limit above is not additionally subject to the per-user one. If a 429 arrives with no header at zero — or with no `X-RateLimit-*` headers at all — honour `Retry-After` and back off. Treat the remaining counts as a hint, not a guarantee that the next request will succeed. Because the customer-level limit applies everywhere, any signed request can return 429. **OAuth-authenticated requests are an exception.** They are not subject to the customer-level limit and do not receive `X-RateLimit-Limit`, `X-RateLimit-Remaining` or `X-RateLimit-Reset` — do not wait on those headers or design around a customer-level allowance on this path. The account-level limit still applies to them on the account-data endpoints above, reported in the `X-RateLimit-Account-*` headers. On operations using the default throttles the per-user limit above applies to them as well, so an OAuth request can be rejected while the account headers still show capacity; on the few operations that override those throttles, OAuth callers have no per-user ceiling at all. Drive retries from `Retry-After` and exponential backoff with jitter rather than from the headers. See https://docs.snaptrade.com/docs/ratelimiting.
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
|
7
7
|
Contact: api@snaptrade.com
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#SnapTrade
|
|
3
3
|
|
|
4
|
-
#Connect brokerage accounts to your app for live positions and trading
|
|
4
|
+
#Connect brokerage accounts to your app for live positions and trading. ## Rate limiting Two limits apply to requests signed with your `clientId`. The stricter one wins, and exceeding either returns `429 Too Many Requests`. - **Customer-level** — 250 requests/minute by default, scoped to your `clientId` and applied across all endpoints. Reported in `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset`. - **Account-level** — 10 requests/minute per account, scoped to (`clientId`, `accountId`). All covered operations for one account draw on the same bucket — reading balances and reading positions share it — and enforcement does not depend on the HTTP method, so updating an account consumes the same bucket as reading it. Only enforced for Personal users, and only for integrations it has been rolled out to — it is not yet in force for every Personal integration. It also does not apply on every operation that documents a 429 below. Where it applies it is reported in `X-RateLimit-Account-Limit`, `X-RateLimit-Account-Remaining` and `X-RateLimit-Account-Reset`. Do not read the absence of those headers as proof the limit is off — some configurations omit the rate limit headers while still enforcing the limit, so header absence tells you nothing about your allowance. On a 429, `X-RateLimit-Remaining: 0` means you hit the customer-level limit and `X-RateLimit-Account-Remaining: 0` means the account-level one. Wait for the corresponding `*-Reset` value (seconds) before retrying, or fall back to exponential backoff with jitter. Not every 429 is explained by those headers. A separate per-authenticated-user limit, reported in no `X-RateLimit-*` header, covers OAuth-authenticated requests and signed requests in configurations where the customer-level limit is not in effect — on the operations that use the default throttles. A few operations override those and are governed by the customer-level limit alone. The two do not stack: a signed request governed by the customer-level limit above is not additionally subject to the per-user one. If a 429 arrives with no header at zero — or with no `X-RateLimit-*` headers at all — honour `Retry-After` and back off. Treat the remaining counts as a hint, not a guarantee that the next request will succeed. Because the customer-level limit applies everywhere, any signed request can return 429. **OAuth-authenticated requests are an exception.** They are not subject to the customer-level limit and do not receive `X-RateLimit-Limit`, `X-RateLimit-Remaining` or `X-RateLimit-Reset` — do not wait on those headers or design around a customer-level allowance on this path. The account-level limit still applies to them on the account-data endpoints above, reported in the `X-RateLimit-Account-*` headers. On operations using the default throttles the per-user limit above applies to them as well, so an OAuth request can be rejected while the account headers still show capacity; on the few operations that override those throttles, OAuth callers have no per-user ceiling at all. Drive retries from `Retry-After` and exponential backoff with jitter rather than from the headers. See https://docs.snaptrade.com/docs/ratelimiting.
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
|
7
7
|
Contact: api@snaptrade.com
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#SnapTrade
|
|
3
3
|
|
|
4
|
-
#Connect brokerage accounts to your app for live positions and trading
|
|
4
|
+
#Connect brokerage accounts to your app for live positions and trading. ## Rate limiting Two limits apply to requests signed with your `clientId`. The stricter one wins, and exceeding either returns `429 Too Many Requests`. - **Customer-level** — 250 requests/minute by default, scoped to your `clientId` and applied across all endpoints. Reported in `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset`. - **Account-level** — 10 requests/minute per account, scoped to (`clientId`, `accountId`). All covered operations for one account draw on the same bucket — reading balances and reading positions share it — and enforcement does not depend on the HTTP method, so updating an account consumes the same bucket as reading it. Only enforced for Personal users, and only for integrations it has been rolled out to — it is not yet in force for every Personal integration. It also does not apply on every operation that documents a 429 below. Where it applies it is reported in `X-RateLimit-Account-Limit`, `X-RateLimit-Account-Remaining` and `X-RateLimit-Account-Reset`. Do not read the absence of those headers as proof the limit is off — some configurations omit the rate limit headers while still enforcing the limit, so header absence tells you nothing about your allowance. On a 429, `X-RateLimit-Remaining: 0` means you hit the customer-level limit and `X-RateLimit-Account-Remaining: 0` means the account-level one. Wait for the corresponding `*-Reset` value (seconds) before retrying, or fall back to exponential backoff with jitter. Not every 429 is explained by those headers. A separate per-authenticated-user limit, reported in no `X-RateLimit-*` header, covers OAuth-authenticated requests and signed requests in configurations where the customer-level limit is not in effect — on the operations that use the default throttles. A few operations override those and are governed by the customer-level limit alone. The two do not stack: a signed request governed by the customer-level limit above is not additionally subject to the per-user one. If a 429 arrives with no header at zero — or with no `X-RateLimit-*` headers at all — honour `Retry-After` and back off. Treat the remaining counts as a hint, not a guarantee that the next request will succeed. Because the customer-level limit applies everywhere, any signed request can return 429. **OAuth-authenticated requests are an exception.** They are not subject to the customer-level limit and do not receive `X-RateLimit-Limit`, `X-RateLimit-Remaining` or `X-RateLimit-Reset` — do not wait on those headers or design around a customer-level allowance on this path. The account-level limit still applies to them on the account-data endpoints above, reported in the `X-RateLimit-Account-*` headers. On operations using the default throttles the per-user limit above applies to them as well, so an OAuth request can be rejected while the account headers still show capacity; on the few operations that override those throttles, OAuth callers have no per-user ceiling at all. Drive retries from `Retry-After` and exponential backoff with jitter rather than from the headers. See https://docs.snaptrade.com/docs/ratelimiting.
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
|
7
7
|
Contact: api@snaptrade.com
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#SnapTrade
|
|
3
3
|
|
|
4
|
-
#Connect brokerage accounts to your app for live positions and trading
|
|
4
|
+
#Connect brokerage accounts to your app for live positions and trading. ## Rate limiting Two limits apply to requests signed with your `clientId`. The stricter one wins, and exceeding either returns `429 Too Many Requests`. - **Customer-level** — 250 requests/minute by default, scoped to your `clientId` and applied across all endpoints. Reported in `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset`. - **Account-level** — 10 requests/minute per account, scoped to (`clientId`, `accountId`). All covered operations for one account draw on the same bucket — reading balances and reading positions share it — and enforcement does not depend on the HTTP method, so updating an account consumes the same bucket as reading it. Only enforced for Personal users, and only for integrations it has been rolled out to — it is not yet in force for every Personal integration. It also does not apply on every operation that documents a 429 below. Where it applies it is reported in `X-RateLimit-Account-Limit`, `X-RateLimit-Account-Remaining` and `X-RateLimit-Account-Reset`. Do not read the absence of those headers as proof the limit is off — some configurations omit the rate limit headers while still enforcing the limit, so header absence tells you nothing about your allowance. On a 429, `X-RateLimit-Remaining: 0` means you hit the customer-level limit and `X-RateLimit-Account-Remaining: 0` means the account-level one. Wait for the corresponding `*-Reset` value (seconds) before retrying, or fall back to exponential backoff with jitter. Not every 429 is explained by those headers. A separate per-authenticated-user limit, reported in no `X-RateLimit-*` header, covers OAuth-authenticated requests and signed requests in configurations where the customer-level limit is not in effect — on the operations that use the default throttles. A few operations override those and are governed by the customer-level limit alone. The two do not stack: a signed request governed by the customer-level limit above is not additionally subject to the per-user one. If a 429 arrives with no header at zero — or with no `X-RateLimit-*` headers at all — honour `Retry-After` and back off. Treat the remaining counts as a hint, not a guarantee that the next request will succeed. Because the customer-level limit applies everywhere, any signed request can return 429. **OAuth-authenticated requests are an exception.** They are not subject to the customer-level limit and do not receive `X-RateLimit-Limit`, `X-RateLimit-Remaining` or `X-RateLimit-Reset` — do not wait on those headers or design around a customer-level allowance on this path. The account-level limit still applies to them on the account-data endpoints above, reported in the `X-RateLimit-Account-*` headers. On operations using the default throttles the per-user limit above applies to them as well, so an OAuth request can be rejected while the account headers still show capacity; on the few operations that override those throttles, OAuth callers have no per-user ceiling at all. Drive retries from `Retry-After` and exponential backoff with jitter rather than from the headers. See https://docs.snaptrade.com/docs/ratelimiting.
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
|
7
7
|
Contact: api@snaptrade.com
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#SnapTrade
|
|
3
3
|
|
|
4
|
-
#Connect brokerage accounts to your app for live positions and trading
|
|
4
|
+
#Connect brokerage accounts to your app for live positions and trading. ## Rate limiting Two limits apply to requests signed with your `clientId`. The stricter one wins, and exceeding either returns `429 Too Many Requests`. - **Customer-level** — 250 requests/minute by default, scoped to your `clientId` and applied across all endpoints. Reported in `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset`. - **Account-level** — 10 requests/minute per account, scoped to (`clientId`, `accountId`). All covered operations for one account draw on the same bucket — reading balances and reading positions share it — and enforcement does not depend on the HTTP method, so updating an account consumes the same bucket as reading it. Only enforced for Personal users, and only for integrations it has been rolled out to — it is not yet in force for every Personal integration. It also does not apply on every operation that documents a 429 below. Where it applies it is reported in `X-RateLimit-Account-Limit`, `X-RateLimit-Account-Remaining` and `X-RateLimit-Account-Reset`. Do not read the absence of those headers as proof the limit is off — some configurations omit the rate limit headers while still enforcing the limit, so header absence tells you nothing about your allowance. On a 429, `X-RateLimit-Remaining: 0` means you hit the customer-level limit and `X-RateLimit-Account-Remaining: 0` means the account-level one. Wait for the corresponding `*-Reset` value (seconds) before retrying, or fall back to exponential backoff with jitter. Not every 429 is explained by those headers. A separate per-authenticated-user limit, reported in no `X-RateLimit-*` header, covers OAuth-authenticated requests and signed requests in configurations where the customer-level limit is not in effect — on the operations that use the default throttles. A few operations override those and are governed by the customer-level limit alone. The two do not stack: a signed request governed by the customer-level limit above is not additionally subject to the per-user one. If a 429 arrives with no header at zero — or with no `X-RateLimit-*` headers at all — honour `Retry-After` and back off. Treat the remaining counts as a hint, not a guarantee that the next request will succeed. Because the customer-level limit applies everywhere, any signed request can return 429. **OAuth-authenticated requests are an exception.** They are not subject to the customer-level limit and do not receive `X-RateLimit-Limit`, `X-RateLimit-Remaining` or `X-RateLimit-Reset` — do not wait on those headers or design around a customer-level allowance on this path. The account-level limit still applies to them on the account-data endpoints above, reported in the `X-RateLimit-Account-*` headers. On operations using the default throttles the per-user limit above applies to them as well, so an OAuth request can be rejected while the account headers still show capacity; on the few operations that override those throttles, OAuth callers have no per-user ceiling at all. Drive retries from `Retry-After` and exponential backoff with jitter rather than from the headers. See https://docs.snaptrade.com/docs/ratelimiting.
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
|
7
7
|
Contact: api@snaptrade.com
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#SnapTrade
|
|
3
3
|
|
|
4
|
-
#Connect brokerage accounts to your app for live positions and trading
|
|
4
|
+
#Connect brokerage accounts to your app for live positions and trading. ## Rate limiting Two limits apply to requests signed with your `clientId`. The stricter one wins, and exceeding either returns `429 Too Many Requests`. - **Customer-level** — 250 requests/minute by default, scoped to your `clientId` and applied across all endpoints. Reported in `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset`. - **Account-level** — 10 requests/minute per account, scoped to (`clientId`, `accountId`). All covered operations for one account draw on the same bucket — reading balances and reading positions share it — and enforcement does not depend on the HTTP method, so updating an account consumes the same bucket as reading it. Only enforced for Personal users, and only for integrations it has been rolled out to — it is not yet in force for every Personal integration. It also does not apply on every operation that documents a 429 below. Where it applies it is reported in `X-RateLimit-Account-Limit`, `X-RateLimit-Account-Remaining` and `X-RateLimit-Account-Reset`. Do not read the absence of those headers as proof the limit is off — some configurations omit the rate limit headers while still enforcing the limit, so header absence tells you nothing about your allowance. On a 429, `X-RateLimit-Remaining: 0` means you hit the customer-level limit and `X-RateLimit-Account-Remaining: 0` means the account-level one. Wait for the corresponding `*-Reset` value (seconds) before retrying, or fall back to exponential backoff with jitter. Not every 429 is explained by those headers. A separate per-authenticated-user limit, reported in no `X-RateLimit-*` header, covers OAuth-authenticated requests and signed requests in configurations where the customer-level limit is not in effect — on the operations that use the default throttles. A few operations override those and are governed by the customer-level limit alone. The two do not stack: a signed request governed by the customer-level limit above is not additionally subject to the per-user one. If a 429 arrives with no header at zero — or with no `X-RateLimit-*` headers at all — honour `Retry-After` and back off. Treat the remaining counts as a hint, not a guarantee that the next request will succeed. Because the customer-level limit applies everywhere, any signed request can return 429. **OAuth-authenticated requests are an exception.** They are not subject to the customer-level limit and do not receive `X-RateLimit-Limit`, `X-RateLimit-Remaining` or `X-RateLimit-Reset` — do not wait on those headers or design around a customer-level allowance on this path. The account-level limit still applies to them on the account-data endpoints above, reported in the `X-RateLimit-Account-*` headers. On operations using the default throttles the per-user limit above applies to them as well, so an OAuth request can be rejected while the account headers still show capacity; on the few operations that override those throttles, OAuth callers have no per-user ceiling at all. Drive retries from `Retry-After` and exponential backoff with jitter rather than from the headers. See https://docs.snaptrade.com/docs/ratelimiting.
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
|
7
7
|
Contact: api@snaptrade.com
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#SnapTrade
|
|
3
3
|
|
|
4
|
-
#Connect brokerage accounts to your app for live positions and trading
|
|
4
|
+
#Connect brokerage accounts to your app for live positions and trading. ## Rate limiting Two limits apply to requests signed with your `clientId`. The stricter one wins, and exceeding either returns `429 Too Many Requests`. - **Customer-level** — 250 requests/minute by default, scoped to your `clientId` and applied across all endpoints. Reported in `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset`. - **Account-level** — 10 requests/minute per account, scoped to (`clientId`, `accountId`). All covered operations for one account draw on the same bucket — reading balances and reading positions share it — and enforcement does not depend on the HTTP method, so updating an account consumes the same bucket as reading it. Only enforced for Personal users, and only for integrations it has been rolled out to — it is not yet in force for every Personal integration. It also does not apply on every operation that documents a 429 below. Where it applies it is reported in `X-RateLimit-Account-Limit`, `X-RateLimit-Account-Remaining` and `X-RateLimit-Account-Reset`. Do not read the absence of those headers as proof the limit is off — some configurations omit the rate limit headers while still enforcing the limit, so header absence tells you nothing about your allowance. On a 429, `X-RateLimit-Remaining: 0` means you hit the customer-level limit and `X-RateLimit-Account-Remaining: 0` means the account-level one. Wait for the corresponding `*-Reset` value (seconds) before retrying, or fall back to exponential backoff with jitter. Not every 429 is explained by those headers. A separate per-authenticated-user limit, reported in no `X-RateLimit-*` header, covers OAuth-authenticated requests and signed requests in configurations where the customer-level limit is not in effect — on the operations that use the default throttles. A few operations override those and are governed by the customer-level limit alone. The two do not stack: a signed request governed by the customer-level limit above is not additionally subject to the per-user one. If a 429 arrives with no header at zero — or with no `X-RateLimit-*` headers at all — honour `Retry-After` and back off. Treat the remaining counts as a hint, not a guarantee that the next request will succeed. Because the customer-level limit applies everywhere, any signed request can return 429. **OAuth-authenticated requests are an exception.** They are not subject to the customer-level limit and do not receive `X-RateLimit-Limit`, `X-RateLimit-Remaining` or `X-RateLimit-Reset` — do not wait on those headers or design around a customer-level allowance on this path. The account-level limit still applies to them on the account-data endpoints above, reported in the `X-RateLimit-Account-*` headers. On operations using the default throttles the per-user limit above applies to them as well, so an OAuth request can be rejected while the account headers still show capacity; on the few operations that override those throttles, OAuth callers have no per-user ceiling at all. Drive retries from `Retry-After` and exponential backoff with jitter rather than from the headers. See https://docs.snaptrade.com/docs/ratelimiting.
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
|
7
7
|
Contact: api@snaptrade.com
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#SnapTrade
|
|
3
3
|
|
|
4
|
-
#Connect brokerage accounts to your app for live positions and trading
|
|
4
|
+
#Connect brokerage accounts to your app for live positions and trading. ## Rate limiting Two limits apply to requests signed with your `clientId`. The stricter one wins, and exceeding either returns `429 Too Many Requests`. - **Customer-level** — 250 requests/minute by default, scoped to your `clientId` and applied across all endpoints. Reported in `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset`. - **Account-level** — 10 requests/minute per account, scoped to (`clientId`, `accountId`). All covered operations for one account draw on the same bucket — reading balances and reading positions share it — and enforcement does not depend on the HTTP method, so updating an account consumes the same bucket as reading it. Only enforced for Personal users, and only for integrations it has been rolled out to — it is not yet in force for every Personal integration. It also does not apply on every operation that documents a 429 below. Where it applies it is reported in `X-RateLimit-Account-Limit`, `X-RateLimit-Account-Remaining` and `X-RateLimit-Account-Reset`. Do not read the absence of those headers as proof the limit is off — some configurations omit the rate limit headers while still enforcing the limit, so header absence tells you nothing about your allowance. On a 429, `X-RateLimit-Remaining: 0` means you hit the customer-level limit and `X-RateLimit-Account-Remaining: 0` means the account-level one. Wait for the corresponding `*-Reset` value (seconds) before retrying, or fall back to exponential backoff with jitter. Not every 429 is explained by those headers. A separate per-authenticated-user limit, reported in no `X-RateLimit-*` header, covers OAuth-authenticated requests and signed requests in configurations where the customer-level limit is not in effect — on the operations that use the default throttles. A few operations override those and are governed by the customer-level limit alone. The two do not stack: a signed request governed by the customer-level limit above is not additionally subject to the per-user one. If a 429 arrives with no header at zero — or with no `X-RateLimit-*` headers at all — honour `Retry-After` and back off. Treat the remaining counts as a hint, not a guarantee that the next request will succeed. Because the customer-level limit applies everywhere, any signed request can return 429. **OAuth-authenticated requests are an exception.** They are not subject to the customer-level limit and do not receive `X-RateLimit-Limit`, `X-RateLimit-Remaining` or `X-RateLimit-Reset` — do not wait on those headers or design around a customer-level allowance on this path. The account-level limit still applies to them on the account-data endpoints above, reported in the `X-RateLimit-Account-*` headers. On operations using the default throttles the per-user limit above applies to them as well, so an OAuth request can be rejected while the account headers still show capacity; on the few operations that override those throttles, OAuth callers have no per-user ceiling at all. Drive retries from `Retry-After` and exponential backoff with jitter rather than from the headers. See https://docs.snaptrade.com/docs/ratelimiting.
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
|
7
7
|
Contact: api@snaptrade.com
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#SnapTrade
|
|
3
3
|
|
|
4
|
-
#Connect brokerage accounts to your app for live positions and trading
|
|
4
|
+
#Connect brokerage accounts to your app for live positions and trading. ## Rate limiting Two limits apply to requests signed with your `clientId`. The stricter one wins, and exceeding either returns `429 Too Many Requests`. - **Customer-level** — 250 requests/minute by default, scoped to your `clientId` and applied across all endpoints. Reported in `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset`. - **Account-level** — 10 requests/minute per account, scoped to (`clientId`, `accountId`). All covered operations for one account draw on the same bucket — reading balances and reading positions share it — and enforcement does not depend on the HTTP method, so updating an account consumes the same bucket as reading it. Only enforced for Personal users, and only for integrations it has been rolled out to — it is not yet in force for every Personal integration. It also does not apply on every operation that documents a 429 below. Where it applies it is reported in `X-RateLimit-Account-Limit`, `X-RateLimit-Account-Remaining` and `X-RateLimit-Account-Reset`. Do not read the absence of those headers as proof the limit is off — some configurations omit the rate limit headers while still enforcing the limit, so header absence tells you nothing about your allowance. On a 429, `X-RateLimit-Remaining: 0` means you hit the customer-level limit and `X-RateLimit-Account-Remaining: 0` means the account-level one. Wait for the corresponding `*-Reset` value (seconds) before retrying, or fall back to exponential backoff with jitter. Not every 429 is explained by those headers. A separate per-authenticated-user limit, reported in no `X-RateLimit-*` header, covers OAuth-authenticated requests and signed requests in configurations where the customer-level limit is not in effect — on the operations that use the default throttles. A few operations override those and are governed by the customer-level limit alone. The two do not stack: a signed request governed by the customer-level limit above is not additionally subject to the per-user one. If a 429 arrives with no header at zero — or with no `X-RateLimit-*` headers at all — honour `Retry-After` and back off. Treat the remaining counts as a hint, not a guarantee that the next request will succeed. Because the customer-level limit applies everywhere, any signed request can return 429. **OAuth-authenticated requests are an exception.** They are not subject to the customer-level limit and do not receive `X-RateLimit-Limit`, `X-RateLimit-Remaining` or `X-RateLimit-Reset` — do not wait on those headers or design around a customer-level allowance on this path. The account-level limit still applies to them on the account-data endpoints above, reported in the `X-RateLimit-Account-*` headers. On operations using the default throttles the per-user limit above applies to them as well, so an OAuth request can be rejected while the account headers still show capacity; on the few operations that override those throttles, OAuth callers have no per-user ceiling at all. Drive retries from `Retry-After` and exponential backoff with jitter rather than from the headers. See https://docs.snaptrade.com/docs/ratelimiting.
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
|
7
7
|
Contact: api@snaptrade.com
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#SnapTrade
|
|
3
3
|
|
|
4
|
-
#Connect brokerage accounts to your app for live positions and trading
|
|
4
|
+
#Connect brokerage accounts to your app for live positions and trading. ## Rate limiting Two limits apply to requests signed with your `clientId`. The stricter one wins, and exceeding either returns `429 Too Many Requests`. - **Customer-level** — 250 requests/minute by default, scoped to your `clientId` and applied across all endpoints. Reported in `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset`. - **Account-level** — 10 requests/minute per account, scoped to (`clientId`, `accountId`). All covered operations for one account draw on the same bucket — reading balances and reading positions share it — and enforcement does not depend on the HTTP method, so updating an account consumes the same bucket as reading it. Only enforced for Personal users, and only for integrations it has been rolled out to — it is not yet in force for every Personal integration. It also does not apply on every operation that documents a 429 below. Where it applies it is reported in `X-RateLimit-Account-Limit`, `X-RateLimit-Account-Remaining` and `X-RateLimit-Account-Reset`. Do not read the absence of those headers as proof the limit is off — some configurations omit the rate limit headers while still enforcing the limit, so header absence tells you nothing about your allowance. On a 429, `X-RateLimit-Remaining: 0` means you hit the customer-level limit and `X-RateLimit-Account-Remaining: 0` means the account-level one. Wait for the corresponding `*-Reset` value (seconds) before retrying, or fall back to exponential backoff with jitter. Not every 429 is explained by those headers. A separate per-authenticated-user limit, reported in no `X-RateLimit-*` header, covers OAuth-authenticated requests and signed requests in configurations where the customer-level limit is not in effect — on the operations that use the default throttles. A few operations override those and are governed by the customer-level limit alone. The two do not stack: a signed request governed by the customer-level limit above is not additionally subject to the per-user one. If a 429 arrives with no header at zero — or with no `X-RateLimit-*` headers at all — honour `Retry-After` and back off. Treat the remaining counts as a hint, not a guarantee that the next request will succeed. Because the customer-level limit applies everywhere, any signed request can return 429. **OAuth-authenticated requests are an exception.** They are not subject to the customer-level limit and do not receive `X-RateLimit-Limit`, `X-RateLimit-Remaining` or `X-RateLimit-Reset` — do not wait on those headers or design around a customer-level allowance on this path. The account-level limit still applies to them on the account-data endpoints above, reported in the `X-RateLimit-Account-*` headers. On operations using the default throttles the per-user limit above applies to them as well, so an OAuth request can be rejected while the account headers still show capacity; on the few operations that override those throttles, OAuth callers have no per-user ceiling at all. Drive retries from `Retry-After` and exponential backoff with jitter rather than from the headers. See https://docs.snaptrade.com/docs/ratelimiting.
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
|
7
7
|
Contact: api@snaptrade.com
|
|
@@ -46,6 +46,11 @@ module SnapTrade
|
|
|
46
46
|
|
|
47
47
|
attr_accessor :minimum_payment_amount
|
|
48
48
|
|
|
49
|
+
attr_accessor :available_credit
|
|
50
|
+
|
|
51
|
+
# The date the account's next payment is due, in `YYYY-MM-DD` format. Omitted when no such data is available.
|
|
52
|
+
attr_accessor :next_payment_date
|
|
53
|
+
|
|
49
54
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
50
55
|
def self.attribute_map
|
|
51
56
|
{
|
|
@@ -60,7 +65,9 @@ module SnapTrade
|
|
|
60
65
|
:'sync_status' => :'sync_status',
|
|
61
66
|
:'raw_type' => :'raw_type',
|
|
62
67
|
:'net_value' => :'net_value',
|
|
63
|
-
:'minimum_payment_amount' => :'minimum_payment_amount'
|
|
68
|
+
:'minimum_payment_amount' => :'minimum_payment_amount',
|
|
69
|
+
:'available_credit' => :'available_credit',
|
|
70
|
+
:'next_payment_date' => :'next_payment_date'
|
|
64
71
|
}
|
|
65
72
|
end
|
|
66
73
|
|
|
@@ -83,7 +90,9 @@ module SnapTrade
|
|
|
83
90
|
:'sync_status' => :'LineOfCreditAccountSyncStatus',
|
|
84
91
|
:'raw_type' => :'String',
|
|
85
92
|
:'net_value' => :'LineOfCreditAccountNetValue',
|
|
86
|
-
:'minimum_payment_amount' => :'LineOfCreditAccountMinimumPaymentAmount'
|
|
93
|
+
:'minimum_payment_amount' => :'LineOfCreditAccountMinimumPaymentAmount',
|
|
94
|
+
:'available_credit' => :'LineOfCreditAccountAvailableCredit',
|
|
95
|
+
:'next_payment_date' => :'Date'
|
|
87
96
|
}
|
|
88
97
|
end
|
|
89
98
|
|
|
@@ -95,7 +104,9 @@ module SnapTrade
|
|
|
95
104
|
:'opening_date',
|
|
96
105
|
:'raw_type',
|
|
97
106
|
:'net_value',
|
|
98
|
-
:'minimum_payment_amount'
|
|
107
|
+
:'minimum_payment_amount',
|
|
108
|
+
:'available_credit',
|
|
109
|
+
:'next_payment_date'
|
|
99
110
|
])
|
|
100
111
|
end
|
|
101
112
|
|
|
@@ -161,6 +172,14 @@ module SnapTrade
|
|
|
161
172
|
if attributes.key?(:'minimum_payment_amount')
|
|
162
173
|
self.minimum_payment_amount = attributes[:'minimum_payment_amount']
|
|
163
174
|
end
|
|
175
|
+
|
|
176
|
+
if attributes.key?(:'available_credit')
|
|
177
|
+
self.available_credit = attributes[:'available_credit']
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
if attributes.key?(:'next_payment_date')
|
|
181
|
+
self.next_payment_date = attributes[:'next_payment_date']
|
|
182
|
+
end
|
|
164
183
|
end
|
|
165
184
|
|
|
166
185
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -217,7 +236,9 @@ module SnapTrade
|
|
|
217
236
|
sync_status == o.sync_status &&
|
|
218
237
|
raw_type == o.raw_type &&
|
|
219
238
|
net_value == o.net_value &&
|
|
220
|
-
minimum_payment_amount == o.minimum_payment_amount
|
|
239
|
+
minimum_payment_amount == o.minimum_payment_amount &&
|
|
240
|
+
available_credit == o.available_credit &&
|
|
241
|
+
next_payment_date == o.next_payment_date
|
|
221
242
|
end
|
|
222
243
|
|
|
223
244
|
# @see the `==` method
|
|
@@ -229,7 +250,7 @@ module SnapTrade
|
|
|
229
250
|
# Calculates hash code according to all attributes.
|
|
230
251
|
# @return [Integer] Hash code
|
|
231
252
|
def hash
|
|
232
|
-
[kind, id, connection_id, display_name, masked_account_number, institution_account_id, institution_id, opening_date, sync_status, raw_type, net_value, minimum_payment_amount].hash
|
|
253
|
+
[kind, id, connection_id, display_name, masked_account_number, institution_account_id, institution_id, opening_date, sync_status, raw_type, net_value, minimum_payment_amount, available_credit, next_payment_date].hash
|
|
233
254
|
end
|
|
234
255
|
|
|
235
256
|
# Builds the object from hash
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#SnapTrade
|
|
3
|
+
|
|
4
|
+
#Connect brokerage accounts to your app for live positions and trading. ## Rate limiting Two limits apply to requests signed with your `clientId`. The stricter one wins, and exceeding either returns `429 Too Many Requests`. - **Customer-level** — 250 requests/minute by default, scoped to your `clientId` and applied across all endpoints. Reported in `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset`. - **Account-level** — 10 requests/minute per account, scoped to (`clientId`, `accountId`). All covered operations for one account draw on the same bucket — reading balances and reading positions share it — and enforcement does not depend on the HTTP method, so updating an account consumes the same bucket as reading it. Only enforced for Personal users, and only for integrations it has been rolled out to — it is not yet in force for every Personal integration. It also does not apply on every operation that documents a 429 below. Where it applies it is reported in `X-RateLimit-Account-Limit`, `X-RateLimit-Account-Remaining` and `X-RateLimit-Account-Reset`. Do not read the absence of those headers as proof the limit is off — some configurations omit the rate limit headers while still enforcing the limit, so header absence tells you nothing about your allowance. On a 429, `X-RateLimit-Remaining: 0` means you hit the customer-level limit and `X-RateLimit-Account-Remaining: 0` means the account-level one. Wait for the corresponding `*-Reset` value (seconds) before retrying, or fall back to exponential backoff with jitter. Not every 429 is explained by those headers. A separate per-authenticated-user limit, reported in no `X-RateLimit-*` header, covers OAuth-authenticated requests and signed requests in configurations where the customer-level limit is not in effect — on the operations that use the default throttles. A few operations override those and are governed by the customer-level limit alone. The two do not stack: a signed request governed by the customer-level limit above is not additionally subject to the per-user one. If a 429 arrives with no header at zero — or with no `X-RateLimit-*` headers at all — honour `Retry-After` and back off. Treat the remaining counts as a hint, not a guarantee that the next request will succeed. Because the customer-level limit applies everywhere, any signed request can return 429. **OAuth-authenticated requests are an exception.** They are not subject to the customer-level limit and do not receive `X-RateLimit-Limit`, `X-RateLimit-Remaining` or `X-RateLimit-Reset` — do not wait on those headers or design around a customer-level allowance on this path. The account-level limit still applies to them on the account-data endpoints above, reported in the `X-RateLimit-Account-*` headers. On operations using the default throttles the per-user limit above applies to them as well, so an OAuth request can be rejected while the account headers still show capacity; on the few operations that override those throttles, OAuth callers have no per-user ceiling at all. Drive retries from `Retry-After` and exponential backoff with jitter rather than from the headers. See https://docs.snaptrade.com/docs/ratelimiting.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
Contact: api@snaptrade.com
|
|
8
|
+
=end
|
|
9
|
+
|
|
10
|
+
require 'date'
|
|
11
|
+
require 'time'
|
|
12
|
+
|
|
13
|
+
module SnapTrade
|
|
14
|
+
# The remaining credit available to spend on the account (credit limit less the current balance). Omitted when no such data is available.
|
|
15
|
+
class LineOfCreditAccountAvailableCredit
|
|
16
|
+
attr_accessor :amount
|
|
17
|
+
|
|
18
|
+
attr_accessor :currency
|
|
19
|
+
|
|
20
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
21
|
+
def self.attribute_map
|
|
22
|
+
{
|
|
23
|
+
:'amount' => :'amount',
|
|
24
|
+
:'currency' => :'currency'
|
|
25
|
+
}
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
# Returns all the JSON keys this model knows about
|
|
29
|
+
def self.acceptable_attributes
|
|
30
|
+
attribute_map.values
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# Attribute type mapping.
|
|
34
|
+
def self.openapi_types
|
|
35
|
+
{
|
|
36
|
+
:'amount' => :'Float',
|
|
37
|
+
:'currency' => :'String'
|
|
38
|
+
}
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# List of attributes with nullable: true
|
|
42
|
+
def self.openapi_nullable
|
|
43
|
+
Set.new([
|
|
44
|
+
:'amount',
|
|
45
|
+
:'currency'
|
|
46
|
+
])
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# Initializes the object
|
|
50
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
51
|
+
def initialize(attributes = {})
|
|
52
|
+
if (!attributes.is_a?(Hash))
|
|
53
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `SnapTrade::LineOfCreditAccountAvailableCredit` initialize method"
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
57
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
58
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
59
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SnapTrade::LineOfCreditAccountAvailableCredit`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
60
|
+
end
|
|
61
|
+
h[k.to_sym] = v
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
if attributes.key?(:'amount')
|
|
65
|
+
self.amount = attributes[:'amount']
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
if attributes.key?(:'currency')
|
|
69
|
+
self.currency = attributes[:'currency']
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
74
|
+
# @return Array for valid properties with the reasons
|
|
75
|
+
def list_invalid_properties
|
|
76
|
+
invalid_properties = Array.new
|
|
77
|
+
invalid_properties
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# Check to see if the all the properties in the model are valid
|
|
81
|
+
# @return true if the model is valid
|
|
82
|
+
def valid?
|
|
83
|
+
true
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Checks equality by comparing each attribute.
|
|
87
|
+
# @param [Object] Object to be compared
|
|
88
|
+
def ==(o)
|
|
89
|
+
return true if self.equal?(o)
|
|
90
|
+
self.class == o.class &&
|
|
91
|
+
amount == o.amount &&
|
|
92
|
+
currency == o.currency
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
# @see the `==` method
|
|
96
|
+
# @param [Object] Object to be compared
|
|
97
|
+
def eql?(o)
|
|
98
|
+
self == o
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
# Calculates hash code according to all attributes.
|
|
102
|
+
# @return [Integer] Hash code
|
|
103
|
+
def hash
|
|
104
|
+
[amount, currency].hash
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
# Builds the object from hash
|
|
108
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
109
|
+
# @return [Object] Returns the model itself
|
|
110
|
+
def self.build_from_hash(attributes)
|
|
111
|
+
new.build_from_hash(attributes)
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
# Builds the object from hash
|
|
115
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
116
|
+
# @return [Object] Returns the model itself
|
|
117
|
+
def build_from_hash(attributes)
|
|
118
|
+
return nil unless attributes.is_a?(Hash)
|
|
119
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
120
|
+
self.class.openapi_types.each_pair do |key, type|
|
|
121
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
122
|
+
self.send("#{key}=", nil)
|
|
123
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
124
|
+
# check to ensure the input is an array given that the attribute
|
|
125
|
+
# is documented as an array but the input is not
|
|
126
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
127
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
128
|
+
end
|
|
129
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
130
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
131
|
+
end
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
self
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
# Deserializes the data based on type
|
|
138
|
+
# @param string type Data type
|
|
139
|
+
# @param string value Value to be deserialized
|
|
140
|
+
# @return [Object] Deserialized data
|
|
141
|
+
def _deserialize(type, value)
|
|
142
|
+
case type.to_sym
|
|
143
|
+
when :Time
|
|
144
|
+
Time.parse(value)
|
|
145
|
+
when :Date
|
|
146
|
+
Date.parse(value)
|
|
147
|
+
when :String
|
|
148
|
+
value.to_s
|
|
149
|
+
when :Integer
|
|
150
|
+
value.to_i
|
|
151
|
+
when :Float
|
|
152
|
+
value.to_f
|
|
153
|
+
when :Boolean
|
|
154
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
155
|
+
true
|
|
156
|
+
else
|
|
157
|
+
false
|
|
158
|
+
end
|
|
159
|
+
when :Object
|
|
160
|
+
# generic object (usually a Hash), return directly
|
|
161
|
+
value
|
|
162
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
163
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
164
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
165
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
166
|
+
k_type = Regexp.last_match[:k_type]
|
|
167
|
+
v_type = Regexp.last_match[:v_type]
|
|
168
|
+
{}.tap do |hash|
|
|
169
|
+
value.each do |k, v|
|
|
170
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
171
|
+
end
|
|
172
|
+
end
|
|
173
|
+
else # model
|
|
174
|
+
# models (e.g. Pet) or oneOf
|
|
175
|
+
klass = SnapTrade.const_get(type)
|
|
176
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
177
|
+
end
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
# Returns the string representation of the object
|
|
181
|
+
# @return [String] String presentation of the object
|
|
182
|
+
def to_s
|
|
183
|
+
to_hash.to_s
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
187
|
+
# @return [Hash] Returns the object in the form of hash
|
|
188
|
+
def to_body
|
|
189
|
+
to_hash
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
# Returns the object in the form of hash
|
|
193
|
+
# @return [Hash] Returns the object in the form of hash
|
|
194
|
+
def to_hash
|
|
195
|
+
hash = {}
|
|
196
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
197
|
+
value = self.send(attr)
|
|
198
|
+
if value.nil?
|
|
199
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
200
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
hash[param] = _to_hash(value)
|
|
204
|
+
end
|
|
205
|
+
hash
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
# Outputs non-array value in the form of hash
|
|
209
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
210
|
+
# @param [Object] value Any valid value
|
|
211
|
+
# @return [Hash] Returns the value in the form of hash
|
|
212
|
+
def _to_hash(value)
|
|
213
|
+
if value.is_a?(Array)
|
|
214
|
+
value.compact.map { |v| _to_hash(v) }
|
|
215
|
+
elsif value.is_a?(Hash)
|
|
216
|
+
{}.tap do |hash|
|
|
217
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
218
|
+
end
|
|
219
|
+
elsif value.respond_to? :to_hash
|
|
220
|
+
value.to_hash
|
|
221
|
+
else
|
|
222
|
+
value
|
|
223
|
+
end
|
|
224
|
+
end
|
|
225
|
+
|
|
226
|
+
end
|
|
227
|
+
|
|
228
|
+
end
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#SnapTrade
|
|
3
3
|
|
|
4
|
-
#Connect brokerage accounts to your app for live positions and trading
|
|
4
|
+
#Connect brokerage accounts to your app for live positions and trading. ## Rate limiting Two limits apply to requests signed with your `clientId`. The stricter one wins, and exceeding either returns `429 Too Many Requests`. - **Customer-level** — 250 requests/minute by default, scoped to your `clientId` and applied across all endpoints. Reported in `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset`. - **Account-level** — 10 requests/minute per account, scoped to (`clientId`, `accountId`). All covered operations for one account draw on the same bucket — reading balances and reading positions share it — and enforcement does not depend on the HTTP method, so updating an account consumes the same bucket as reading it. Only enforced for Personal users, and only for integrations it has been rolled out to — it is not yet in force for every Personal integration. It also does not apply on every operation that documents a 429 below. Where it applies it is reported in `X-RateLimit-Account-Limit`, `X-RateLimit-Account-Remaining` and `X-RateLimit-Account-Reset`. Do not read the absence of those headers as proof the limit is off — some configurations omit the rate limit headers while still enforcing the limit, so header absence tells you nothing about your allowance. On a 429, `X-RateLimit-Remaining: 0` means you hit the customer-level limit and `X-RateLimit-Account-Remaining: 0` means the account-level one. Wait for the corresponding `*-Reset` value (seconds) before retrying, or fall back to exponential backoff with jitter. Not every 429 is explained by those headers. A separate per-authenticated-user limit, reported in no `X-RateLimit-*` header, covers OAuth-authenticated requests and signed requests in configurations where the customer-level limit is not in effect — on the operations that use the default throttles. A few operations override those and are governed by the customer-level limit alone. The two do not stack: a signed request governed by the customer-level limit above is not additionally subject to the per-user one. If a 429 arrives with no header at zero — or with no `X-RateLimit-*` headers at all — honour `Retry-After` and back off. Treat the remaining counts as a hint, not a guarantee that the next request will succeed. Because the customer-level limit applies everywhere, any signed request can return 429. **OAuth-authenticated requests are an exception.** They are not subject to the customer-level limit and do not receive `X-RateLimit-Limit`, `X-RateLimit-Remaining` or `X-RateLimit-Reset` — do not wait on those headers or design around a customer-level allowance on this path. The account-level limit still applies to them on the account-data endpoints above, reported in the `X-RateLimit-Account-*` headers. On operations using the default throttles the per-user limit above applies to them as well, so an OAuth request can be rejected while the account headers still show capacity; on the few operations that override those throttles, OAuth callers have no per-user ceiling at all. Drive retries from `Retry-After` and exponential backoff with jitter rather than from the headers. See https://docs.snaptrade.com/docs/ratelimiting.
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
|
7
7
|
Contact: api@snaptrade.com
|