Compare commits
	
		
			1 Commits 
		
	
	
		
			212682a231
			...
			f9018670b9
		
	
	| Author | SHA1 | Date | 
|---|---|---|
|  | f9018670b9 | 
							
								
								
									
										14
									
								
								max_pain.py
								
								
								
								
							
							
						
						
									
										14
									
								
								max_pain.py
								
								
								
								
							|  | @ -10,6 +10,20 @@ async def max_pain_daemon( | ||||||
| ) -> None: | ) -> None: | ||||||
|     async with maybe_open_oi_feed() as oi_feed: |     async with maybe_open_oi_feed() as oi_feed: | ||||||
|         print('Im in...') |         print('Im in...') | ||||||
|  |     def check_if_complete( | ||||||
|  |         oi: dict[str, dict[str, Decimal | None]], | ||||||
|  | 
 | ||||||
|  |         ) -> bool: | ||||||
|  |             for strike in oi: | ||||||
|  |                 if ( | ||||||
|  |                     oi[strike]['C'] == None  | ||||||
|  |                     or | ||||||
|  |                     oi[strike]['P'] == None | ||||||
|  |                 ): | ||||||
|  |                     return False | ||||||
|  |      | ||||||
|  |             return True | ||||||
|  | 
 | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| async def main(): | async def main(): | ||||||
|  |  | ||||||
|  | @ -246,20 +246,6 @@ def get_config() -> dict[str, Any]: | ||||||
| 
 | 
 | ||||||
|     return section |     return section | ||||||
| 
 | 
 | ||||||
| def check_if_complete( |  | ||||||
|     oi: dict[str, dict[str, Decimal | None]], |  | ||||||
| 
 |  | ||||||
|     ) -> bool: |  | ||||||
|         for strike in oi: |  | ||||||
|             if ( |  | ||||||
|                 oi[strike]['C'] == None |  | ||||||
|                 or |  | ||||||
|                 oi[strike]['P'] == None |  | ||||||
|             ): |  | ||||||
|                 return False |  | ||||||
| 
 |  | ||||||
|         return True |  | ||||||
| 
 |  | ||||||
| 
 | 
 | ||||||
| class Client: | class Client: | ||||||
|     ''' |     ''' | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue