@@ -29,32 +29,32 @@ public function __construct(object $response)
2929 case 'ok ' :
3030 for ($ i = 0 ; $ i < count ($ response ->optionSymbol ); $ i ++) {
3131 $ this ->option_chains [] = new OptionChain (
32- $ response ->optionSymbol [$ i ],
33- $ response ->underlying [$ i ],
34- Carbon::parse ($ response ->expiration [$ i ]),
35- Side::from ($ response ->side [$ i ]),
36- $ response ->strike [$ i ],
37- Carbon::parse ($ response ->firstTraded [$ i ]),
38- $ response ->dte [$ i ],
39- $ response ->ask [$ i ],
40- $ response ->askSize [$ i ],
41- $ response ->bid [$ i ],
42- $ response ->bidSize [$ i ],
43- $ response ->mid [$ i ],
44- $ response ->last [$ i ],
45- $ response ->volume [$ i ],
46- $ response ->openInterest [$ i ],
47- $ response ->underlyingPrice [$ i ],
48- $ response ->inTheMoney [$ i ],
49- $ response ->intrinsicValue [$ i ],
50- $ response ->extrinsicValue [$ i ],
51- $ response ->iv [$ i ],
52- $ response ->delta [$ i ],
53- $ response ->gamma [$ i ],
54- $ response ->theta [$ i ],
55- $ response ->vega [$ i ],
56- $ response ->rho [$ i ],
57- Carbon::parse ($ response ->updated [$ i ]),
32+ option_symbol: $ response ->optionSymbol [$ i ],
33+ underlying: $ response ->underlying [$ i ],
34+ expiration: Carbon::parse ($ response ->expiration [$ i ]),
35+ side: Side::from ($ response ->side [$ i ]),
36+ strike: $ response ->strike [$ i ],
37+ first_traded: Carbon::parse ($ response ->firstTraded [$ i ]),
38+ dte: $ response ->dte [$ i ],
39+ ask: $ response ->ask [$ i ],
40+ ask_size: $ response ->askSize [$ i ],
41+ bid: $ response ->bid [$ i ],
42+ bid_size: $ response ->bidSize [$ i ],
43+ mid: $ response ->mid [$ i ],
44+ last: $ response ->last [$ i ],
45+ volume: $ response ->volume [$ i ],
46+ open_interest: $ response ->openInterest [$ i ],
47+ underlying_price: $ response ->underlyingPrice [$ i ],
48+ in_the_money: $ response ->inTheMoney [$ i ],
49+ intrinsic_value: $ response ->intrinsicValue [$ i ],
50+ extrinsic_value: $ response ->extrinsicValue [$ i ],
51+ implied_volatility: $ response ->iv [$ i ],
52+ delta: $ response ->delta [$ i ],
53+ gamma: $ response ->gamma [$ i ],
54+ theta: $ response ->theta [$ i ],
55+ vega: $ response ->vega [$ i ],
56+ rho: $ response ->rho [$ i ],
57+ updated: Carbon::parse ($ response ->updated [$ i ]),
5858 );
5959 }
6060 break ;
0 commit comments