snaptrade-typescript-sdk 9.0.85 → 9.0.87

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.
Files changed (41) hide show
  1. package/README.md +388 -11
  2. package/dist/api/crypto-spot-trading-api-generated.d.ts +366 -0
  3. package/dist/api/crypto-spot-trading-api-generated.js +577 -0
  4. package/dist/api/crypto-spot-trading-api.d.ts +4 -0
  5. package/dist/api/crypto-spot-trading-api.js +22 -0
  6. package/dist/api/trading-api-generated.d.ts +55 -0
  7. package/dist/api/trading-api-generated.js +104 -4
  8. package/dist/api.d.ts +1 -0
  9. package/dist/api.js +1 -0
  10. package/dist/browser.js +1 -1
  11. package/dist/client.d.ts +2 -1
  12. package/dist/client.js +1 -0
  13. package/dist/configuration.js +1 -1
  14. package/dist/models/account-order-record-child-brokerage-order-ids.d.ts +19 -0
  15. package/dist/models/account-order-record.d.ts +7 -0
  16. package/dist/models/child-brokerage-order-ids.d.ts +20 -0
  17. package/dist/models/crypto-spot-order-preview-estimated-fee.d.ts +20 -0
  18. package/dist/models/crypto-spot-order-preview-estimated-fee.js +2 -0
  19. package/dist/models/crypto-spot-order-preview.d.ts +15 -0
  20. package/dist/models/crypto-spot-order-preview.js +2 -0
  21. package/dist/models/crypto-spot-quote.d.ts +32 -0
  22. package/dist/models/crypto-spot-quote.js +2 -0
  23. package/dist/models/cryptocurrency-pair.d.ts +20 -0
  24. package/dist/models/cryptocurrency-pair.js +2 -0
  25. package/dist/models/index.d.ts +10 -2
  26. package/dist/models/index.js +10 -2
  27. package/dist/models/manual-trade-form-bracket.d.ts +72 -0
  28. package/dist/models/manual-trade-form-bracket.js +2 -0
  29. package/dist/models/manual-trade-form-with-options.d.ts +1 -23
  30. package/dist/models/trading-crypto-spot-cancel-order-request.d.ts +13 -0
  31. package/dist/models/trading-crypto-spot-cancel-order-request.js +2 -0
  32. package/dist/models/trading-crypto-spot-place-order-request.d.ts +66 -0
  33. package/dist/models/trading-crypto-spot-place-order-request.js +2 -0
  34. package/dist/models/trading-crypto-spot-symbols200-response.d.ts +15 -0
  35. package/dist/models/trading-crypto-spot-symbols200-response.js +2 -0
  36. package/dist/operationParameterMap.js +174 -9
  37. package/package.json +1 -1
  38. package/dist/models/manual-trade-form-with-options-stop-loss.d.ts +0 -19
  39. package/dist/models/manual-trade-form-with-options-take-profit.d.ts +0 -13
  40. /package/dist/models/{manual-trade-form-with-options-stop-loss.js → account-order-record-child-brokerage-order-ids.js} +0 -0
  41. /package/dist/models/{manual-trade-form-with-options-take-profit.js → child-brokerage-order-ids.js} +0 -0
package/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  Connect brokerage accounts to your app for live positions and trading
8
8
 
9
- [![npm](https://img.shields.io/badge/npm-v9.0.85-blue)](https://www.npmjs.com/package/snaptrade-typescript-sdk/v/9.0.85)
9
+ [![npm](https://img.shields.io/badge/npm-v9.0.87-blue)](https://www.npmjs.com/package/snaptrade-typescript-sdk/v/9.0.87)
10
10
  [![More Info](https://img.shields.io/badge/More%20Info-Click%20Here-orange)](https://snaptrade.com/)
11
11
 
12
12
  </div>
@@ -42,6 +42,11 @@ Connect brokerage accounts to your app for live positions and trading
42
42
  * [`snaptrade.connections.removeBrokerageAuthorization`](#snaptradeconnectionsremovebrokerageauthorization)
43
43
  * [`snaptrade.connections.returnRates`](#snaptradeconnectionsreturnrates)
44
44
  * [`snaptrade.connections.sessionEvents`](#snaptradeconnectionssessionevents)
45
+ * [`snaptrade.cryptoSpotTrading.cryptoSpotCancelOrder`](#snaptradecryptospottradingcryptospotcancelorder)
46
+ * [`snaptrade.cryptoSpotTrading.cryptoSpotPlaceOrder`](#snaptradecryptospottradingcryptospotplaceorder)
47
+ * [`snaptrade.cryptoSpotTrading.cryptoSpotPreviewOrder`](#snaptradecryptospottradingcryptospotprevieworder)
48
+ * [`snaptrade.cryptoSpotTrading.cryptoSpotQuote`](#snaptradecryptospottradingcryptospotquote)
49
+ * [`snaptrade.cryptoSpotTrading.cryptoSpotSymbols`](#snaptradecryptospottradingcryptospotsymbols)
45
50
  * [`snaptrade.options.getOptionStrategy`](#snaptradeoptionsgetoptionstrategy)
46
51
  * [`snaptrade.options.getOptionsChain`](#snaptradeoptionsgetoptionschain)
47
52
  * [`snaptrade.options.getOptionsStrategyQuote`](#snaptradeoptionsgetoptionsstrategyquote)
@@ -61,6 +66,7 @@ Connect brokerage accounts to your app for live positions and trading
61
66
  * [`snaptrade.trading.cancelUserAccountOrder`](#snaptradetradingcanceluseraccountorder)
62
67
  * [`snaptrade.trading.getOrderImpact`](#snaptradetradinggetorderimpact)
63
68
  * [`snaptrade.trading.getUserAccountQuotes`](#snaptradetradinggetuseraccountquotes)
69
+ * [`snaptrade.trading.placeBracketOrder`](#snaptradetradingplacebracketorder)
64
70
  * [`snaptrade.trading.placeForceOrder`](#snaptradetradingplaceforceorder)
65
71
  * [`snaptrade.trading.placeOrder`](#snaptradetradingplaceorder)
66
72
  * [`snaptrade.transactionsAndReporting.getActivities`](#snaptradetransactionsandreportinggetactivities)
@@ -1125,6 +1131,301 @@ Optional comma separated list of session IDs used to filter the request on speci
1125
1131
  ---
1126
1132
 
1127
1133
 
1134
+ ### `snaptrade.cryptoSpotTrading.cryptoSpotCancelOrder`<a id="snaptradecryptospottradingcryptospotcancelorder"></a>
1135
+
1136
+ Cancels a cryptocurrency spot order in the specified account.
1137
+
1138
+
1139
+ #### 🛠️ Usage<a id="🛠️-usage"></a>
1140
+
1141
+ ```typescript
1142
+ const cryptoSpotCancelOrderResponse =
1143
+ await snaptrade.cryptoSpotTrading.cryptoSpotCancelOrder({
1144
+ userId: "snaptrade-user-123",
1145
+ userSecret: "adf2aa34-8219-40f7-a6b3-60156985cc61",
1146
+ accountId: "917c8734-8470-4a3e-a18f-57c3f2ee6631",
1147
+ brokerage_order_id: "66a033fa-da74-4fcf-b527-feefdec9257e",
1148
+ });
1149
+ ```
1150
+
1151
+ #### ⚙️ Parameters<a id="⚙️-parameters"></a>
1152
+
1153
+ ##### brokerage_order_id: `string`<a id="brokerage_order_id-string"></a>
1154
+
1155
+ Order ID returned by brokerage. This is the unique identifier for the order in the brokerage system.
1156
+
1157
+ ##### userId: `string`<a id="userid-string"></a>
1158
+
1159
+ ##### userSecret: `string`<a id="usersecret-string"></a>
1160
+
1161
+ ##### accountId: `string`<a id="accountid-string"></a>
1162
+
1163
+ #### 🔄 Return<a id="🔄-return"></a>
1164
+
1165
+ [AccountOrderRecord](./models/account-order-record.ts)
1166
+
1167
+ #### 🌐 Endpoint<a id="🌐-endpoint"></a>
1168
+
1169
+ `/accounts/{accountId}/trading/crypto/spot/cancelOrder` `POST`
1170
+
1171
+ [🔙 **Back to Table of Contents**](#table-of-contents)
1172
+
1173
+ ---
1174
+
1175
+
1176
+ ### `snaptrade.cryptoSpotTrading.cryptoSpotPlaceOrder`<a id="snaptradecryptospottradingcryptospotplaceorder"></a>
1177
+
1178
+ Places a spot cryptocurrency order in the specified account.
1179
+ This endpoint does not compute the impact to the account balance from the order before submitting the order to the exchange.
1180
+
1181
+
1182
+ #### 🛠️ Usage<a id="🛠️-usage"></a>
1183
+
1184
+ ```typescript
1185
+ const cryptoSpotPlaceOrderResponse =
1186
+ await snaptrade.cryptoSpotTrading.cryptoSpotPlaceOrder({
1187
+ userId: "snaptrade-user-123",
1188
+ userSecret: "adf2aa34-8219-40f7-a6b3-60156985cc61",
1189
+ accountId: "917c8734-8470-4a3e-a18f-57c3f2ee6631",
1190
+ symbol: {
1191
+ base: "BTC",
1192
+ quote: "BTC",
1193
+ },
1194
+ side: "BUY",
1195
+ type: "MARKET",
1196
+ time_in_force: "GTC",
1197
+ amount: "123.45",
1198
+ limit_price: "123.45",
1199
+ stop_price: "123.45",
1200
+ post_only: false,
1201
+ expiration_date: "2024-01-01T00:00:00Z",
1202
+ });
1203
+ ```
1204
+
1205
+ #### ⚙️ Parameters<a id="⚙️-parameters"></a>
1206
+
1207
+ ##### symbol: [`CryptocurrencyPair`](./models/cryptocurrency-pair.ts)<a id="symbol-cryptocurrencypairmodelscryptocurrency-pairts"></a>
1208
+
1209
+ ##### side: [`ActionStrict`](./models/action-strict.ts)<a id="side-actionstrictmodelsaction-strictts"></a>
1210
+
1211
+ The action describes the intent or side of a trade. This is either `BUY` or `SELL`.
1212
+
1213
+ ##### type: `string`<a id="type-string"></a>
1214
+
1215
+ The type of order to place.
1216
+
1217
+ ##### time_in_force: `string`<a id="time_in_force-string"></a>
1218
+
1219
+ The Time in Force type for the order. This field indicates how long the order will remain active before it is executed or expires. - `GTC` - Good Til Canceled. The order is valid until it is executed or canceled. - `FOK` - Fill Or Kill. The order must be executed in its entirety immediately or be canceled completely. - `IOC` - Immediate Or Cancel. The order must be executed immediately. Any portion of the order that cannot be filled immediately will be canceled. - `GTD` - Good Til Date. The order is valid until the specified date.
1220
+
1221
+ ##### amount: `string`<a id="amount-string"></a>
1222
+
1223
+ The amount of the base currency to buy or sell.
1224
+
1225
+ ##### userId: `string`<a id="userid-string"></a>
1226
+
1227
+ ##### userSecret: `string`<a id="usersecret-string"></a>
1228
+
1229
+ ##### accountId: `string`<a id="accountid-string"></a>
1230
+
1231
+ ##### limit_price: `string`<a id="limit_price-string"></a>
1232
+
1233
+ The limit price. Required if the order type is LIMIT, STOP_LOSS_LIMIT or TAKE_PROFIT_LIMIT.
1234
+
1235
+ ##### stop_price: `string`<a id="stop_price-string"></a>
1236
+
1237
+ The stop price. Required if the order type is STOP_LOSS_MARKET, STOP_LOSS_LIMIT, TAKE_PROFIT_MARKET or TAKE_PROFIT_LIMIT.
1238
+
1239
+ ##### post_only: `boolean`<a id="post_only-boolean"></a>
1240
+
1241
+ Required for order type LIMIT. If true orders that would be filled immediately are rejected to avoid incurring TAKER fees.
1242
+
1243
+ ##### expiration_date: `string`<a id="expiration_date-string"></a>
1244
+
1245
+ The expiration date of the order. Required if the time_in_force is GTD.
1246
+
1247
+ #### 🔄 Return<a id="🔄-return"></a>
1248
+
1249
+ [AccountOrderRecord](./models/account-order-record.ts)
1250
+
1251
+ #### 🌐 Endpoint<a id="🌐-endpoint"></a>
1252
+
1253
+ `/accounts/{accountId}/trading/crypto/spot/placeOrder` `POST`
1254
+
1255
+ [🔙 **Back to Table of Contents**](#table-of-contents)
1256
+
1257
+ ---
1258
+
1259
+
1260
+ ### `snaptrade.cryptoSpotTrading.cryptoSpotPreviewOrder`<a id="snaptradecryptospottradingcryptospotprevieworder"></a>
1261
+
1262
+ Previews a cryptocurrency spot order using the specified account.
1263
+
1264
+
1265
+ #### 🛠️ Usage<a id="🛠️-usage"></a>
1266
+
1267
+ ```typescript
1268
+ const cryptoSpotPreviewOrderResponse =
1269
+ await snaptrade.cryptoSpotTrading.cryptoSpotPreviewOrder({
1270
+ userId: "snaptrade-user-123",
1271
+ userSecret: "adf2aa34-8219-40f7-a6b3-60156985cc61",
1272
+ accountId: "917c8734-8470-4a3e-a18f-57c3f2ee6631",
1273
+ symbol: {
1274
+ base: "BTC",
1275
+ quote: "BTC",
1276
+ },
1277
+ side: "BUY",
1278
+ type: "MARKET",
1279
+ time_in_force: "GTC",
1280
+ amount: "123.45",
1281
+ limit_price: "123.45",
1282
+ stop_price: "123.45",
1283
+ post_only: false,
1284
+ expiration_date: "2024-01-01T00:00:00Z",
1285
+ });
1286
+ ```
1287
+
1288
+ #### ⚙️ Parameters<a id="⚙️-parameters"></a>
1289
+
1290
+ ##### symbol: [`CryptocurrencyPair`](./models/cryptocurrency-pair.ts)<a id="symbol-cryptocurrencypairmodelscryptocurrency-pairts"></a>
1291
+
1292
+ ##### side: [`ActionStrict`](./models/action-strict.ts)<a id="side-actionstrictmodelsaction-strictts"></a>
1293
+
1294
+ The action describes the intent or side of a trade. This is either `BUY` or `SELL`.
1295
+
1296
+ ##### type: `string`<a id="type-string"></a>
1297
+
1298
+ The type of order to place.
1299
+
1300
+ ##### time_in_force: `string`<a id="time_in_force-string"></a>
1301
+
1302
+ The Time in Force type for the order. This field indicates how long the order will remain active before it is executed or expires. - `GTC` - Good Til Canceled. The order is valid until it is executed or canceled. - `FOK` - Fill Or Kill. The order must be executed in its entirety immediately or be canceled completely. - `IOC` - Immediate Or Cancel. The order must be executed immediately. Any portion of the order that cannot be filled immediately will be canceled. - `GTD` - Good Til Date. The order is valid until the specified date.
1303
+
1304
+ ##### amount: `string`<a id="amount-string"></a>
1305
+
1306
+ The amount of the base currency to buy or sell.
1307
+
1308
+ ##### userId: `string`<a id="userid-string"></a>
1309
+
1310
+ ##### userSecret: `string`<a id="usersecret-string"></a>
1311
+
1312
+ ##### accountId: `string`<a id="accountid-string"></a>
1313
+
1314
+ ##### limit_price: `string`<a id="limit_price-string"></a>
1315
+
1316
+ The limit price. Required if the order type is LIMIT, STOP_LOSS_LIMIT or TAKE_PROFIT_LIMIT.
1317
+
1318
+ ##### stop_price: `string`<a id="stop_price-string"></a>
1319
+
1320
+ The stop price. Required if the order type is STOP_LOSS_MARKET, STOP_LOSS_LIMIT, TAKE_PROFIT_MARKET or TAKE_PROFIT_LIMIT.
1321
+
1322
+ ##### post_only: `boolean`<a id="post_only-boolean"></a>
1323
+
1324
+ Required for order type LIMIT. If true orders that would be filled immediately are rejected to avoid incurring TAKER fees.
1325
+
1326
+ ##### expiration_date: `string`<a id="expiration_date-string"></a>
1327
+
1328
+ The expiration date of the order. Required if the time_in_force is GTD.
1329
+
1330
+ #### 🔄 Return<a id="🔄-return"></a>
1331
+
1332
+ [CryptoSpotOrderPreview](./models/crypto-spot-order-preview.ts)
1333
+
1334
+ #### 🌐 Endpoint<a id="🌐-endpoint"></a>
1335
+
1336
+ `/accounts/{accountId}/trading/crypto/spot/previewOrder` `POST`
1337
+
1338
+ [🔙 **Back to Table of Contents**](#table-of-contents)
1339
+
1340
+ ---
1341
+
1342
+
1343
+ ### `snaptrade.cryptoSpotTrading.cryptoSpotQuote`<a id="snaptradecryptospottradingcryptospotquote"></a>
1344
+
1345
+ Gets a quote for the specified account.
1346
+
1347
+
1348
+ #### 🛠️ Usage<a id="🛠️-usage"></a>
1349
+
1350
+ ```typescript
1351
+ const cryptoSpotQuoteResponse =
1352
+ await snaptrade.cryptoSpotTrading.cryptoSpotQuote({
1353
+ userId: "snaptrade-user-123",
1354
+ userSecret: "adf2aa34-8219-40f7-a6b3-60156985cc61",
1355
+ accountId: "917c8734-8470-4a3e-a18f-57c3f2ee6631",
1356
+ base: "BTC",
1357
+ quote: "BTC",
1358
+ });
1359
+ ```
1360
+
1361
+ #### ⚙️ Parameters<a id="⚙️-parameters"></a>
1362
+
1363
+ ##### userId: `string`<a id="userid-string"></a>
1364
+
1365
+ ##### userSecret: `string`<a id="usersecret-string"></a>
1366
+
1367
+ ##### accountId: `string`<a id="accountid-string"></a>
1368
+
1369
+ ##### base: `string`<a id="base-string"></a>
1370
+
1371
+ ##### quote: `string`<a id="quote-string"></a>
1372
+
1373
+ #### 🔄 Return<a id="🔄-return"></a>
1374
+
1375
+ [CryptoSpotQuote](./models/crypto-spot-quote.ts)
1376
+
1377
+ #### 🌐 Endpoint<a id="🌐-endpoint"></a>
1378
+
1379
+ `/accounts/{accountId}/trading/crypto/spot/quote` `GET`
1380
+
1381
+ [🔙 **Back to Table of Contents**](#table-of-contents)
1382
+
1383
+ ---
1384
+
1385
+
1386
+ ### `snaptrade.cryptoSpotTrading.cryptoSpotSymbols`<a id="snaptradecryptospottradingcryptospotsymbols"></a>
1387
+
1388
+ Searches cryptocurrency spot symbols accessible to the specified account.
1389
+
1390
+
1391
+ #### 🛠️ Usage<a id="🛠️-usage"></a>
1392
+
1393
+ ```typescript
1394
+ const cryptoSpotSymbolsResponse =
1395
+ await snaptrade.cryptoSpotTrading.cryptoSpotSymbols({
1396
+ userId: "snaptrade-user-123",
1397
+ userSecret: "adf2aa34-8219-40f7-a6b3-60156985cc61",
1398
+ accountId: "917c8734-8470-4a3e-a18f-57c3f2ee6631",
1399
+ base: "BTC",
1400
+ quote: "BTC",
1401
+ });
1402
+ ```
1403
+
1404
+ #### ⚙️ Parameters<a id="⚙️-parameters"></a>
1405
+
1406
+ ##### userId: `string`<a id="userid-string"></a>
1407
+
1408
+ ##### userSecret: `string`<a id="usersecret-string"></a>
1409
+
1410
+ ##### accountId: `string`<a id="accountid-string"></a>
1411
+
1412
+ ##### base: `string`<a id="base-string"></a>
1413
+
1414
+ ##### quote: `string`<a id="quote-string"></a>
1415
+
1416
+ #### 🔄 Return<a id="🔄-return"></a>
1417
+
1418
+ [TradingCryptoSpotSymbols200Response](./models/trading-crypto-spot-symbols200-response.ts)
1419
+
1420
+ #### 🌐 Endpoint<a id="🌐-endpoint"></a>
1421
+
1422
+ `/accounts/{accountId}/trading/crypto/spot/symbols` `GET`
1423
+
1424
+ [🔙 **Back to Table of Contents**](#table-of-contents)
1425
+
1426
+ ---
1427
+
1428
+
1128
1429
  ### `snaptrade.options.getOptionStrategy`<a id="snaptradeoptionsgetoptionstrategy"></a>
1129
1430
 
1130
1431
  Creates an option strategy object that will be used to place an option strategy order.
@@ -1836,6 +2137,91 @@ Should be set to `True` if `symbols` are comprised of tickers. Defaults to `Fals
1836
2137
  ---
1837
2138
 
1838
2139
 
2140
+ ### `snaptrade.trading.placeBracketOrder`<a id="snaptradetradingplacebracketorder"></a>
2141
+
2142
+ Places a bracket order (entry order + OCO of stop loss and take profit). Disabled by default please contact support for
2143
+ use. Only supported on certain brokerages
2144
+
2145
+
2146
+ #### 🛠️ Usage<a id="🛠️-usage"></a>
2147
+
2148
+ ```typescript
2149
+ const placeBracketOrderResponse = await snaptrade.trading.placeBracketOrder({
2150
+ userId: "snaptrade-user-123",
2151
+ userSecret: "adf2aa34-8219-40f7-a6b3-60156985cc61",
2152
+ account_id: "917c8734-8470-4a3e-a18f-57c3f2ee6631",
2153
+ action: "BUY",
2154
+ symbol: "AAPL",
2155
+ order_type: "Market",
2156
+ time_in_force: "FOK",
2157
+ price: 31.33,
2158
+ stop: 31.33,
2159
+ units: 10.5,
2160
+ stop_loss: {
2161
+ stop_price: "48.55",
2162
+ limit_price: "48.50",
2163
+ },
2164
+ take_profit: {
2165
+ limit_price: "49.95",
2166
+ },
2167
+ });
2168
+ ```
2169
+
2170
+ #### ⚙️ Parameters<a id="⚙️-parameters"></a>
2171
+
2172
+ ##### account_id: `string`<a id="account_id-string"></a>
2173
+
2174
+ Unique identifier for the connected brokerage account. This is the UUID used to reference the account in SnapTrade.
2175
+
2176
+ ##### action: [`ActionStrictWithOptions`](./models/action-strict-with-options.ts)<a id="action-actionstrictwithoptionsmodelsaction-strict-with-optionsts"></a>
2177
+
2178
+ The action describes the intent or side of a trade. This is either `BUY` or `SELL` for Equity symbols or `BUY_TO_OPEN`, `BUY_TO_CLOSE`, `SELL_TO_OPEN` or `SELL_TO_CLOSE` for Options.
2179
+
2180
+ ##### symbol: `string`<a id="symbol-string"></a>
2181
+
2182
+ The security\\\'s trading ticker symbol.
2183
+
2184
+ ##### order_type: [`OrderTypeStrict`](./models/order-type-strict.ts)<a id="order_type-ordertypestrictmodelsorder-type-strictts"></a>
2185
+
2186
+ The type of order to place. - For `Limit` and `StopLimit` orders, the `price` field is required. - For `Stop` and `StopLimit` orders, the `stop` field is required.
2187
+
2188
+ ##### time_in_force: [`TimeInForceStrict`](./models/time-in-force-strict.ts)<a id="time_in_force-timeinforcestrictmodelstime-in-force-strictts"></a>
2189
+
2190
+ 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.
2191
+
2192
+ ##### stop_loss: [`StopLoss`](./models/stop-loss.ts)<a id="stop_loss-stoplossmodelsstop-lossts"></a>
2193
+
2194
+ ##### take_profit: [`TakeProfit`](./models/take-profit.ts)<a id="take_profit-takeprofitmodelstake-profitts"></a>
2195
+
2196
+ ##### userId: `string`<a id="userid-string"></a>
2197
+
2198
+ ##### userSecret: `string`<a id="usersecret-string"></a>
2199
+
2200
+ ##### price: `number`<a id="price-number"></a>
2201
+
2202
+ The limit price for `Limit` and `StopLimit` orders.
2203
+
2204
+ ##### stop: `number`<a id="stop-number"></a>
2205
+
2206
+ The price at which a stop order is triggered for `Stop` and `StopLimit` orders.
2207
+
2208
+ ##### units: `number`<a id="units-number"></a>
2209
+
2210
+ Number of shares for the order. This can be a decimal for fractional orders. Must be `null` if `notional_value` is provided.
2211
+
2212
+ #### 🔄 Return<a id="🔄-return"></a>
2213
+
2214
+ [AccountOrderRecord](./models/account-order-record.ts)
2215
+
2216
+ #### 🌐 Endpoint<a id="🌐-endpoint"></a>
2217
+
2218
+ `/trade/placeBracketOrder` `POST`
2219
+
2220
+ [🔙 **Back to Table of Contents**](#table-of-contents)
2221
+
2222
+ ---
2223
+
2224
+
1839
2225
  ### `snaptrade.trading.placeForceOrder`<a id="snaptradetradingplaceforceorder"></a>
1840
2226
 
1841
2227
  Places a brokerage order in the specified account. The order could be rejected by the brokerage if it is invalid or if the account does not have sufficient funds.
@@ -1860,7 +2246,6 @@ const placeForceOrderResponse = await snaptrade.trading.placeForceOrder({
1860
2246
  price: 31.33,
1861
2247
  stop: 31.33,
1862
2248
  units: 10.5,
1863
- order_class: "BRACKET",
1864
2249
  });
1865
2250
  ```
1866
2251
 
@@ -1892,7 +2277,7 @@ The universal symbol ID of the security to trade. Must be \\\'null\\\' if `symbo
1892
2277
 
1893
2278
  ##### symbol: `string`<a id="symbol-string"></a>
1894
2279
 
1895
- The security\\\'s trading ticker symbol. This currently only support Options symbols in the 21 character OCC format. For example \\\"AAPL 131124C00240000\\\" represents a call option on AAPL expiring on 2024-11-13 with a strike price of $240. For more information on the OCC format, see [here](https://en.wikipedia.org/wiki/Option_symbol#OCC_format). If \\\'symbol\\\' is provided, then \\\'universal_symbol_id\\\' must be \\\'null\\\'.
2280
+ The security\\\'s trading ticker symbol. This currently supports stock symbols and Options symbols in the 21 character OCC format. For example \\\"AAPL 131124C00240000\\\" represents a call option on AAPL expiring on 2024-11-13 with a strike price of $240. For more information on the OCC format, see [here](https://en.wikipedia.org/wiki/Option_symbol#OCC_format). If \\\'symbol\\\' is provided, then \\\'universal_symbol_id\\\' must be \\\'null\\\'.
1896
2281
 
1897
2282
  ##### price: `number`<a id="price-number"></a>
1898
2283
 
@@ -1908,14 +2293,6 @@ For Equity orders, this represents the number of shares for the order. This can
1908
2293
 
1909
2294
  ##### notional_value: [`ManualTradeFormNotionalValue`](./models/manual-trade-form-notional-value.ts)<a id="notional_value-manualtradeformnotionalvaluemodelsmanual-trade-form-notional-valuets"></a>
1910
2295
 
1911
- ##### order_class: `string`<a id="order_class-string"></a>
1912
-
1913
- The class of order intended to be placed. Defaults to SIMPLE for regular, one legged trades. Set to BRACKET if looking to place a bracket (One-triggers-a-one-cancels-the-other) order, then specify take profit and stop loss conditions. Bracket orders currently only supported on Alpaca, Tradier, and Tradestation, contact us for more details
1914
-
1915
- ##### stop_loss: [`ManualTradeFormWithOptionsStopLoss`](./models/manual-trade-form-with-options-stop-loss.ts)<a id="stop_loss-manualtradeformwithoptionsstoplossmodelsmanual-trade-form-with-options-stop-lossts"></a>
1916
-
1917
- ##### take_profit: [`ManualTradeFormWithOptionsTakeProfit`](./models/manual-trade-form-with-options-take-profit.ts)<a id="take_profit-manualtradeformwithoptionstakeprofitmodelsmanual-trade-form-with-options-take-profitts"></a>
1918
-
1919
2296
  #### 🔄 Return<a id="🔄-return"></a>
1920
2297
 
1921
2298
  [AccountOrderRecord](./models/account-order-record.ts)