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 @@
9be05c51-16c8-489a-aa9b-10ffc9752007
fa5ae3b3-e236-4bad-8e76-33deb3303f23
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2011,7 +2011,7 @@ $result = $snaptrade->trading->getCryptocurrencyPairQuote(
### `snaptrade.trading.getOptionImpact`<a id="snaptradetradinggetoptionimpact"></a>

Simulates an option order with up to 4 legs and returns the estimated cost and transaction fees without placing it.
Only supported for certain brokerages. Please refer to the [brokerage trading support page](https://snaptrade.notion.site/brokerages) for more information on which brokerages support this endpoint.
Only supported for certain brokerages. Please refer to the [brokerage trading support page](https://support.snaptrade.com/brokerages) for more information on which brokerages support this endpoint.



Expand Down
8 changes: 4 additions & 4 deletions lib/Api/TradingApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -1578,7 +1578,7 @@ public function getCryptocurrencyPairQuoteRequest($user_id, $user_secret, $accou
*
* Get option order impact
*
* Simulates an option order with up to 4 legs and returns the estimated cost and transaction fees without placing it. Only supported for certain brokerages. Please refer to the [brokerage trading support page](https://snaptrade.notion.site/brokerages) for more information on which brokerages support this endpoint.
* Simulates an option order with up to 4 legs and returns the estimated cost and transaction fees without placing it. Only supported for certain brokerages. Please refer to the [brokerage trading support page](https://support.snaptrade.com/brokerages) for more information on which brokerages support this endpoint.
*
* @param string $user_id user_id (required)
* @param string $user_secret user_secret (required)
Expand Down Expand Up @@ -1622,7 +1622,7 @@ public function getOptionImpact(
*
* Get option order impact
*
* Simulates an option order with up to 4 legs and returns the estimated cost and transaction fees without placing it. Only supported for certain brokerages. Please refer to the [brokerage trading support page](https://snaptrade.notion.site/brokerages) for more information on which brokerages support this endpoint.
* Simulates an option order with up to 4 legs and returns the estimated cost and transaction fees without placing it. Only supported for certain brokerages. Please refer to the [brokerage trading support page](https://support.snaptrade.com/brokerages) for more information on which brokerages support this endpoint.
*
* @param string $user_id (required)
* @param string $user_secret (required)
Expand Down Expand Up @@ -1791,7 +1791,7 @@ public function getOptionImpactWithHttpInfo($user_id, $user_secret, $account_id,
*
* Get option order impact
*
* Simulates an option order with up to 4 legs and returns the estimated cost and transaction fees without placing it. Only supported for certain brokerages. Please refer to the [brokerage trading support page](https://snaptrade.notion.site/brokerages) for more information on which brokerages support this endpoint.
* Simulates an option order with up to 4 legs and returns the estimated cost and transaction fees without placing it. Only supported for certain brokerages. Please refer to the [brokerage trading support page](https://support.snaptrade.com/brokerages) for more information on which brokerages support this endpoint.
*
* @param string $user_id (required)
* @param string $user_secret (required)
Expand Down Expand Up @@ -1838,7 +1838,7 @@ function ($response) {
*
* Get option order impact
*
* Simulates an option order with up to 4 legs and returns the estimated cost and transaction fees without placing it. Only supported for certain brokerages. Please refer to the [brokerage trading support page](https://snaptrade.notion.site/brokerages) for more information on which brokerages support this endpoint.
* Simulates an option order with up to 4 legs and returns the estimated cost and transaction fees without placing it. Only supported for certain brokerages. Please refer to the [brokerage trading support page](https://support.snaptrade.com/brokerages) for more information on which brokerages support this endpoint.
*
* @param string $user_id (required)
* @param string $user_secret (required)
Expand Down
17 changes: 12 additions & 5 deletions lib/Model/OrderUpdatedResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class OrderUpdatedResponse implements ModelInterface, ArrayAccess, \JsonSerializ
*/
protected static $openAPITypes = [
'brokerage_order_id' => 'string',
'order' => '\SnapTrade\Model\AccountOrderRecord'
'order' => '\SnapTrade\Model\OrderUpdatedResponseOrder'
];

/**
Expand All @@ -73,7 +73,7 @@ class OrderUpdatedResponse implements ModelInterface, ArrayAccess, \JsonSerializ
*/
protected static array $openAPINullables = [
'brokerage_order_id' => false,
'order' => false
'order' => true
];

/**
Expand Down Expand Up @@ -324,7 +324,7 @@ public function setBrokerageOrderId($brokerage_order_id)
/**
* Gets order
*
* @return \SnapTrade\Model\AccountOrderRecord|null
* @return \SnapTrade\Model\OrderUpdatedResponseOrder|null
*/
public function getOrder()
{
Expand All @@ -334,15 +334,22 @@ public function getOrder()
/**
* Sets order
*
* @param \SnapTrade\Model\AccountOrderRecord|null $order order
* @param \SnapTrade\Model\OrderUpdatedResponseOrder|null $order order
*
* @return self
*/
public function setOrder($order)
{

if (is_null($order)) {
throw new \InvalidArgumentException('non-nullable order cannot be null');
array_push($this->openAPINullablesSetToNull, 'order');
} else {
$nullablesSetToNull = $this->getOpenAPINullablesSetToNull();
$index = array_search('order', $nullablesSetToNull);
if ($index !== FALSE) {
unset($nullablesSetToNull[$index]);
$this->setOpenAPINullablesSetToNull($nullablesSetToNull);
}
}

$this->container['order'] = $order;
Expand Down
Loading