`ib`: (cukcit) just presume a stonk if we can read type from existing ledger..
							parent
							
								
									f549de7c88
								
							
						
					
					
						commit
						22622e1c01
					
				|  | @ -1153,7 +1153,7 @@ def norm_trade_records( | ||||||
| 
 | 
 | ||||||
|         # special handling of symbol extraction from |         # special handling of symbol extraction from | ||||||
|         # flex records using some ad-hoc schema parsing. |         # flex records using some ad-hoc schema parsing. | ||||||
|         asset_type: str = record.get('assetCategory') or record['secType'] |         asset_type: str = record.get('assetCategory') or record.get('secType', 'STK') | ||||||
| 
 | 
 | ||||||
|         # TODO: XXX: WOA this is kinda hacky.. probably |         # TODO: XXX: WOA this is kinda hacky.. probably | ||||||
|         # should figure out the correct future pair key more |         # should figure out the correct future pair key more | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue