Skip to content

Commit 3d9fddc

Browse files
maneum1Graeme22
andauthored
Made additional Customer fields optional for compatibility with the sandbox environment (#302)
* Made additional Customer fields option for compatibility with the sandbox environment * add gitter badge --------- Co-authored-by: Graeme Holliday <graeme.holliday@pm.me>
1 parent 804711d commit 3d9fddc

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

tastytrade/session.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -192,27 +192,16 @@ class Customer(TastytradeData):
192192

193193
id: str
194194
first_name: str
195-
first_surname: str
196195
last_name: str
197196
address: Address
198-
customer_suitability: CustomerSuitability
199197
mailing_address: Address
200198
is_foreign: bool
201-
regulatory_domain: str
202199
usa_citizenship_type: str
203-
home_phone_number: str
204200
mobile_phone_number: str
205-
work_phone_number: str
206201
birth_date: date
207202
email: str
208-
external_id: str
209-
tax_number: str
210203
tax_number_type: str
211-
citizenship_country: str
212-
agreed_to_margining: bool
213204
subject_to_tax_withholding: bool
214-
agreed_to_terms: bool
215-
ext_crm_id: str
216205
has_industry_affiliation: bool
217206
has_listed_affiliation: bool
218207
has_political_affiliation: bool
@@ -221,8 +210,19 @@ class Customer(TastytradeData):
221210
is_professional: bool
222211
permitted_account_types: list[CustomerAccountType]
223212
created_at: datetime
224-
identifiable_type: str
225-
person: CustomerPerson
213+
first_surname: str | None = None
214+
customer_suitability: CustomerSuitability | None = None
215+
regulatory_domain: str | None = None
216+
home_phone_number: str | None = None
217+
work_phone_number: str | None = None
218+
external_id: str | None = None
219+
tax_number: str | None = None
220+
citizenship_country: str | None = None
221+
agreed_to_margining: bool | None = None
222+
agreed_to_terms: bool | None = None
223+
ext_crm_id: str | None = None
224+
identifiable_type: str | None = None
225+
person: CustomerPerson | None = None
226226
gender: str | None = None
227227
middle_name: str | None = None
228228
prefix_name: str | None = None

0 commit comments

Comments
 (0)