Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .konfig/generate-id.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
effc755a-4186-4409-8200-1c4d0b9ca28a
1b645ddf-bcef-4d79-9c21-f109d922c1ef
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1623,25 +1623,25 @@ Cancels an order in the specified account. Accepts order IDs for all asset types

```php
$result = $snaptrade->trading->cancelOrder(
brokerage_order_id: "66a033fa-da74-4fcf-b527-feefdec9257e",
user_id: "snaptrade-user-123",
user_secret: "adf2aa34-8219-40f7-a6b3-60156985cc61",
account_id: "917c8734-8470-4a3e-a18f-57c3f2ee6631",
brokerage_order_id: "66a033fa-da74-4fcf-b527-feefdec9257e"
account_id: "917c8734-8470-4a3e-a18f-57c3f2ee6631"
);
```

#### ⚙️ Parameters<a id="⚙️-parameters"></a>

##### brokerage_order_id: `string`<a id="brokerage_order_id-string"></a>

Order ID returned by brokerage. This is the unique identifier for the order in the brokerage system.

##### user_id: `string`<a id="user_id-string"></a>

##### user_secret: `string`<a id="user_secret-string"></a>

##### account_id: `string`<a id="account_id-string"></a>

##### brokerage_order_id: `string`<a id="brokerage_order_id-string"></a>

Order ID returned by brokerage. This is the unique identifier for the order in the brokerage system.


#### 🔄 Return<a id="🔄-return"></a>

Expand All @@ -1668,25 +1668,25 @@ Attempts to cancel an open order with the brokerage. If the order is no longer c

```php
$result = $snaptrade->trading->cancelUserAccountOrder(
brokerage_order_id: "66a033fa-da74-4fcf-b527-feefdec9257e",
user_id: "snaptrade-user-123",
user_secret: "adf2aa34-8219-40f7-a6b3-60156985cc61",
account_id: "917c8734-8470-4a3e-a18f-57c3f2ee6631",
brokerage_order_id: "66a033fa-da74-4fcf-b527-feefdec9257e"
account_id: "917c8734-8470-4a3e-a18f-57c3f2ee6631"
);
```

#### ⚙️ Parameters<a id="⚙️-parameters"></a>

##### brokerage_order_id: `string`<a id="brokerage_order_id-string"></a>

Order ID returned by brokerage. This is the unique identifier for the order in the brokerage system.

##### user_id: `string`<a id="user_id-string"></a>

##### user_secret: `string`<a id="user_secret-string"></a>

##### account_id: `string`<a id="account_id-string"></a>

##### brokerage_order_id: `string`<a id="brokerage_order_id-string"></a>

Order ID returned by brokerage. This is the unique identifier for the order in the brokerage system.


#### 🔄 Return<a id="🔄-return"></a>

Expand Down
112 changes: 56 additions & 56 deletions lib/Api/TradingApi.php

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/Model/StopLoss.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* StopLoss Class Doc Comment
*
* @category Class
* @description Details of the stop loss order. Only to be used when order_class &#x3D; BRACKET. stop_price is required, limit_price is optional
* @description Takes in string value for stop_price and limit_price. stop_price is required, limit_price is optional
* @package SnapTrade
* @implements \ArrayAccess<string, mixed>
*/
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/TakeProfit.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* TakeProfit Class Doc Comment
*
* @category Class
* @description Details of the take profit order. Only to be used when order_class &#x3D; BRACKET.
* @description Takes in a string value for limit_price
* @package SnapTrade
* @implements \ArrayAccess<string, mixed>
*/
Expand Down
Loading