snaptrade 3.0.64 → 3.0.66

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7e011371c65b825c5967bfe9ef9cf92b903ef19ef47226018f3f2e45688508a1
4
- data.tar.gz: 4009866fd7bf62deaffe2cdd6b596d576a8102295c8475107c092ae253371682
3
+ metadata.gz: adbfad2f0329340a617d9623d2d318a5c25c77f46818d8037c72d20a8cfd35bb
4
+ data.tar.gz: f34460027d39bcb60c930bdf61b6ddee6677b1184273b1bd2008313bc98ffc48
5
5
  SHA512:
6
- metadata.gz: b26b6f37cf916a6eb4faa916d4ad7da4863e7fddba340e4d04447d4667de261bf3aa67ea0737730dfb597a8e34ea5127ce8522cd51285ad48a456a9dc2d15207
7
- data.tar.gz: bad51e142dad0799e7a933d19ad5bddaf2a08b4d6923456596d9aa17a2dee17cdf4ffaf89f4c91b2f76cf05793b532645dd21867b95a42597ebcb190490b5dee
6
+ metadata.gz: 6bed7205bde90c1fe63e6add9e54caa52bbeeef8a2804cdfdb02cc5c111a490a8761fb238959959d85665cf26e3e0e3dbb2e12f6038bde7fde9b5e06d087a57e
7
+ data.tar.gz: 14964f0f2b2678340eed90a6138f1cb8ede6e0ede03ff85cdba30409dfba0b8bf82b4f77d6d692bc7377b66539c06fd11b96d2057c6b627f9c79e2e1298adf33
data/README.md CHANGED
@@ -63,7 +63,7 @@ backoff with jitter rather than from the headers.
63
63
  See https://docs.snaptrade.com/docs/ratelimiting.
64
64
 
65
65
 
66
- [![npm](https://img.shields.io/badge/gem-v3.0.64-blue)](https://rubygems.org/gems/snaptrade/versions/3.0.64)
66
+ [![npm](https://img.shields.io/badge/gem-v3.0.66-blue)](https://rubygems.org/gems/snaptrade/versions/3.0.66)
67
67
  [![More Info](https://img.shields.io/badge/More%20Info-Click%20Here-orange)](https://snaptrade.com/)
68
68
 
69
69
  </div>
@@ -116,7 +116,6 @@ See https://docs.snaptrade.com/docs/ratelimiting.
116
116
  * [`snaptrade.experimental_endpoints.get_user_account_orders_v2`](#snaptradeexperimental_endpointsget_user_account_orders_v2)
117
117
  * [`snaptrade.experimental_endpoints.get_user_account_recent_orders_v2`](#snaptradeexperimental_endpointsget_user_account_recent_orders_v2)
118
118
  * [`snaptrade.experimental_endpoints.list_subscriptions`](#snaptradeexperimental_endpointslist_subscriptions)
119
- * [`snaptrade.experimental_endpoints.place_simple_order`](#snaptradeexperimental_endpointsplace_simple_order)
120
119
  * [`snaptrade.management.get_stats`](#snaptrademanagementget_stats)
121
120
  * [`snaptrade.management.get_stats_legacy`](#snaptrademanagementget_stats_legacy)
122
121
  * [`snaptrade.reference_data.get_partner_info`](#snaptradereference_dataget_partner_info)
@@ -139,6 +138,7 @@ See https://docs.snaptrade.com/docs/ratelimiting.
139
138
  * [`snaptrade.trading.place_force_order`](#snaptradetradingplace_force_order)
140
139
  * [`snaptrade.trading.place_mleg_order`](#snaptradetradingplace_mleg_order)
141
140
  * [`snaptrade.trading.place_order`](#snaptradetradingplace_order)
141
+ * [`snaptrade.trading.place_simple_order`](#snaptradetradingplace_simple_order)
142
142
  * [`snaptrade.trading.preview_crypto_order`](#snaptradetradingpreview_crypto_order)
143
143
  * [`snaptrade.trading.replace_order`](#snaptradetradingreplace_order)
144
144
  * [`snaptrade.trading.search_cryptocurrency_pair_instruments`](#snaptradetradingsearch_cryptocurrency_pair_instruments)
@@ -150,7 +150,7 @@ See https://docs.snaptrade.com/docs/ratelimiting.
150
150
  Add to Gemfile:
151
151
 
152
152
  ```ruby
153
- gem 'snaptrade', '~> 3.0.64'
153
+ gem 'snaptrade', '~> 3.0.66'
154
154
  ```
155
155
 
156
156
  ## Getting Started<a id="getting-started"></a>
@@ -258,14 +258,15 @@ Optional comma separated list of transaction types to filter by. SnapTrade does
258
258
  a best effort to categorize brokerage transaction types into a common set of
259
259
  values. Here are some of the most popular values: - `BUY` - Asset bought. -
260
260
  `SELL` - Asset sold. - `DIVIDEND` - Dividend payout. - `SUBSTITUTE_DIVIDEND` -
261
- Payment in lieu of a dividend. - `CONTRIBUTION` - Cash contribution. -
262
- `WITHDRAWAL` - Cash withdrawal. - `REI` - Dividend reinvestment. -
263
- `STOCK_DIVIDEND` - A type of dividend where a company distributes shares instead
264
- of cash - `INTEREST` - Interest deposited into the account. - `FEE` - Fee
265
- withdrawn from the account. - `TAX` - A tax related fee. - `OPTIONEXPIRATION` -
266
- Option expiration event. - `OPTIONASSIGNMENT` - Option assignment event. -
267
- `OPTIONEXERCISE` - Option exercise event. - `TRANSFER` - Transfer of assets from
268
- one account to another. - `SPLIT` - A stock share split.
261
+ Payment in lieu of a dividend. - `CAPITAL_GAINS_LONG` - Long-term capital-gain
262
+ distribution. - `CAPITAL_GAINS_SHORT` - Short-term capital-gain distribution. -
263
+ `CONTRIBUTION` - Cash contribution. - `WITHDRAWAL` - Cash withdrawal. - `REI` -
264
+ Dividend reinvestment. - `STOCK_DIVIDEND` - A type of dividend where a company
265
+ distributes shares instead of cash - `INTEREST` - Interest deposited into the
266
+ account. - `FEE` - Fee withdrawn from the account. - `TAX` - A tax related fee.
267
+ - `OPTIONEXPIRATION` - Option expiration event. - `OPTIONASSIGNMENT` - Option
268
+ assignment event. - `OPTIONEXERCISE` - Option exercise event. - `TRANSFER` -
269
+ Transfer of assets from one account to another. - `SPLIT` - A stock share split.
269
270
 
270
271
  #### 🔄 Return<a id="🔄-return"></a>
271
272
 
@@ -481,16 +482,30 @@ First date to include (UTC). Defaults to the earliest available transaction.
481
482
  Last date to include (UTC). Defaults to the latest available transaction.
482
483
 
483
484
  ##### type: `String`<a id="type-string"></a>
484
- Comma-separated activity types. A transaction matches its base type or its
485
- option action, case-insensitively. For example, BUY includes opening and closing
486
- option purchases, while BUY_TO_OPEN selects only opening purchases. A
487
- transaction matching multiple values appears once.
485
+ Optional comma separated list of transaction types to filter by. SnapTrade does
486
+ a best effort to categorize brokerage transaction types into a common set of
487
+ values. Here are some of the most popular values: - `BUY` - Asset bought. -
488
+ `SELL` - Asset sold. - `BUY_TO_OPEN` - Option bought to open a long position. -
489
+ `BUY_TO_CLOSE` - Option bought to close a short position. - `SELL_TO_OPEN` -
490
+ Option sold to open a short position. - `SELL_TO_CLOSE` - Option sold to close a
491
+ long position. - `DIVIDEND` - Dividend payout. - `SUBSTITUTE_DIVIDEND` - Payment
492
+ in lieu of a dividend. - `CAPITAL_GAINS_LONG` - Long-term capital-gain
493
+ distribution. - `CAPITAL_GAINS_SHORT` - Short-term capital-gain distribution. -
494
+ `CONTRIBUTION` - Cash contribution. - `WITHDRAWAL` - Cash withdrawal. - `REI` -
495
+ Dividend reinvestment. - `STOCK_DIVIDEND` - A type of dividend where a company
496
+ distributes shares instead of cash - `INTEREST` - Interest deposited into the
497
+ account. - `FEE` - Fee withdrawn from the account. - `TAX` - A tax related fee.
498
+ - `OPTIONEXPIRATION` - Option expiration event. - `OPTIONASSIGNMENT` - Option
499
+ assignment event. - `OPTIONEXERCISE` - Option exercise event. - `TRANSFER` -
500
+ Transfer of assets from one account to another. - `SPLIT` - A stock share split.
488
501
 
489
502
  ##### offset: `Integer`<a id="offset-integer"></a>
490
- Number of matching transactions to skip.
503
+ An integer that specifies the starting point of the paginated results. Default
504
+ is 0.
491
505
 
492
506
  ##### limit: `Integer`<a id="limit-integer"></a>
493
- Maximum number of transactions to return in this page.
507
+ An integer that specifies the maximum number of transactions to return. Default
508
+ of 1000.
494
509
 
495
510
  #### 🔄 Return<a id="🔄-return"></a>
496
511
 
@@ -1867,135 +1882,6 @@ p result
1867
1882
  ---
1868
1883
 
1869
1884
 
1870
- ### `snaptrade.experimental_endpoints.place_simple_order`<a id="snaptradeexperimental_endpointsplace_simple_order"></a>
1871
-
1872
- **Beta.** Places a single-leg or multi-leg order using a common request format for equities, equity options, futures, and future options. This endpoint is experimental; breaking changes are possible during the experimental phase.
1873
-
1874
- Equity and equity-option orders use the existing brokerage trading capabilities. Futures are supported on tastytrade, Webull US, and TradeStation (live and SIM); future options are supported on tastytrade and TradeStation (live and SIM). Order types, time in force, optional fields, and strategy combinations remain subject to brokerage support. See the [brokerage trading support page](https://support.snaptrade.com/brokerages).
1875
-
1876
- An order may contain equity/option legs or future/future_option legs, but cannot mix those two families. Equity/option strategies must share the same underlying symbol. Each strategy is submitted as one brokerage order; unsupported strategies are never split into independent orders. Tastytrade supports single-leg outright futures and up to four future-option legs, and does not support multi-leg market orders.
1877
-
1878
- Webull US supports single-leg futures orders with buy or sell actions and positive whole-contract quantities. Supported order types are market, limit, stop, and stop_limit, with day or gtc duration. Futures options, multi-leg futures, trailing stops, and Webull Canada futures trading are not supported. Webull determines contract availability, margin requirements, and valid price increments.
1879
-
1880
- TradeStation and TradeStation SIM support single-leg futures and futures-option orders in Futures accounts, with positive whole-contract quantities. Supported order types are market, limit, stop, and stop_limit, with day, gtc, ioc, or fok duration, subject to the contract and route's supported combinations. Futures use buy/sell; futures options use the open/close option actions. Multi-leg futures-family strategies are not supported. Prices are forwarded without rounding; TradeStation determines contract availability, permissions, margin requirements, and valid price increments.
1881
-
1882
- All string choices use lower snake_case and are case-sensitive. Symbols retain their native format: equity tickers, OCC equity-option symbols, or brokerage-native futures symbols. For tastytrade, use the exact BrokerageInstrument ticker, including any spaces. For Webull US, use a specific unprefixed futures contract symbol such as ESZ6; slash-prefixed aliases, continuous/root-only symbols, and whitespace are not accepted. For TradeStation, use a specific two-digit-year contract such as ESZ26 or @ESZ26, or a futures-option symbol such as `ESZ26 C6000`, preserving the space and any session alias. The optional @ prefix is supported for dated futures contracts and is forwarded unchanged. Slash-prefixed aliases and root-only continuous symbols such as @ES are not accepted. A futures symbol does not need to be present in SnapTrade's local instrument catalog to submit an order.
1883
-
1884
- A successful response contains only the brokerage order ID. Use the existing order endpoints to retrieve order details.
1885
-
1886
-
1887
- #### 🛠️ Usage<a id="🛠️-usage"></a>
1888
-
1889
- ```ruby
1890
- result = snaptrade.experimental_endpoints.place_simple_order(
1891
- order_type: "stop_limit",
1892
- time_in_force: "day",
1893
- legs: [
1894
- {
1895
- "instrument" => {
1896
- "kind" => "future",
1897
- "symbol" => "/ESZ6",
1898
- },
1899
- "action" => "buy",
1900
- "units" => "1.25",
1901
- }
1902
- ],
1903
- account_id: "917c8734-8470-4a3e-a18f-57c3f2ee6631",
1904
- user_id: "snaptrade-user-123",
1905
- user_secret: "adf2aa34-8219-40f7-a6b3-60156985cc61",
1906
- limit_price: "1.25",
1907
- stop_price: "1.25",
1908
- price_effect: "debit",
1909
- client_order_id: "550e8400-e29b-41d4-a716-446655440000",
1910
- expiry_date: "2026-12-18T20:00:00Z",
1911
- notional_value: "1.25",
1912
- trading_session: "regular",
1913
- )
1914
- p result
1915
- ```
1916
-
1917
- #### ⚙️ Parameters<a id="⚙️-parameters"></a>
1918
-
1919
- ##### order_type: [`SimpleTradeFormOrderType`](./lib/snaptrade/models/simple_trade_form_order_type.rb)<a id="order_type-simpletradeformordertypelibsnaptrademodelssimple_trade_form_order_typerb"></a>
1920
- ##### time_in_force: [`SimpleTradeFormTimeInForce`](./lib/snaptrade/models/simple_trade_form_time_in_force.rb)<a id="time_in_force-simpletradeformtimeinforcelibsnaptrademodelssimple_trade_form_time_in_forcerb"></a>
1921
- Order duration, subject to brokerage and execution-path support. gtd requires
1922
- expiry_date and a non-market single-leg equity/option order. Existing single-leg
1923
- option routing does not support ioc. Futures and multi-leg orders do not support
1924
- gtd through this endpoint. Webull US futures only support day and gtc.
1925
- TradeStation futures and futures options accept day, gtc, ioc, and fok, subject
1926
- to the contract and route's supported combinations.
1927
-
1928
- ##### legs: Array<[`SimpleTradeLeg`](./lib/snaptrade/models/simple_trade_leg.rb)><a id="legs-array"></a>
1929
- Legs of one brokerage order. Use equity/option legs or future/future_option
1930
- legs, without mixing the two families. Brokerage strategy and leg-count limits
1931
- apply.
1932
-
1933
- ##### account_id: `String`<a id="account_id-string"></a>
1934
- The ID of the account to execute the trade on.
1935
-
1936
- ##### user_id: `String`<a id="user_id-string"></a>
1937
- ##### user_secret: `String`<a id="user_secret-string"></a>
1938
- ##### limit_price: [`Float`](./lib/snaptrade/models/float.rb)<a id="limit_price-floatlibsnaptrademodelsfloatrb"></a>
1939
- Required for limit and stop_limit orders, except that multi-leg price_effect
1940
- even implies zero. Must be omitted or null for market and stop orders. For
1941
- multi-leg orders this is the net strategy price. Negative prices are accepted
1942
- only for futures-family orders, subject to brokerage support.
1943
-
1944
- ##### stop_price: [`Float`](./lib/snaptrade/models/float.rb)<a id="stop_price-floatlibsnaptrademodelsfloatrb"></a>
1945
- Required for stop and stop_limit orders. Must be omitted or null for market and
1946
- limit orders. Must be positive for equity/option orders; futures-family trigger
1947
- prices are subject to brokerage support.
1948
-
1949
- ##### price_effect: [`SimpleTradeFormPriceEffect`](./lib/snaptrade/models/simple_trade_form_price_effect.rb)<a id="price_effect-simpletradeformpriceeffectlibsnaptrademodelssimple_trade_form_price_effectrb"></a>
1950
- Only applicable to multi-leg limit and stop_limit orders. Requirements and
1951
- supported values depend on the brokerage; tastytrade requires credit or debit.
1952
- even implies a zero limit_price, which may be omitted and must be zero if
1953
- supplied. Single-leg price effects are derived from the action.
1954
-
1955
- ##### client_order_id: [`String`](./lib/snaptrade/models/string.rb)<a id="client_order_id-stringlibsnaptrademodelsstringrb"></a>
1956
- Optional canonical UUID, forwarded where the existing execution path supports it
1957
- and for tastytrade, Webull US, and TradeStation futures-family orders. Requires
1958
- the existing client-order-ID enablement; when disabled the value is ignored.
1959
- Brokerage behavior on duplicates varies. SnapTrade does not enforce uniqueness,
1960
- except for requests authenticated with an OAuth access token, where a
1961
- client_order_id the user has already used returns 409. Tastytrade uses this as
1962
- external-identifier for correlation and does not deduplicate submissions. For
1963
- Webull US futures, SnapTrade converts the supplied UUID (or its generated order
1964
- UUID) to lowercase 32-character hexadecimal without hyphens. The original
1965
- supplied UUID remains in SnapTrade's trade audit; the converted value is
1966
- returned as brokerage_order_id for subsequent order reads. For TradeStation live
1967
- and SIM, SnapTrade encodes the supplied UUID (or its generated order UUID) as
1968
- 22-character URL-safe base64 without padding and sends it as OrderConfirmID for
1969
- brokerage duplicate prevention; the response contains TradeStation's separate
1970
- order ID.
1971
-
1972
- ##### expiry_date: `Time`<a id="expiry_date-time"></a>
1973
- ISO 8601 expiry timestamp, required for gtd and invalid with other durations. A
1974
- missing timezone is treated as UTC. Supported only through existing single-leg
1975
- Public and Sandbox execution paths.
1976
-
1977
- ##### notional_value: [`Float`](./lib/snaptrade/models/float.rb)<a id="notional_value-floatlibsnaptrademodelsfloatrb"></a>
1978
- Positive order value, supported only for a single-equity market order on
1979
- eligible brokerages and partners. Mutually exclusive with leg units. Omit or set
1980
- units to null when supplied.
1981
-
1982
- ##### trading_session: [`SimpleTradeFormTradingSession`](./lib/snaptrade/models/simple_trade_form_trading_session.rb)<a id="trading_session-simpletradeformtradingsessionlibsnaptrademodelssimple_trade_form_trading_sessionrb"></a>
1983
- extended uses existing single-leg equity/option brokerage support and requires
1984
- extended-hours enablement. Futures and multi-leg orders only accept regular.
1985
-
1986
- #### 🔄 Return<a id="🔄-return"></a>
1987
-
1988
- [SimpleTradeResponse](./lib/snaptrade/models/simple_trade_response.rb)
1989
-
1990
- #### 🌐 Endpoint<a id="🌐-endpoint"></a>
1991
-
1992
- `/accounts/{accountId}/trading/simple` `POST`
1993
-
1994
- [🔙 **Back to Table of Contents**](#table-of-contents)
1995
-
1996
- ---
1997
-
1998
-
1999
1885
  ### `snaptrade.management.get_stats`<a id="snaptrademanagementget_stats"></a>
2000
1886
 
2001
1887
  **Beta.** This endpoint and its response schema may change.
@@ -2435,6 +2321,7 @@ result = snaptrade.trading.get_option_impact(
2435
2321
  user_id: "snaptrade-user-123",
2436
2322
  user_secret: "adf2aa34-8219-40f7-a6b3-60156985cc61",
2437
2323
  account_id: "917c8734-8470-4a3e-a18f-57c3f2ee6631",
2324
+ client_order_id: "3e8b682d-c901-4b2d-a67f-70f73b04a29e",
2438
2325
  limit_price: "",
2439
2326
  stop_price: "",
2440
2327
  price_effect: "DEBIT",
@@ -2461,6 +2348,16 @@ immediately will be canceled.
2461
2348
  ##### user_id: `String`<a id="user_id-string"></a>
2462
2349
  ##### user_secret: `String`<a id="user_secret-string"></a>
2463
2350
  ##### account_id: `String`<a id="account_id-string"></a>
2351
+ ##### client_order_id: `String`<a id="client_order_id-string"></a>
2352
+ Canonical 36-character UUID required when placing a Wealthsimple order with two
2353
+ or more legs. Not required for an impact preview or single-leg request. Reuse it
2354
+ when retrying the same attempt. SnapTrade retains the ID after success or
2355
+ failure; reuse by the same user across accounts or placement endpoints returns
2356
+ 409 without submitting again. A 409 does not establish whether the original
2357
+ attempt was accepted; reconcile it before using a new ID for a genuinely new
2358
+ order. This protection does not depend on Wealthsimple deduplicating its
2359
+ external order ID.
2360
+
2464
2361
  ##### limit_price: `Float`<a id="limit_price-float"></a>
2465
2362
  The limit price. Required if the order type is `LIMIT`, `STOP_LOSS_LIMIT`,
2466
2363
  unless `price_effect` is `EVEN` - a net-even order is implicitly priced at 0, so
@@ -2935,6 +2832,8 @@ contracts to buy or sell. (e.g., 1 contract = 100 shares).
2935
2832
 
2936
2833
  Places a multi-leg option order. Only supported on certain option trading brokerages. https://support.snaptrade.com/brokerages has information on brokerage trading support
2937
2834
 
2835
+ Wealthsimple placement with two or more legs requires a canonical UUID `client_order_id`. Reuse it for retries of the same attempt. SnapTrade returns 409 for an ID already used by that user, including across accounts and after a lost placement response. Reconcile the original attempt before submitting a genuinely new order with a new ID.
2836
+
2938
2837
 
2939
2838
  #### 🛠️ Usage<a id="🛠️-usage"></a>
2940
2839
 
@@ -2955,6 +2854,7 @@ result = snaptrade.trading.place_mleg_order(
2955
2854
  user_id: "snaptrade-user-123",
2956
2855
  user_secret: "adf2aa34-8219-40f7-a6b3-60156985cc61",
2957
2856
  account_id: "917c8734-8470-4a3e-a18f-57c3f2ee6631",
2857
+ client_order_id: "3e8b682d-c901-4b2d-a67f-70f73b04a29e",
2958
2858
  limit_price: "",
2959
2859
  stop_price: "",
2960
2860
  price_effect: "DEBIT",
@@ -2981,6 +2881,16 @@ immediately will be canceled.
2981
2881
  ##### user_id: `String`<a id="user_id-string"></a>
2982
2882
  ##### user_secret: `String`<a id="user_secret-string"></a>
2983
2883
  ##### account_id: `String`<a id="account_id-string"></a>
2884
+ ##### client_order_id: `String`<a id="client_order_id-string"></a>
2885
+ Canonical 36-character UUID required when placing a Wealthsimple order with two
2886
+ or more legs. Not required for an impact preview or single-leg request. Reuse it
2887
+ when retrying the same attempt. SnapTrade retains the ID after success or
2888
+ failure; reuse by the same user across accounts or placement endpoints returns
2889
+ 409 without submitting again. A 409 does not establish whether the original
2890
+ attempt was accepted; reconcile it before using a new ID for a genuinely new
2891
+ order. This protection does not depend on Wealthsimple deduplicating its
2892
+ external order ID.
2893
+
2984
2894
  ##### limit_price: `Float`<a id="limit_price-float"></a>
2985
2895
  The limit price. Required if the order type is `LIMIT`, `STOP_LOSS_LIMIT`,
2986
2896
  unless `price_effect` is `EVEN` - a net-even order is implicitly priced at 0, so
@@ -3050,6 +2960,140 @@ before responding to the request.
3050
2960
  ---
3051
2961
 
3052
2962
 
2963
+ ### `snaptrade.trading.place_simple_order`<a id="snaptradetradingplace_simple_order"></a>
2964
+
2965
+ **Beta.** Places a single-leg or multi-leg order using a common request format for equities, equity options, futures, and future options. Breaking changes are possible while this endpoint is in beta.
2966
+
2967
+ Equity and equity-option orders use the existing brokerage trading capabilities. Futures are supported on tastytrade, Webull US, and TradeStation (live and SIM); future options are supported on tastytrade and TradeStation (live and SIM). Order types, time in force, optional fields, and strategy combinations remain subject to brokerage support. See the [brokerage trading support page](https://support.snaptrade.com/brokerages).
2968
+
2969
+ An order may contain equity/option legs or future/future_option legs, but cannot mix those two families. Equity/option strategies must share the same underlying symbol. Each strategy is submitted as one brokerage order; unsupported strategies are never split into independent orders. Tastytrade supports single-leg outright futures and up to four future-option legs, and does not support multi-leg market orders.
2970
+
2971
+ Webull US supports single-leg futures orders with buy or sell actions and positive whole-contract quantities. Supported order types are market, limit, stop, and stop_limit, with day or gtc duration. Futures options, multi-leg futures, trailing stops, and Webull Canada futures trading are not supported. Webull determines contract availability, margin requirements, and valid price increments.
2972
+
2973
+ TradeStation and TradeStation SIM support single-leg futures and futures-option orders in Futures accounts, with positive whole-contract quantities. Supported order types are market, limit, stop, and stop_limit, with day, gtc, ioc, or fok duration, subject to the contract and route's supported combinations. Futures use buy/sell; futures options use the open/close option actions. Multi-leg futures-family strategies are not supported. Prices are forwarded without rounding; TradeStation determines contract availability, permissions, margin requirements, and valid price increments.
2974
+
2975
+ All string choices use lower snake_case and are case-sensitive. Symbols retain their native format: equity tickers, OCC equity-option symbols, or brokerage-native futures symbols. For tastytrade, use the exact BrokerageInstrument ticker, including any spaces. For Webull US, use a specific unprefixed futures contract symbol such as ESZ6; slash-prefixed aliases, continuous/root-only symbols, and whitespace are not accepted. For TradeStation, use a specific two-digit-year contract such as ESZ26 or @ESZ26, or a futures-option symbol such as `ESZ26 C6000`, preserving the space and any session alias. The optional @ prefix is supported for dated futures contracts and is forwarded unchanged. Slash-prefixed aliases and root-only continuous symbols such as @ES are not accepted. A futures symbol does not need to be present in SnapTrade's local instrument catalog to submit an order.
2976
+
2977
+ A successful response contains only the brokerage order ID. Use the existing order endpoints to retrieve order details.
2978
+
2979
+
2980
+ #### 🛠️ Usage<a id="🛠️-usage"></a>
2981
+
2982
+ ```ruby
2983
+ result = snaptrade.trading.place_simple_order(
2984
+ order_type: "stop_limit",
2985
+ time_in_force: "day",
2986
+ legs: [
2987
+ {
2988
+ "instrument" => {
2989
+ "kind" => "future",
2990
+ "symbol" => "/ESZ6",
2991
+ },
2992
+ "action" => "buy",
2993
+ "units" => "1.25",
2994
+ }
2995
+ ],
2996
+ account_id: "917c8734-8470-4a3e-a18f-57c3f2ee6631",
2997
+ user_id: "snaptrade-user-123",
2998
+ user_secret: "adf2aa34-8219-40f7-a6b3-60156985cc61",
2999
+ limit_price: "1.25",
3000
+ stop_price: "1.25",
3001
+ price_effect: "debit",
3002
+ client_order_id: "550e8400-e29b-41d4-a716-446655440000",
3003
+ expiry_date: "2026-12-18T20:00:00Z",
3004
+ notional_value: "1.25",
3005
+ trading_session: "regular",
3006
+ )
3007
+ p result
3008
+ ```
3009
+
3010
+ #### ⚙️ Parameters<a id="⚙️-parameters"></a>
3011
+
3012
+ ##### order_type: [`SimpleTradeFormOrderType`](./lib/snaptrade/models/simple_trade_form_order_type.rb)<a id="order_type-simpletradeformordertypelibsnaptrademodelssimple_trade_form_order_typerb"></a>
3013
+ ##### time_in_force: [`SimpleTradeFormTimeInForce`](./lib/snaptrade/models/simple_trade_form_time_in_force.rb)<a id="time_in_force-simpletradeformtimeinforcelibsnaptrademodelssimple_trade_form_time_in_forcerb"></a>
3014
+ Order duration, subject to brokerage and execution-path support. gtd requires
3015
+ expiry_date and a non-market single-leg equity/option order. Existing single-leg
3016
+ option routing does not support ioc. Futures and multi-leg orders do not support
3017
+ gtd through this endpoint. Webull US futures only support day and gtc.
3018
+ TradeStation futures and futures options accept day, gtc, ioc, and fok, subject
3019
+ to the contract and route's supported combinations.
3020
+
3021
+ ##### legs: Array<[`SimpleTradeLeg`](./lib/snaptrade/models/simple_trade_leg.rb)><a id="legs-array"></a>
3022
+ Legs of one brokerage order. Use equity/option legs or future/future_option
3023
+ legs, without mixing the two families. Brokerage strategy and leg-count limits
3024
+ apply.
3025
+
3026
+ ##### account_id: `String`<a id="account_id-string"></a>
3027
+ The ID of the account to execute the trade on.
3028
+
3029
+ ##### user_id: `String`<a id="user_id-string"></a>
3030
+ ##### user_secret: `String`<a id="user_secret-string"></a>
3031
+ ##### limit_price: [`Float`](./lib/snaptrade/models/float.rb)<a id="limit_price-floatlibsnaptrademodelsfloatrb"></a>
3032
+ Required for limit and stop_limit orders, except that multi-leg price_effect
3033
+ even implies zero. Must be omitted or null for market and stop orders. For
3034
+ multi-leg orders this is the net strategy price. Negative prices are accepted
3035
+ only for futures-family orders, subject to brokerage support.
3036
+
3037
+ ##### stop_price: [`Float`](./lib/snaptrade/models/float.rb)<a id="stop_price-floatlibsnaptrademodelsfloatrb"></a>
3038
+ Required for stop and stop_limit orders. Must be omitted or null for market and
3039
+ limit orders. Must be positive for equity/option orders; futures-family trigger
3040
+ prices are subject to brokerage support.
3041
+
3042
+ ##### price_effect: [`SimpleTradeFormPriceEffect`](./lib/snaptrade/models/simple_trade_form_price_effect.rb)<a id="price_effect-simpletradeformpriceeffectlibsnaptrademodelssimple_trade_form_price_effectrb"></a>
3043
+ Only applicable to multi-leg limit and stop_limit orders. Requirements and
3044
+ supported values depend on the brokerage; tastytrade requires credit or debit.
3045
+ even implies a zero limit_price, which may be omitted and must be zero if
3046
+ supplied. Single-leg price effects are derived from the action.
3047
+
3048
+ ##### client_order_id: [`String`](./lib/snaptrade/models/string.rb)<a id="client_order_id-stringlibsnaptrademodelsstringrb"></a>
3049
+ Canonical UUID. Required for Wealthsimple multi-leg placement regardless of
3050
+ client-order-ID enablement; reuse it when retrying the same attempt.
3051
+ Wealthsimple multi-leg attempts retain the ID after success or failure, and
3052
+ reuse by the same user across accounts or placement endpoints returns 409
3053
+ without another submission. A 409 does not establish whether the original
3054
+ attempt was accepted; reconcile it before creating a new order with a new ID.
3055
+ Optional for other orders, forwarded where the existing execution path supports
3056
+ it and for tastytrade, Webull US, and TradeStation futures-family orders. Other
3057
+ orders require the existing client-order-ID enablement; when disabled the value
3058
+ is ignored. Brokerage behavior on duplicates varies. OAuth requests also reject
3059
+ a client_order_id the user has already used with 409. Tastytrade uses this as
3060
+ external-identifier for correlation and does not deduplicate submissions. For
3061
+ Webull US futures, SnapTrade converts the supplied UUID (or its generated order
3062
+ UUID) to lowercase 32-character hexadecimal without hyphens. The original
3063
+ supplied UUID remains in SnapTrade's trade audit; the converted value is
3064
+ returned as brokerage_order_id for subsequent order reads. For TradeStation live
3065
+ and SIM, SnapTrade encodes the supplied UUID (or its generated order UUID) as
3066
+ 22-character URL-safe base64 without padding and sends it as OrderConfirmID for
3067
+ brokerage duplicate prevention; the response contains TradeStation's separate
3068
+ order ID.
3069
+
3070
+ ##### expiry_date: `Time`<a id="expiry_date-time"></a>
3071
+ ISO 8601 expiry timestamp, required for gtd and invalid with other durations. A
3072
+ missing timezone is treated as UTC. Supported only through existing single-leg
3073
+ Public and Sandbox execution paths.
3074
+
3075
+ ##### notional_value: [`Float`](./lib/snaptrade/models/float.rb)<a id="notional_value-floatlibsnaptrademodelsfloatrb"></a>
3076
+ Positive order value, supported only for a single-equity market order on
3077
+ eligible brokerages and partners. Mutually exclusive with leg units. Omit or set
3078
+ units to null when supplied.
3079
+
3080
+ ##### trading_session: [`SimpleTradeFormTradingSession`](./lib/snaptrade/models/simple_trade_form_trading_session.rb)<a id="trading_session-simpletradeformtradingsessionlibsnaptrademodelssimple_trade_form_trading_sessionrb"></a>
3081
+ extended uses existing single-leg equity/option brokerage support and requires
3082
+ extended-hours enablement. Futures and multi-leg orders only accept regular.
3083
+
3084
+ #### 🔄 Return<a id="🔄-return"></a>
3085
+
3086
+ [SimpleTradeResponse](./lib/snaptrade/models/simple_trade_response.rb)
3087
+
3088
+ #### 🌐 Endpoint<a id="🌐-endpoint"></a>
3089
+
3090
+ `/accounts/{accountId}/trading/simple` `POST`
3091
+
3092
+ [🔙 **Back to Table of Contents**](#table-of-contents)
3093
+
3094
+ ---
3095
+
3096
+
3053
3097
  ### `snaptrade.trading.preview_crypto_order`<a id="snaptradetradingpreview_crypto_order"></a>
3054
3098
 
3055
3099
  Previews an order using the specified account.
@@ -38,7 +38,7 @@ module SnapTrade
38
38
  # @param end_date [Date] The end date (inclusive) of the transaction history to retrieve. If not provided, the default is the last transaction known to SnapTrade based on `trade_date`.
39
39
  # @param offset [Integer] An integer that specifies the starting point of the paginated results. Default is 0.
40
40
  # @param limit [Integer] An integer that specifies the maximum number of transactions to return. Default of 1000.
41
- # @param type [String] Optional comma separated list of transaction types to filter by. SnapTrade does a best effort to categorize brokerage transaction types into a common set of values. Here are some of the most popular values: - `BUY` - Asset bought. - `SELL` - Asset sold. - `DIVIDEND` - Dividend payout. - `SUBSTITUTE_DIVIDEND` - Payment in lieu of a dividend. - `CONTRIBUTION` - Cash contribution. - `WITHDRAWAL` - Cash withdrawal. - `REI` - Dividend reinvestment. - `STOCK_DIVIDEND` - A type of dividend where a company distributes shares instead of cash - `INTEREST` - Interest deposited into the account. - `FEE` - Fee withdrawn from the account. - `TAX` - A tax related fee. - `OPTIONEXPIRATION` - Option expiration event. - `OPTIONASSIGNMENT` - Option assignment event. - `OPTIONEXERCISE` - Option exercise event. - `TRANSFER` - Transfer of assets from one account to another. - `SPLIT` - A stock share split.
41
+ # @param type [String] Optional comma separated list of transaction types to filter by. SnapTrade does a best effort to categorize brokerage transaction types into a common set of values. Here are some of the most popular values: - `BUY` - Asset bought. - `SELL` - Asset sold. - `DIVIDEND` - Dividend payout. - `SUBSTITUTE_DIVIDEND` - Payment in lieu of a dividend. - `CAPITAL_GAINS_LONG` - Long-term capital-gain distribution. - `CAPITAL_GAINS_SHORT` - Short-term capital-gain distribution. - `CONTRIBUTION` - Cash contribution. - `WITHDRAWAL` - Cash withdrawal. - `REI` - Dividend reinvestment. - `STOCK_DIVIDEND` - A type of dividend where a company distributes shares instead of cash - `INTEREST` - Interest deposited into the account. - `FEE` - Fee withdrawn from the account. - `TAX` - A tax related fee. - `OPTIONEXPIRATION` - Option expiration event. - `OPTIONASSIGNMENT` - Option assignment event. - `OPTIONEXERCISE` - Option exercise event. - `TRANSFER` - Transfer of assets from one account to another. - `SPLIT` - A stock share split.
42
42
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
43
43
  def get_account_activities(account_id:, user_id:, user_secret:, start_date: SENTINEL, end_date: SENTINEL, offset: SENTINEL, limit: SENTINEL, type: SENTINEL, extra: {})
44
44
  extra[:start_date] = start_date if start_date != SENTINEL
@@ -71,7 +71,7 @@ module SnapTrade
71
71
  # @param end_date [Date] The end date (inclusive) of the transaction history to retrieve. If not provided, the default is the last transaction known to SnapTrade based on `trade_date`.
72
72
  # @param offset [Integer] An integer that specifies the starting point of the paginated results. Default is 0.
73
73
  # @param limit [Integer] An integer that specifies the maximum number of transactions to return. Default of 1000.
74
- # @param type [String] Optional comma separated list of transaction types to filter by. SnapTrade does a best effort to categorize brokerage transaction types into a common set of values. Here are some of the most popular values: - `BUY` - Asset bought. - `SELL` - Asset sold. - `DIVIDEND` - Dividend payout. - `SUBSTITUTE_DIVIDEND` - Payment in lieu of a dividend. - `CONTRIBUTION` - Cash contribution. - `WITHDRAWAL` - Cash withdrawal. - `REI` - Dividend reinvestment. - `STOCK_DIVIDEND` - A type of dividend where a company distributes shares instead of cash - `INTEREST` - Interest deposited into the account. - `FEE` - Fee withdrawn from the account. - `TAX` - A tax related fee. - `OPTIONEXPIRATION` - Option expiration event. - `OPTIONASSIGNMENT` - Option assignment event. - `OPTIONEXERCISE` - Option exercise event. - `TRANSFER` - Transfer of assets from one account to another. - `SPLIT` - A stock share split.
74
+ # @param type [String] Optional comma separated list of transaction types to filter by. SnapTrade does a best effort to categorize brokerage transaction types into a common set of values. Here are some of the most popular values: - `BUY` - Asset bought. - `SELL` - Asset sold. - `DIVIDEND` - Dividend payout. - `SUBSTITUTE_DIVIDEND` - Payment in lieu of a dividend. - `CAPITAL_GAINS_LONG` - Long-term capital-gain distribution. - `CAPITAL_GAINS_SHORT` - Short-term capital-gain distribution. - `CONTRIBUTION` - Cash contribution. - `WITHDRAWAL` - Cash withdrawal. - `REI` - Dividend reinvestment. - `STOCK_DIVIDEND` - A type of dividend where a company distributes shares instead of cash - `INTEREST` - Interest deposited into the account. - `FEE` - Fee withdrawn from the account. - `TAX` - A tax related fee. - `OPTIONEXPIRATION` - Option expiration event. - `OPTIONASSIGNMENT` - Option assignment event. - `OPTIONEXERCISE` - Option exercise event. - `TRANSFER` - Transfer of assets from one account to another. - `SPLIT` - A stock share split.
75
75
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
76
76
  def get_account_activities_with_http_info(account_id:, user_id:, user_secret:, start_date: SENTINEL, end_date: SENTINEL, offset: SENTINEL, limit: SENTINEL, type: SENTINEL, extra: {})
77
77
  extra[:start_date] = start_date if start_date != SENTINEL
@@ -92,7 +92,7 @@ module SnapTrade
92
92
  # @option opts [Date] :end_date The end date (inclusive) of the transaction history to retrieve. If not provided, the default is the last transaction known to SnapTrade based on `trade_date`.
93
93
  # @option opts [Integer] :offset An integer that specifies the starting point of the paginated results. Default is 0.
94
94
  # @option opts [Integer] :limit An integer that specifies the maximum number of transactions to return. Default of 1000.
95
- # @option opts [String] :type Optional comma separated list of transaction types to filter by. SnapTrade does a best effort to categorize brokerage transaction types into a common set of values. Here are some of the most popular values: - `BUY` - Asset bought. - `SELL` - Asset sold. - `DIVIDEND` - Dividend payout. - `SUBSTITUTE_DIVIDEND` - Payment in lieu of a dividend. - `CONTRIBUTION` - Cash contribution. - `WITHDRAWAL` - Cash withdrawal. - `REI` - Dividend reinvestment. - `STOCK_DIVIDEND` - A type of dividend where a company distributes shares instead of cash - `INTEREST` - Interest deposited into the account. - `FEE` - Fee withdrawn from the account. - `TAX` - A tax related fee. - `OPTIONEXPIRATION` - Option expiration event. - `OPTIONASSIGNMENT` - Option assignment event. - `OPTIONEXERCISE` - Option exercise event. - `TRANSFER` - Transfer of assets from one account to another. - `SPLIT` - A stock share split.
95
+ # @option opts [String] :type Optional comma separated list of transaction types to filter by. SnapTrade does a best effort to categorize brokerage transaction types into a common set of values. Here are some of the most popular values: - `BUY` - Asset bought. - `SELL` - Asset sold. - `DIVIDEND` - Dividend payout. - `SUBSTITUTE_DIVIDEND` - Payment in lieu of a dividend. - `CAPITAL_GAINS_LONG` - Long-term capital-gain distribution. - `CAPITAL_GAINS_SHORT` - Short-term capital-gain distribution. - `CONTRIBUTION` - Cash contribution. - `WITHDRAWAL` - Cash withdrawal. - `REI` - Dividend reinvestment. - `STOCK_DIVIDEND` - A type of dividend where a company distributes shares instead of cash - `INTEREST` - Interest deposited into the account. - `FEE` - Fee withdrawn from the account. - `TAX` - A tax related fee. - `OPTIONEXPIRATION` - Option expiration event. - `OPTIONASSIGNMENT` - Option assignment event. - `OPTIONEXERCISE` - Option exercise event. - `TRANSFER` - Transfer of assets from one account to another. - `SPLIT` - A stock share split.
96
96
  # @return [PaginatedUniversalActivity]
97
97
  private def get_account_activities_impl(account_id, user_id, user_secret, opts = {})
98
98
  data, _status_code, _headers = get_account_activities_with_http_info(account_id, user_id, user_secret, opts)
@@ -109,7 +109,7 @@ module SnapTrade
109
109
  # @option opts [Date] :end_date The end date (inclusive) of the transaction history to retrieve. If not provided, the default is the last transaction known to SnapTrade based on `trade_date`.
110
110
  # @option opts [Integer] :offset An integer that specifies the starting point of the paginated results. Default is 0.
111
111
  # @option opts [Integer] :limit An integer that specifies the maximum number of transactions to return. Default of 1000.
112
- # @option opts [String] :type Optional comma separated list of transaction types to filter by. SnapTrade does a best effort to categorize brokerage transaction types into a common set of values. Here are some of the most popular values: - `BUY` - Asset bought. - `SELL` - Asset sold. - `DIVIDEND` - Dividend payout. - `SUBSTITUTE_DIVIDEND` - Payment in lieu of a dividend. - `CONTRIBUTION` - Cash contribution. - `WITHDRAWAL` - Cash withdrawal. - `REI` - Dividend reinvestment. - `STOCK_DIVIDEND` - A type of dividend where a company distributes shares instead of cash - `INTEREST` - Interest deposited into the account. - `FEE` - Fee withdrawn from the account. - `TAX` - A tax related fee. - `OPTIONEXPIRATION` - Option expiration event. - `OPTIONASSIGNMENT` - Option assignment event. - `OPTIONEXERCISE` - Option exercise event. - `TRANSFER` - Transfer of assets from one account to another. - `SPLIT` - A stock share split.
112
+ # @option opts [String] :type Optional comma separated list of transaction types to filter by. SnapTrade does a best effort to categorize brokerage transaction types into a common set of values. Here are some of the most popular values: - `BUY` - Asset bought. - `SELL` - Asset sold. - `DIVIDEND` - Dividend payout. - `SUBSTITUTE_DIVIDEND` - Payment in lieu of a dividend. - `CAPITAL_GAINS_LONG` - Long-term capital-gain distribution. - `CAPITAL_GAINS_SHORT` - Short-term capital-gain distribution. - `CONTRIBUTION` - Cash contribution. - `WITHDRAWAL` - Cash withdrawal. - `REI` - Dividend reinvestment. - `STOCK_DIVIDEND` - A type of dividend where a company distributes shares instead of cash - `INTEREST` - Interest deposited into the account. - `FEE` - Fee withdrawn from the account. - `TAX` - A tax related fee. - `OPTIONEXPIRATION` - Option expiration event. - `OPTIONASSIGNMENT` - Option assignment event. - `OPTIONEXERCISE` - Option exercise event. - `TRANSFER` - Transfer of assets from one account to another. - `SPLIT` - A stock share split.
113
113
  # @return [Array<(PaginatedUniversalActivity, Integer, Hash)>] PaginatedUniversalActivity data, response status code and response headers
114
114
  private def get_account_activities_with_http_info_impl(account_id, user_id, user_secret, opts = {})
115
115
  if @api_client.config.debugging
@@ -670,9 +670,9 @@ module SnapTrade
670
670
  # @param user_secret [String]
671
671
  # @param start_date [Date] First date to include (UTC). Defaults to the earliest available transaction.
672
672
  # @param end_date [Date] Last date to include (UTC). Defaults to the latest available transaction.
673
- # @param type [String] Comma-separated activity types. A transaction matches its base type or its option action, case-insensitively. For example, BUY includes opening and closing option purchases, while BUY_TO_OPEN selects only opening purchases. A transaction matching multiple values appears once.
674
- # @param offset [Integer] Number of matching transactions to skip.
675
- # @param limit [Integer] Maximum number of transactions to return in this page.
673
+ # @param type [String] Optional comma separated list of transaction types to filter by. SnapTrade does a best effort to categorize brokerage transaction types into a common set of values. Here are some of the most popular values: - `BUY` - Asset bought. - `SELL` - Asset sold. - `BUY_TO_OPEN` - Option bought to open a long position. - `BUY_TO_CLOSE` - Option bought to close a short position. - `SELL_TO_OPEN` - Option sold to open a short position. - `SELL_TO_CLOSE` - Option sold to close a long position. - `DIVIDEND` - Dividend payout. - `SUBSTITUTE_DIVIDEND` - Payment in lieu of a dividend. - `CAPITAL_GAINS_LONG` - Long-term capital-gain distribution. - `CAPITAL_GAINS_SHORT` - Short-term capital-gain distribution. - `CONTRIBUTION` - Cash contribution. - `WITHDRAWAL` - Cash withdrawal. - `REI` - Dividend reinvestment. - `STOCK_DIVIDEND` - A type of dividend where a company distributes shares instead of cash - `INTEREST` - Interest deposited into the account. - `FEE` - Fee withdrawn from the account. - `TAX` - A tax related fee. - `OPTIONEXPIRATION` - Option expiration event. - `OPTIONASSIGNMENT` - Option assignment event. - `OPTIONEXERCISE` - Option exercise event. - `TRANSFER` - Transfer of assets from one account to another. - `SPLIT` - A stock share split.
674
+ # @param offset [Integer] An integer that specifies the starting point of the paginated results. Default is 0.
675
+ # @param limit [Integer] An integer that specifies the maximum number of transactions to return. Default of 1000.
676
676
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
677
677
  def get_account_transactions(account_id:, user_id:, user_secret:, start_date: SENTINEL, end_date: SENTINEL, type: SENTINEL, offset: 0, limit: 1000, extra: {})
678
678
  extra[:start_date] = start_date if start_date != SENTINEL
@@ -695,9 +695,9 @@ module SnapTrade
695
695
  # @param user_secret [String]
696
696
  # @param start_date [Date] First date to include (UTC). Defaults to the earliest available transaction.
697
697
  # @param end_date [Date] Last date to include (UTC). Defaults to the latest available transaction.
698
- # @param type [String] Comma-separated activity types. A transaction matches its base type or its option action, case-insensitively. For example, BUY includes opening and closing option purchases, while BUY_TO_OPEN selects only opening purchases. A transaction matching multiple values appears once.
699
- # @param offset [Integer] Number of matching transactions to skip.
700
- # @param limit [Integer] Maximum number of transactions to return in this page.
698
+ # @param type [String] Optional comma separated list of transaction types to filter by. SnapTrade does a best effort to categorize brokerage transaction types into a common set of values. Here are some of the most popular values: - `BUY` - Asset bought. - `SELL` - Asset sold. - `BUY_TO_OPEN` - Option bought to open a long position. - `BUY_TO_CLOSE` - Option bought to close a short position. - `SELL_TO_OPEN` - Option sold to open a short position. - `SELL_TO_CLOSE` - Option sold to close a long position. - `DIVIDEND` - Dividend payout. - `SUBSTITUTE_DIVIDEND` - Payment in lieu of a dividend. - `CAPITAL_GAINS_LONG` - Long-term capital-gain distribution. - `CAPITAL_GAINS_SHORT` - Short-term capital-gain distribution. - `CONTRIBUTION` - Cash contribution. - `WITHDRAWAL` - Cash withdrawal. - `REI` - Dividend reinvestment. - `STOCK_DIVIDEND` - A type of dividend where a company distributes shares instead of cash - `INTEREST` - Interest deposited into the account. - `FEE` - Fee withdrawn from the account. - `TAX` - A tax related fee. - `OPTIONEXPIRATION` - Option expiration event. - `OPTIONASSIGNMENT` - Option assignment event. - `OPTIONEXERCISE` - Option exercise event. - `TRANSFER` - Transfer of assets from one account to another. - `SPLIT` - A stock share split.
699
+ # @param offset [Integer] An integer that specifies the starting point of the paginated results. Default is 0.
700
+ # @param limit [Integer] An integer that specifies the maximum number of transactions to return. Default of 1000.
701
701
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
702
702
  def get_account_transactions_with_http_info(account_id:, user_id:, user_secret:, start_date: SENTINEL, end_date: SENTINEL, type: SENTINEL, offset: 0, limit: 1000, extra: {})
703
703
  extra[:start_date] = start_date if start_date != SENTINEL
@@ -716,9 +716,9 @@ module SnapTrade
716
716
  # @param [Hash] opts the optional parameters
717
717
  # @option opts [Date] :start_date First date to include (UTC). Defaults to the earliest available transaction.
718
718
  # @option opts [Date] :end_date Last date to include (UTC). Defaults to the latest available transaction.
719
- # @option opts [String] :type Comma-separated activity types. A transaction matches its base type or its option action, case-insensitively. For example, BUY includes opening and closing option purchases, while BUY_TO_OPEN selects only opening purchases. A transaction matching multiple values appears once.
720
- # @option opts [Integer] :offset Number of matching transactions to skip. (default to 0)
721
- # @option opts [Integer] :limit Maximum number of transactions to return in this page. (default to 1000)
719
+ # @option opts [String] :type Optional comma separated list of transaction types to filter by. SnapTrade does a best effort to categorize brokerage transaction types into a common set of values. Here are some of the most popular values: - `BUY` - Asset bought. - `SELL` - Asset sold. - `BUY_TO_OPEN` - Option bought to open a long position. - `BUY_TO_CLOSE` - Option bought to close a short position. - `SELL_TO_OPEN` - Option sold to open a short position. - `SELL_TO_CLOSE` - Option sold to close a long position. - `DIVIDEND` - Dividend payout. - `SUBSTITUTE_DIVIDEND` - Payment in lieu of a dividend. - `CAPITAL_GAINS_LONG` - Long-term capital-gain distribution. - `CAPITAL_GAINS_SHORT` - Short-term capital-gain distribution. - `CONTRIBUTION` - Cash contribution. - `WITHDRAWAL` - Cash withdrawal. - `REI` - Dividend reinvestment. - `STOCK_DIVIDEND` - A type of dividend where a company distributes shares instead of cash - `INTEREST` - Interest deposited into the account. - `FEE` - Fee withdrawn from the account. - `TAX` - A tax related fee. - `OPTIONEXPIRATION` - Option expiration event. - `OPTIONASSIGNMENT` - Option assignment event. - `OPTIONEXERCISE` - Option exercise event. - `TRANSFER` - Transfer of assets from one account to another. - `SPLIT` - A stock share split.
720
+ # @option opts [Integer] :offset An integer that specifies the starting point of the paginated results. Default is 0. (default to 0)
721
+ # @option opts [Integer] :limit An integer that specifies the maximum number of transactions to return. Default of 1000. (default to 1000)
722
722
  # @return [AccountTransactionsResponse]
723
723
  private def get_account_transactions_impl(account_id, user_id, user_secret, opts = {})
724
724
  data, _status_code, _headers = get_account_transactions_with_http_info(account_id, user_id, user_secret, opts)
@@ -733,9 +733,9 @@ module SnapTrade
733
733
  # @param [Hash] opts the optional parameters
734
734
  # @option opts [Date] :start_date First date to include (UTC). Defaults to the earliest available transaction.
735
735
  # @option opts [Date] :end_date Last date to include (UTC). Defaults to the latest available transaction.
736
- # @option opts [String] :type Comma-separated activity types. A transaction matches its base type or its option action, case-insensitively. For example, BUY includes opening and closing option purchases, while BUY_TO_OPEN selects only opening purchases. A transaction matching multiple values appears once.
737
- # @option opts [Integer] :offset Number of matching transactions to skip. (default to 0)
738
- # @option opts [Integer] :limit Maximum number of transactions to return in this page. (default to 1000)
736
+ # @option opts [String] :type Optional comma separated list of transaction types to filter by. SnapTrade does a best effort to categorize brokerage transaction types into a common set of values. Here are some of the most popular values: - `BUY` - Asset bought. - `SELL` - Asset sold. - `BUY_TO_OPEN` - Option bought to open a long position. - `BUY_TO_CLOSE` - Option bought to close a short position. - `SELL_TO_OPEN` - Option sold to open a short position. - `SELL_TO_CLOSE` - Option sold to close a long position. - `DIVIDEND` - Dividend payout. - `SUBSTITUTE_DIVIDEND` - Payment in lieu of a dividend. - `CAPITAL_GAINS_LONG` - Long-term capital-gain distribution. - `CAPITAL_GAINS_SHORT` - Short-term capital-gain distribution. - `CONTRIBUTION` - Cash contribution. - `WITHDRAWAL` - Cash withdrawal. - `REI` - Dividend reinvestment. - `STOCK_DIVIDEND` - A type of dividend where a company distributes shares instead of cash - `INTEREST` - Interest deposited into the account. - `FEE` - Fee withdrawn from the account. - `TAX` - A tax related fee. - `OPTIONEXPIRATION` - Option expiration event. - `OPTIONASSIGNMENT` - Option assignment event. - `OPTIONEXERCISE` - Option exercise event. - `TRANSFER` - Transfer of assets from one account to another. - `SPLIT` - A stock share split.
737
+ # @option opts [Integer] :offset An integer that specifies the starting point of the paginated results. Default is 0. (default to 0)
738
+ # @option opts [Integer] :limit An integer that specifies the maximum number of transactions to return. Default of 1000. (default to 1000)
739
739
  # @return [Array<(AccountTransactionsResponse, Integer, Hash)>] AccountTransactionsResponse data, response status code and response headers
740
740
  private def get_account_transactions_with_http_info_impl(account_id, user_id, user_secret, opts = {})
741
741
  if @api_client.config.debugging