snaptrade 3.0.64 → 3.0.65
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 +56 -14
- data/lib/snaptrade/api/account_information_api.rb +12 -12
- data/lib/snaptrade/api/experimental_endpoints_api.rb +2 -2
- data/lib/snaptrade/api/trading_api.rb +18 -6
- data/lib/snaptrade/models/activity.rb +4 -4
- data/lib/snaptrade/models/mleg_trade_form.rb +11 -1
- data/lib/snaptrade/models/simple_trade_form.rb +1 -1
- data/lib/snaptrade/models/trading_place_mleg_order409_response.rb +234 -0
- data/lib/snaptrade/version.rb +1 -1
- data/lib/snaptrade.rb +1 -0
- data/spec/api/account_information_api_spec.rb +3 -3
- data/spec/api/trading_api_spec.rb +1 -1
- data/spec/models/mleg_trade_form_spec.rb +6 -0
- data/spec/models/trading_place_mleg_order409_response_spec.rb +41 -0
- metadata +296 -293
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c99aa5913aa185773f6a66b393ecff5eef59f2ace08ee289d421955ec80475cb
|
|
4
|
+
data.tar.gz: 5a0c70c65e5e4631dbcae7701ae485c4b7781d5b1917d30e7eb0f865a30a1463
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b2eb853318086a2471cd189be46c6af177571afd92f90a7697dea0f787b130e8c756aa0942f73bc0dc94fb4a89b3aa9de15df257bab9e9ed86ef3e9952cea953
|
|
7
|
+
data.tar.gz: a38ae375410afcaee1f1f2ba2bf6ea50d5df4b3b75dae4ad1f517c98a97c6148e589b5d94c1ea287ff8ebb741a021a7973a4f3effd681ff3ba7f3b7fa49f6f2a
|
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
|
-
[](https://rubygems.org/gems/snaptrade/versions/3.0.65)
|
|
67
67
|
[](https://snaptrade.com/)
|
|
68
68
|
|
|
69
69
|
</div>
|
|
@@ -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.
|
|
153
|
+
gem 'snaptrade', '~> 3.0.65'
|
|
154
154
|
```
|
|
155
155
|
|
|
156
156
|
## Getting Started<a id="getting-started"></a>
|
|
@@ -481,16 +481,29 @@ First date to include (UTC). Defaults to the earliest available transaction.
|
|
|
481
481
|
Last date to include (UTC). Defaults to the latest available transaction.
|
|
482
482
|
|
|
483
483
|
##### type: `String`<a id="type-string"></a>
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
484
|
+
Optional comma separated list of transaction types to filter by. SnapTrade does
|
|
485
|
+
a best effort to categorize brokerage transaction types into a common set of
|
|
486
|
+
values. Here are some of the most popular values: - `BUY` - Asset bought. -
|
|
487
|
+
`SELL` - Asset sold. - `BUY_TO_OPEN` - Option bought to open a long position. -
|
|
488
|
+
`BUY_TO_CLOSE` - Option bought to close a short position. - `SELL_TO_OPEN` -
|
|
489
|
+
Option sold to open a short position. - `SELL_TO_CLOSE` - Option sold to close a
|
|
490
|
+
long position. - `DIVIDEND` - Dividend payout. - `SUBSTITUTE_DIVIDEND` - Payment
|
|
491
|
+
in lieu of a dividend. - `CONTRIBUTION` - Cash contribution. - `WITHDRAWAL` -
|
|
492
|
+
Cash withdrawal. - `REI` - Dividend reinvestment. - `STOCK_DIVIDEND` - A type of
|
|
493
|
+
dividend where a company distributes shares instead of cash - `INTEREST` -
|
|
494
|
+
Interest deposited into the account. - `FEE` - Fee withdrawn from the account. -
|
|
495
|
+
`TAX` - A tax related fee. - `OPTIONEXPIRATION` - Option expiration event. -
|
|
496
|
+
`OPTIONASSIGNMENT` - Option assignment event. - `OPTIONEXERCISE` - Option
|
|
497
|
+
exercise event. - `TRANSFER` - Transfer of assets from one account to another. -
|
|
498
|
+
`SPLIT` - A stock share split.
|
|
488
499
|
|
|
489
500
|
##### offset: `Integer`<a id="offset-integer"></a>
|
|
490
|
-
|
|
501
|
+
An integer that specifies the starting point of the paginated results. Default
|
|
502
|
+
is 0.
|
|
491
503
|
|
|
492
504
|
##### limit: `Integer`<a id="limit-integer"></a>
|
|
493
|
-
|
|
505
|
+
An integer that specifies the maximum number of transactions to return. Default
|
|
506
|
+
of 1000.
|
|
494
507
|
|
|
495
508
|
#### 🔄 Return<a id="🔄-return"></a>
|
|
496
509
|
|
|
@@ -1953,12 +1966,17 @@ even implies a zero limit_price, which may be omitted and must be zero if
|
|
|
1953
1966
|
supplied. Single-leg price effects are derived from the action.
|
|
1954
1967
|
|
|
1955
1968
|
##### client_order_id: [`String`](./lib/snaptrade/models/string.rb)<a id="client_order_id-stringlibsnaptrademodelsstringrb"></a>
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1969
|
+
Canonical UUID. Required for Wealthsimple multi-leg placement regardless of
|
|
1970
|
+
client-order-ID enablement; reuse it when retrying the same attempt.
|
|
1971
|
+
Wealthsimple multi-leg attempts retain the ID after success or failure, and
|
|
1972
|
+
reuse by the same user across accounts or placement endpoints returns 409
|
|
1973
|
+
without another submission. A 409 does not establish whether the original
|
|
1974
|
+
attempt was accepted; reconcile it before creating a new order with a new ID.
|
|
1975
|
+
Optional for other orders, forwarded where the existing execution path supports
|
|
1976
|
+
it and for tastytrade, Webull US, and TradeStation futures-family orders. Other
|
|
1977
|
+
orders require the existing client-order-ID enablement; when disabled the value
|
|
1978
|
+
is ignored. Brokerage behavior on duplicates varies. OAuth requests also reject
|
|
1979
|
+
a client_order_id the user has already used with 409. Tastytrade uses this as
|
|
1962
1980
|
external-identifier for correlation and does not deduplicate submissions. For
|
|
1963
1981
|
Webull US futures, SnapTrade converts the supplied UUID (or its generated order
|
|
1964
1982
|
UUID) to lowercase 32-character hexadecimal without hyphens. The original
|
|
@@ -2435,6 +2453,7 @@ result = snaptrade.trading.get_option_impact(
|
|
|
2435
2453
|
user_id: "snaptrade-user-123",
|
|
2436
2454
|
user_secret: "adf2aa34-8219-40f7-a6b3-60156985cc61",
|
|
2437
2455
|
account_id: "917c8734-8470-4a3e-a18f-57c3f2ee6631",
|
|
2456
|
+
client_order_id: "3e8b682d-c901-4b2d-a67f-70f73b04a29e",
|
|
2438
2457
|
limit_price: "",
|
|
2439
2458
|
stop_price: "",
|
|
2440
2459
|
price_effect: "DEBIT",
|
|
@@ -2461,6 +2480,16 @@ immediately will be canceled.
|
|
|
2461
2480
|
##### user_id: `String`<a id="user_id-string"></a>
|
|
2462
2481
|
##### user_secret: `String`<a id="user_secret-string"></a>
|
|
2463
2482
|
##### account_id: `String`<a id="account_id-string"></a>
|
|
2483
|
+
##### client_order_id: `String`<a id="client_order_id-string"></a>
|
|
2484
|
+
Canonical 36-character UUID required when placing a Wealthsimple order with two
|
|
2485
|
+
or more legs. Not required for an impact preview or single-leg request. Reuse it
|
|
2486
|
+
when retrying the same attempt. SnapTrade retains the ID after success or
|
|
2487
|
+
failure; reuse by the same user across accounts or placement endpoints returns
|
|
2488
|
+
409 without submitting again. A 409 does not establish whether the original
|
|
2489
|
+
attempt was accepted; reconcile it before using a new ID for a genuinely new
|
|
2490
|
+
order. This protection does not depend on Wealthsimple deduplicating its
|
|
2491
|
+
external order ID.
|
|
2492
|
+
|
|
2464
2493
|
##### limit_price: `Float`<a id="limit_price-float"></a>
|
|
2465
2494
|
The limit price. Required if the order type is `LIMIT`, `STOP_LOSS_LIMIT`,
|
|
2466
2495
|
unless `price_effect` is `EVEN` - a net-even order is implicitly priced at 0, so
|
|
@@ -2935,6 +2964,8 @@ contracts to buy or sell. (e.g., 1 contract = 100 shares).
|
|
|
2935
2964
|
|
|
2936
2965
|
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
2966
|
|
|
2967
|
+
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.
|
|
2968
|
+
|
|
2938
2969
|
|
|
2939
2970
|
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
2940
2971
|
|
|
@@ -2955,6 +2986,7 @@ result = snaptrade.trading.place_mleg_order(
|
|
|
2955
2986
|
user_id: "snaptrade-user-123",
|
|
2956
2987
|
user_secret: "adf2aa34-8219-40f7-a6b3-60156985cc61",
|
|
2957
2988
|
account_id: "917c8734-8470-4a3e-a18f-57c3f2ee6631",
|
|
2989
|
+
client_order_id: "3e8b682d-c901-4b2d-a67f-70f73b04a29e",
|
|
2958
2990
|
limit_price: "",
|
|
2959
2991
|
stop_price: "",
|
|
2960
2992
|
price_effect: "DEBIT",
|
|
@@ -2981,6 +3013,16 @@ immediately will be canceled.
|
|
|
2981
3013
|
##### user_id: `String`<a id="user_id-string"></a>
|
|
2982
3014
|
##### user_secret: `String`<a id="user_secret-string"></a>
|
|
2983
3015
|
##### account_id: `String`<a id="account_id-string"></a>
|
|
3016
|
+
##### client_order_id: `String`<a id="client_order_id-string"></a>
|
|
3017
|
+
Canonical 36-character UUID required when placing a Wealthsimple order with two
|
|
3018
|
+
or more legs. Not required for an impact preview or single-leg request. Reuse it
|
|
3019
|
+
when retrying the same attempt. SnapTrade retains the ID after success or
|
|
3020
|
+
failure; reuse by the same user across accounts or placement endpoints returns
|
|
3021
|
+
409 without submitting again. A 409 does not establish whether the original
|
|
3022
|
+
attempt was accepted; reconcile it before using a new ID for a genuinely new
|
|
3023
|
+
order. This protection does not depend on Wealthsimple deduplicating its
|
|
3024
|
+
external order ID.
|
|
3025
|
+
|
|
2984
3026
|
##### limit_price: `Float`<a id="limit_price-float"></a>
|
|
2985
3027
|
The limit price. Required if the order type is `LIMIT`, `STOP_LOSS_LIMIT`,
|
|
2986
3028
|
unless `price_effect` is `EVEN` - a net-even order is implicitly priced at 0, so
|
|
@@ -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]
|
|
674
|
-
# @param offset [Integer]
|
|
675
|
-
# @param limit [Integer]
|
|
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. - `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]
|
|
699
|
-
# @param offset [Integer]
|
|
700
|
-
# @param limit [Integer]
|
|
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. - `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
|
|
720
|
-
# @option opts [Integer] :offset
|
|
721
|
-
# @option opts [Integer] :limit
|
|
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. - `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
|
|
737
|
-
# @option opts [Integer] :offset
|
|
738
|
-
# @option opts [Integer] :limit
|
|
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. - `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
|
|
@@ -719,7 +719,7 @@ module SnapTrade
|
|
|
719
719
|
# @param limit_price [Float] Required for limit and stop_limit orders, except that multi-leg price_effect even implies zero. Must be omitted or null for market and stop orders. For multi-leg orders this is the net strategy price. Negative prices are accepted only for futures-family orders, subject to brokerage support.
|
|
720
720
|
# @param stop_price [Float] Required for stop and stop_limit orders. Must be omitted or null for market and limit orders. Must be positive for equity/option orders; futures-family trigger prices are subject to brokerage support.
|
|
721
721
|
# @param price_effect [SimpleTradeFormPriceEffect] Only applicable to multi-leg limit and stop_limit orders. Requirements and supported values depend on the brokerage; tastytrade requires credit or debit. even implies a zero limit_price, which may be omitted and must be zero if supplied. Single-leg price effects are derived from the action.
|
|
722
|
-
# @param client_order_id [String] Optional
|
|
722
|
+
# @param client_order_id [String] Canonical UUID. Required for Wealthsimple multi-leg placement regardless of client-order-ID enablement; reuse it when retrying the same attempt. Wealthsimple multi-leg attempts retain the ID after success or failure, and reuse by the same user across accounts or placement endpoints returns 409 without another submission. A 409 does not establish whether the original attempt was accepted; reconcile it before creating a new order with a new ID. Optional for other orders, forwarded where the existing execution path supports it and for tastytrade, Webull US, and TradeStation futures-family orders. Other orders require the existing client-order-ID enablement; when disabled the value is ignored. Brokerage behavior on duplicates varies. OAuth requests also reject a client_order_id the user has already used with 409. Tastytrade uses this as external-identifier for correlation and does not deduplicate submissions. For Webull US futures, SnapTrade converts the supplied UUID (or its generated order UUID) to lowercase 32-character hexadecimal without hyphens. The original supplied UUID remains in SnapTrade's trade audit; the converted value is returned as brokerage_order_id for subsequent order reads. For TradeStation live and SIM, SnapTrade encodes the supplied UUID (or its generated order UUID) as 22-character URL-safe base64 without padding and sends it as OrderConfirmID for brokerage duplicate prevention; the response contains TradeStation's separate order ID.
|
|
723
723
|
# @param expiry_date [Time] ISO 8601 expiry timestamp, required for gtd and invalid with other durations. A missing timezone is treated as UTC. Supported only through existing single-leg Public and Sandbox execution paths.
|
|
724
724
|
# @param notional_value [Float] Positive order value, supported only for a single-equity market order on eligible brokerages and partners. Mutually exclusive with leg units. Omit or set units to null when supplied.
|
|
725
725
|
# @param trading_session [SimpleTradeFormTradingSession] extended uses existing single-leg equity/option brokerage support and requires extended-hours enablement. Futures and multi-leg orders only accept regular.
|
|
@@ -767,7 +767,7 @@ module SnapTrade
|
|
|
767
767
|
# @param limit_price [Float] Required for limit and stop_limit orders, except that multi-leg price_effect even implies zero. Must be omitted or null for market and stop orders. For multi-leg orders this is the net strategy price. Negative prices are accepted only for futures-family orders, subject to brokerage support.
|
|
768
768
|
# @param stop_price [Float] Required for stop and stop_limit orders. Must be omitted or null for market and limit orders. Must be positive for equity/option orders; futures-family trigger prices are subject to brokerage support.
|
|
769
769
|
# @param price_effect [SimpleTradeFormPriceEffect] Only applicable to multi-leg limit and stop_limit orders. Requirements and supported values depend on the brokerage; tastytrade requires credit or debit. even implies a zero limit_price, which may be omitted and must be zero if supplied. Single-leg price effects are derived from the action.
|
|
770
|
-
# @param client_order_id [String] Optional
|
|
770
|
+
# @param client_order_id [String] Canonical UUID. Required for Wealthsimple multi-leg placement regardless of client-order-ID enablement; reuse it when retrying the same attempt. Wealthsimple multi-leg attempts retain the ID after success or failure, and reuse by the same user across accounts or placement endpoints returns 409 without another submission. A 409 does not establish whether the original attempt was accepted; reconcile it before creating a new order with a new ID. Optional for other orders, forwarded where the existing execution path supports it and for tastytrade, Webull US, and TradeStation futures-family orders. Other orders require the existing client-order-ID enablement; when disabled the value is ignored. Brokerage behavior on duplicates varies. OAuth requests also reject a client_order_id the user has already used with 409. Tastytrade uses this as external-identifier for correlation and does not deduplicate submissions. For Webull US futures, SnapTrade converts the supplied UUID (or its generated order UUID) to lowercase 32-character hexadecimal without hyphens. The original supplied UUID remains in SnapTrade's trade audit; the converted value is returned as brokerage_order_id for subsequent order reads. For TradeStation live and SIM, SnapTrade encodes the supplied UUID (or its generated order UUID) as 22-character URL-safe base64 without padding and sends it as OrderConfirmID for brokerage duplicate prevention; the response contains TradeStation's separate order ID.
|
|
771
771
|
# @param expiry_date [Time] ISO 8601 expiry timestamp, required for gtd and invalid with other durations. A missing timezone is treated as UTC. Supported only through existing single-leg Public and Sandbox execution paths.
|
|
772
772
|
# @param notional_value [Float] Positive order value, supported only for a single-equity market order on eligible brokerages and partners. Mutually exclusive with leg units. Omit or set units to null when supplied.
|
|
773
773
|
# @param trading_session [SimpleTradeFormTradingSession] extended uses existing single-leg equity/option brokerage support and requires extended-hours enablement. Futures and multi-leg orders only accept regular.
|
|
@@ -263,13 +263,15 @@ module SnapTrade
|
|
|
263
263
|
# @param user_id [String]
|
|
264
264
|
# @param user_secret [String]
|
|
265
265
|
# @param account_id [String]
|
|
266
|
+
# @param client_order_id [String] Canonical 36-character UUID required when placing a Wealthsimple order with two or more legs. Not required for an impact preview or single-leg request. Reuse it when retrying the same attempt. SnapTrade retains the ID after success or failure; reuse by the same user across accounts or placement endpoints returns 409 without submitting again. A 409 does not establish whether the original attempt was accepted; reconcile it before using a new ID for a genuinely new order. This protection does not depend on Wealthsimple deduplicating its external order ID.
|
|
266
267
|
# @param limit_price [Float] The limit price. Required if the order type is `LIMIT`, `STOP_LOSS_LIMIT`, unless `price_effect` is `EVEN` - a net-even order is implicitly priced at 0, so the field may be omitted and must be `0` if sent.
|
|
267
268
|
# @param stop_price [Float] The stop price. Required if the order type is `STOP_LOSS_MARKET`, `STOP_LOSS_LIMIT`.
|
|
268
269
|
# @param price_effect [MlegPriceEffectStrict]
|
|
269
270
|
# @param body [MlegTradeForm]
|
|
270
271
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
|
271
|
-
def get_option_impact(order_type:, time_in_force:, legs:, user_id:, user_secret:, account_id:, limit_price: SENTINEL, stop_price: SENTINEL, price_effect: SENTINEL, extra: {})
|
|
272
|
+
def get_option_impact(order_type:, time_in_force:, legs:, user_id:, user_secret:, account_id:, client_order_id: SENTINEL, limit_price: SENTINEL, stop_price: SENTINEL, price_effect: SENTINEL, extra: {})
|
|
272
273
|
_body = {}
|
|
274
|
+
_body[:client_order_id] = client_order_id if client_order_id != SENTINEL
|
|
273
275
|
_body[:order_type] = order_type if order_type != SENTINEL
|
|
274
276
|
_body[:time_in_force] = time_in_force if time_in_force != SENTINEL
|
|
275
277
|
_body[:limit_price] = limit_price if limit_price != SENTINEL
|
|
@@ -292,13 +294,15 @@ module SnapTrade
|
|
|
292
294
|
# @param user_id [String]
|
|
293
295
|
# @param user_secret [String]
|
|
294
296
|
# @param account_id [String]
|
|
297
|
+
# @param client_order_id [String] Canonical 36-character UUID required when placing a Wealthsimple order with two or more legs. Not required for an impact preview or single-leg request. Reuse it when retrying the same attempt. SnapTrade retains the ID after success or failure; reuse by the same user across accounts or placement endpoints returns 409 without submitting again. A 409 does not establish whether the original attempt was accepted; reconcile it before using a new ID for a genuinely new order. This protection does not depend on Wealthsimple deduplicating its external order ID.
|
|
295
298
|
# @param limit_price [Float] The limit price. Required if the order type is `LIMIT`, `STOP_LOSS_LIMIT`, unless `price_effect` is `EVEN` - a net-even order is implicitly priced at 0, so the field may be omitted and must be `0` if sent.
|
|
296
299
|
# @param stop_price [Float] The stop price. Required if the order type is `STOP_LOSS_MARKET`, `STOP_LOSS_LIMIT`.
|
|
297
300
|
# @param price_effect [MlegPriceEffectStrict]
|
|
298
301
|
# @param body [MlegTradeForm]
|
|
299
302
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
|
300
|
-
def get_option_impact_with_http_info(order_type:, time_in_force:, legs:, user_id:, user_secret:, account_id:, limit_price: SENTINEL, stop_price: SENTINEL, price_effect: SENTINEL, extra: {})
|
|
303
|
+
def get_option_impact_with_http_info(order_type:, time_in_force:, legs:, user_id:, user_secret:, account_id:, client_order_id: SENTINEL, limit_price: SENTINEL, stop_price: SENTINEL, price_effect: SENTINEL, extra: {})
|
|
301
304
|
_body = {}
|
|
305
|
+
_body[:client_order_id] = client_order_id if client_order_id != SENTINEL
|
|
302
306
|
_body[:order_type] = order_type if order_type != SENTINEL
|
|
303
307
|
_body[:time_in_force] = time_in_force if time_in_force != SENTINEL
|
|
304
308
|
_body[:limit_price] = limit_price if limit_price != SENTINEL
|
|
@@ -1304,6 +1308,8 @@ module SnapTrade
|
|
|
1304
1308
|
# Place option order
|
|
1305
1309
|
#
|
|
1306
1310
|
# Places a multi-leg option order. Only supported on certain option trading brokerages. https://support.snaptrade.com/brokerages has information on brokerage trading support
|
|
1311
|
+
#
|
|
1312
|
+
# 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.
|
|
1307
1313
|
#
|
|
1308
1314
|
# @param order_type [MlegOrderTypeStrict] The type of order to place.
|
|
1309
1315
|
# @param time_in_force [TimeInForceStrict] The Time in Force type for the order. This field indicates how long the order will remain active before it is executed or expires. Here are the supported values: - `Day` - Day. The order is valid only for the trading day on which it is placed. - `GTC` - Good Til Canceled. The order is valid until it is executed or canceled. - `FOK` - Fill Or Kill. The order must be executed in its entirety immediately or be canceled completely. - `IOC` - Immediate Or Cancel. The order must be executed immediately. Any portion of the order that cannot be filled immediately will be canceled.
|
|
@@ -1311,13 +1317,15 @@ module SnapTrade
|
|
|
1311
1317
|
# @param user_id [String]
|
|
1312
1318
|
# @param user_secret [String]
|
|
1313
1319
|
# @param account_id [String]
|
|
1320
|
+
# @param client_order_id [String] Canonical 36-character UUID required when placing a Wealthsimple order with two or more legs. Not required for an impact preview or single-leg request. Reuse it when retrying the same attempt. SnapTrade retains the ID after success or failure; reuse by the same user across accounts or placement endpoints returns 409 without submitting again. A 409 does not establish whether the original attempt was accepted; reconcile it before using a new ID for a genuinely new order. This protection does not depend on Wealthsimple deduplicating its external order ID.
|
|
1314
1321
|
# @param limit_price [Float] The limit price. Required if the order type is `LIMIT`, `STOP_LOSS_LIMIT`, unless `price_effect` is `EVEN` - a net-even order is implicitly priced at 0, so the field may be omitted and must be `0` if sent.
|
|
1315
1322
|
# @param stop_price [Float] The stop price. Required if the order type is `STOP_LOSS_MARKET`, `STOP_LOSS_LIMIT`.
|
|
1316
1323
|
# @param price_effect [MlegPriceEffectStrict]
|
|
1317
1324
|
# @param body [MlegTradeForm]
|
|
1318
1325
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
|
1319
|
-
def place_mleg_order(order_type:, time_in_force:, legs:, user_id:, user_secret:, account_id:, limit_price: SENTINEL, stop_price: SENTINEL, price_effect: SENTINEL, extra: {})
|
|
1326
|
+
def place_mleg_order(order_type:, time_in_force:, legs:, user_id:, user_secret:, account_id:, client_order_id: SENTINEL, limit_price: SENTINEL, stop_price: SENTINEL, price_effect: SENTINEL, extra: {})
|
|
1320
1327
|
_body = {}
|
|
1328
|
+
_body[:client_order_id] = client_order_id if client_order_id != SENTINEL
|
|
1321
1329
|
_body[:order_type] = order_type if order_type != SENTINEL
|
|
1322
1330
|
_body[:time_in_force] = time_in_force if time_in_force != SENTINEL
|
|
1323
1331
|
_body[:limit_price] = limit_price if limit_price != SENTINEL
|
|
@@ -1332,6 +1340,8 @@ module SnapTrade
|
|
|
1332
1340
|
# Place option order
|
|
1333
1341
|
#
|
|
1334
1342
|
# Places a multi-leg option order. Only supported on certain option trading brokerages. https://support.snaptrade.com/brokerages has information on brokerage trading support
|
|
1343
|
+
#
|
|
1344
|
+
# 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.
|
|
1335
1345
|
#
|
|
1336
1346
|
# @param order_type [MlegOrderTypeStrict] The type of order to place.
|
|
1337
1347
|
# @param time_in_force [TimeInForceStrict] The Time in Force type for the order. This field indicates how long the order will remain active before it is executed or expires. Here are the supported values: - `Day` - Day. The order is valid only for the trading day on which it is placed. - `GTC` - Good Til Canceled. The order is valid until it is executed or canceled. - `FOK` - Fill Or Kill. The order must be executed in its entirety immediately or be canceled completely. - `IOC` - Immediate Or Cancel. The order must be executed immediately. Any portion of the order that cannot be filled immediately will be canceled.
|
|
@@ -1339,13 +1349,15 @@ module SnapTrade
|
|
|
1339
1349
|
# @param user_id [String]
|
|
1340
1350
|
# @param user_secret [String]
|
|
1341
1351
|
# @param account_id [String]
|
|
1352
|
+
# @param client_order_id [String] Canonical 36-character UUID required when placing a Wealthsimple order with two or more legs. Not required for an impact preview or single-leg request. Reuse it when retrying the same attempt. SnapTrade retains the ID after success or failure; reuse by the same user across accounts or placement endpoints returns 409 without submitting again. A 409 does not establish whether the original attempt was accepted; reconcile it before using a new ID for a genuinely new order. This protection does not depend on Wealthsimple deduplicating its external order ID.
|
|
1342
1353
|
# @param limit_price [Float] The limit price. Required if the order type is `LIMIT`, `STOP_LOSS_LIMIT`, unless `price_effect` is `EVEN` - a net-even order is implicitly priced at 0, so the field may be omitted and must be `0` if sent.
|
|
1343
1354
|
# @param stop_price [Float] The stop price. Required if the order type is `STOP_LOSS_MARKET`, `STOP_LOSS_LIMIT`.
|
|
1344
1355
|
# @param price_effect [MlegPriceEffectStrict]
|
|
1345
1356
|
# @param body [MlegTradeForm]
|
|
1346
1357
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
|
1347
|
-
def place_mleg_order_with_http_info(order_type:, time_in_force:, legs:, user_id:, user_secret:, account_id:, limit_price: SENTINEL, stop_price: SENTINEL, price_effect: SENTINEL, extra: {})
|
|
1358
|
+
def place_mleg_order_with_http_info(order_type:, time_in_force:, legs:, user_id:, user_secret:, account_id:, client_order_id: SENTINEL, limit_price: SENTINEL, stop_price: SENTINEL, price_effect: SENTINEL, extra: {})
|
|
1348
1359
|
_body = {}
|
|
1360
|
+
_body[:client_order_id] = client_order_id if client_order_id != SENTINEL
|
|
1349
1361
|
_body[:order_type] = order_type if order_type != SENTINEL
|
|
1350
1362
|
_body[:time_in_force] = time_in_force if time_in_force != SENTINEL
|
|
1351
1363
|
_body[:limit_price] = limit_price if limit_price != SENTINEL
|
|
@@ -1357,7 +1369,7 @@ module SnapTrade
|
|
|
1357
1369
|
end
|
|
1358
1370
|
|
|
1359
1371
|
# Place option order
|
|
1360
|
-
# Places a multi-leg option order. Only supported on certain option trading brokerages. https://support.snaptrade.com/brokerages has information on brokerage trading support
|
|
1372
|
+
# Places a multi-leg option order. Only supported on certain option trading brokerages. https://support.snaptrade.com/brokerages has information on brokerage trading support 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.
|
|
1361
1373
|
# @param user_id [String]
|
|
1362
1374
|
# @param user_secret [String]
|
|
1363
1375
|
# @param account_id [String]
|
|
@@ -1370,7 +1382,7 @@ module SnapTrade
|
|
|
1370
1382
|
end
|
|
1371
1383
|
|
|
1372
1384
|
# Place option order
|
|
1373
|
-
# Places a multi-leg option order. Only supported on certain option trading brokerages. https://support.snaptrade.com/brokerages has information on brokerage trading support
|
|
1385
|
+
# Places a multi-leg option order. Only supported on certain option trading brokerages. https://support.snaptrade.com/brokerages has information on brokerage trading support 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.
|
|
1374
1386
|
# @param user_id [String]
|
|
1375
1387
|
# @param user_secret [String]
|
|
1376
1388
|
# @param account_id [String]
|
|
@@ -16,7 +16,7 @@ module SnapTrade
|
|
|
16
16
|
# A stable and unique transaction id when available
|
|
17
17
|
attr_accessor :transaction_id
|
|
18
18
|
|
|
19
|
-
#
|
|
19
|
+
# A string representing the type of transaction. SnapTrade does a best effort to categorize the brokerage transaction types into a common set of values. Here are some of the most popular values: - `BUY` - Asset bought. - `SELL` - Asset sold. - `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. - `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 asset(s) from one account to another. - `EXTERNAL_ASSET_TRANSFER_IN` - Incoming transfer of an asset from an external account to this account. - `EXTERNAL_ASSET_TRANSFER_OUT` - Outgoing transfer of an asset from this account to an external account. - `SPLIT` - A stock share split. - `ADJUSTMENT` - A one time adjustment of the account's cash balance or shares of an asset
|
|
20
20
|
attr_accessor :type
|
|
21
21
|
|
|
22
22
|
# Recorded date and time in UTC. Precision depends on what the brokerage supplies.
|
|
@@ -29,13 +29,13 @@ module SnapTrade
|
|
|
29
29
|
|
|
30
30
|
attr_accessor :priced_in
|
|
31
31
|
|
|
32
|
-
#
|
|
32
|
+
# The amount of the transaction denominated in `priced_in`. This can be positive or negative. In general, transactions that positively affect the account balance (like sell, deposits, dividends, etc) will have a positive amount, while transactions that negatively affect the account balance (like buy, withdrawals, fees, etc) will have a negative amount.
|
|
33
33
|
attr_accessor :amount
|
|
34
34
|
|
|
35
|
-
#
|
|
35
|
+
# The price of the security for the transaction. This is mostly applicable to `BUY`, `SELL`, and `DIVIDEND` transactions. For option transactions, this represents the price per share of the option contract.
|
|
36
36
|
attr_accessor :price
|
|
37
37
|
|
|
38
|
-
#
|
|
38
|
+
# The number of units of the security for the transaction. This is mostly applicable to `BUY`, `SELL`, and `DIVIDEND` transactions. In general, BUYs result in positive units while SELLs result in negative due to the shares leaving the account
|
|
39
39
|
attr_accessor :units
|
|
40
40
|
|
|
41
41
|
# Recorded fee. Some missing brokerage fees are stored as zero.
|
|
@@ -13,6 +13,9 @@ require 'time'
|
|
|
13
13
|
module SnapTrade
|
|
14
14
|
# Inputs for placing a multi-leg order with the brokerage.
|
|
15
15
|
class MlegTradeForm
|
|
16
|
+
# Canonical 36-character UUID required when placing a Wealthsimple order with two or more legs. Not required for an impact preview or single-leg request. Reuse it when retrying the same attempt. SnapTrade retains the ID after success or failure; reuse by the same user across accounts or placement endpoints returns 409 without submitting again. A 409 does not establish whether the original attempt was accepted; reconcile it before using a new ID for a genuinely new order. This protection does not depend on Wealthsimple deduplicating its external order ID.
|
|
17
|
+
attr_accessor :client_order_id
|
|
18
|
+
|
|
16
19
|
# The type of order to place.
|
|
17
20
|
attr_accessor :order_type
|
|
18
21
|
|
|
@@ -32,6 +35,7 @@ module SnapTrade
|
|
|
32
35
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
33
36
|
def self.attribute_map
|
|
34
37
|
{
|
|
38
|
+
:'client_order_id' => :'client_order_id',
|
|
35
39
|
:'order_type' => :'order_type',
|
|
36
40
|
:'time_in_force' => :'time_in_force',
|
|
37
41
|
:'limit_price' => :'limit_price',
|
|
@@ -49,6 +53,7 @@ module SnapTrade
|
|
|
49
53
|
# Attribute type mapping.
|
|
50
54
|
def self.openapi_types
|
|
51
55
|
{
|
|
56
|
+
:'client_order_id' => :'String',
|
|
52
57
|
:'order_type' => :'MlegOrderTypeStrict',
|
|
53
58
|
:'time_in_force' => :'TimeInForceStrict',
|
|
54
59
|
:'limit_price' => :'Float',
|
|
@@ -82,6 +87,10 @@ module SnapTrade
|
|
|
82
87
|
h[k.to_sym] = v
|
|
83
88
|
}
|
|
84
89
|
|
|
90
|
+
if attributes.key?(:'client_order_id')
|
|
91
|
+
self.client_order_id = attributes[:'client_order_id']
|
|
92
|
+
end
|
|
93
|
+
|
|
85
94
|
if attributes.key?(:'order_type')
|
|
86
95
|
self.order_type = attributes[:'order_type']
|
|
87
96
|
end
|
|
@@ -142,6 +151,7 @@ module SnapTrade
|
|
|
142
151
|
def ==(o)
|
|
143
152
|
return true if self.equal?(o)
|
|
144
153
|
self.class == o.class &&
|
|
154
|
+
client_order_id == o.client_order_id &&
|
|
145
155
|
order_type == o.order_type &&
|
|
146
156
|
time_in_force == o.time_in_force &&
|
|
147
157
|
limit_price == o.limit_price &&
|
|
@@ -159,7 +169,7 @@ module SnapTrade
|
|
|
159
169
|
# Calculates hash code according to all attributes.
|
|
160
170
|
# @return [Integer] Hash code
|
|
161
171
|
def hash
|
|
162
|
-
[order_type, time_in_force, limit_price, stop_price, price_effect, legs].hash
|
|
172
|
+
[client_order_id, order_type, time_in_force, limit_price, stop_price, price_effect, legs].hash
|
|
163
173
|
end
|
|
164
174
|
|
|
165
175
|
# Builds the object from hash
|
|
@@ -29,7 +29,7 @@ module SnapTrade
|
|
|
29
29
|
# Only applicable to multi-leg limit and stop_limit orders. Requirements and supported values depend on the brokerage; tastytrade requires credit or debit. even implies a zero limit_price, which may be omitted and must be zero if supplied. Single-leg price effects are derived from the action.
|
|
30
30
|
attr_accessor :price_effect
|
|
31
31
|
|
|
32
|
-
# Optional
|
|
32
|
+
# Canonical UUID. Required for Wealthsimple multi-leg placement regardless of client-order-ID enablement; reuse it when retrying the same attempt. Wealthsimple multi-leg attempts retain the ID after success or failure, and reuse by the same user across accounts or placement endpoints returns 409 without another submission. A 409 does not establish whether the original attempt was accepted; reconcile it before creating a new order with a new ID. Optional for other orders, forwarded where the existing execution path supports it and for tastytrade, Webull US, and TradeStation futures-family orders. Other orders require the existing client-order-ID enablement; when disabled the value is ignored. Brokerage behavior on duplicates varies. OAuth requests also reject a client_order_id the user has already used with 409. Tastytrade uses this as external-identifier for correlation and does not deduplicate submissions. For Webull US futures, SnapTrade converts the supplied UUID (or its generated order UUID) to lowercase 32-character hexadecimal without hyphens. The original supplied UUID remains in SnapTrade's trade audit; the converted value is returned as brokerage_order_id for subsequent order reads. For TradeStation live and SIM, SnapTrade encodes the supplied UUID (or its generated order UUID) as 22-character URL-safe base64 without padding and sends it as OrderConfirmID for brokerage duplicate prevention; the response contains TradeStation's separate order ID.
|
|
33
33
|
attr_accessor :client_order_id
|
|
34
34
|
|
|
35
35
|
# ISO 8601 expiry timestamp, required for gtd and invalid with other durations. A missing timezone is treated as UTC. Supported only through existing single-leg Public and Sandbox execution paths.
|