Adding shit again

This commit is contained in:
klein panic
2024-12-14 17:37:32 -05:00
6 changed files with 670 additions and 431 deletions

View File

@@ -46,4 +46,9 @@ ignore =
E128
E231
E226
<<<<<<< HEAD
E262
=======
>>>>>>> 6084b0ef7c6d352e99bdc7e2a0bf1f076680fa4b

View File

@@ -277,3 +277,93 @@ Used Swap: 0.00 GB (0.0%)
2024-12-13 13:50:41,816 - MidasV1.Main - INFO - User chose to exit the program.
2024-12-13 13:50:41,816 - MidasV1.InitialChecks - ERROR - [ERROR] Connection to IB Gateway was closed unexpectedly!
2024-12-13 13:50:41,816 - MidasV1.Main - INFO - Disconnected from IB Gateway.
2024-12-14 17:14:48,775 - MidasV1.Main - INFO - Starting MidasV1 Trading Bot...
2024-12-14 17:14:48,776 - MidasV1.InitialChecks - INFO - Checking Operating System...
2024-12-14 17:14:48,776 - MidasV1.InitialChecks - INFO - Operating System Linux is supported.
2024-12-14 17:14:48,776 - MidasV1.InitialChecks - INFO - Checking Dependencies...
2024-12-14 17:14:48,776 - MidasV1.InitialChecks - INFO - All dependencies are satisfied.
2024-12-14 17:14:48,776 - MidasV1.InitialChecks - INFO - Checking System Resources...
2024-12-14 17:14:48,776 - MidasV1.InitialChecks - INFO -
CPU Cores: 12
CPU Clock Speed: 1065.38 MHz
CPU Load Average (1m, 5m, 15m): (0.44287109375, 0.3740234375, 0.3671875)
CPU Threads: 12
Total RAM: 15.31 GB
Used RAM: 2.37 GB (20.9%)
Available RAM: 12.10 GB
Total Swap: 0.95 GB
Used Swap: 0.00 GB (0.0%)
2024-12-14 17:14:48,776 - MidasV1.InitialChecks - INFO - Checking Connectivity with IB Gateway...
2024-12-14 17:14:48,776 - MidasV1.InitialChecks - INFO - ────────────────────────────────────────────────────
2024-12-14 17:14:48,776 - MidasV1.InitialChecks - INFO - IB Gateway Connection Test
2024-12-14 17:14:48,776 - MidasV1.InitialChecks - INFO - ────────────────────────────────────────────────────
2024-12-14 17:14:48,776 - MidasV1.InitialChecks - INFO - Attempting to connect to IB Gateway at 127.0.0.1:4002...
2024-12-14 17:14:48,821 - MidasV1.InitialChecks - INFO - [INFO] Managed accounts: DUE064818
2024-12-14 17:14:48,863 - MidasV1.InitialChecks - INFO - [INFO] Next valid order ID: 1
2024-12-14 17:14:48,863 - MidasV1.InitialChecks - INFO - [INFO/STATUS] id=-1, code=2104, msg=Market data farm connection is OK:usfarm
2024-12-14 17:14:48,863 - MidasV1.InitialChecks - INFO - [INFO/STATUS] id=-1, code=2106, msg=HMDS data farm connection is OK:ushmds
2024-12-14 17:14:48,863 - MidasV1.InitialChecks - INFO - [INFO/STATUS] id=-1, code=2158, msg=Sec-def data farm connection is OK:secdefnj
2024-12-14 17:14:48,911 - MidasV1.InitialChecks - INFO - [INFO] Connected successfully!
2024-12-14 17:14:48,911 - MidasV1.InitialChecks - INFO - Requesting account summary...
2024-12-14 17:14:48,950 - MidasV1.InitialChecks - INFO - [ACCOUNT SUMMARY] ReqId:1, Account:DUE064818, BuyingPower = 4014612.28 USD
2024-12-14 17:14:48,950 - MidasV1.InitialChecks - INFO - [ACCOUNT SUMMARY] ReqId:1, Account:DUE064818, EquityWithLoanValue = 1003653.07 USD
2024-12-14 17:14:48,950 - MidasV1.InitialChecks - INFO - [ACCOUNT SUMMARY] ReqId:1, Account:DUE064818, NetLiquidation = 1005003.25 USD
2024-12-14 17:14:48,950 - MidasV1.InitialChecks - INFO - [ACCOUNT SUMMARY] ReqId:1, Account:DUE064818, TotalCashValue = 1003653.07 USD
2024-12-14 17:14:48,950 - MidasV1.InitialChecks - INFO - [ACCOUNT SUMMARY END] ReqId: 1
2024-12-14 17:14:49,805 - MidasV1.Main - ERROR - Interrupt received. Shutting down gracefully...
2024-12-14 17:14:49,805 - MidasV1.Main - ERROR - Initial checks failed. Exiting program.
2024-12-14 17:14:50,179 - MidasV1.Main - ERROR - Interrupt received. Shutting down gracefully...
2024-12-14 17:14:52,706 - MidasV1.Main - INFO - Starting MidasV1 Trading Bot...
2024-12-14 17:14:52,707 - MidasV1.InitialChecks - INFO - Checking Operating System...
2024-12-14 17:14:52,707 - MidasV1.InitialChecks - INFO - Operating System Linux is supported.
2024-12-14 17:14:52,707 - MidasV1.InitialChecks - INFO - Checking Dependencies...
2024-12-14 17:14:52,707 - MidasV1.InitialChecks - INFO - All dependencies are satisfied.
2024-12-14 17:14:52,707 - MidasV1.InitialChecks - INFO - Checking System Resources...
2024-12-14 17:14:52,707 - MidasV1.InitialChecks - INFO -
CPU Cores: 12
CPU Clock Speed: 978.69 MHz
CPU Load Average (1m, 5m, 15m): (0.44287109375, 0.3740234375, 0.3671875)
CPU Threads: 12
Total RAM: 15.31 GB
Used RAM: 2.43 GB (21.4%)
Available RAM: 12.04 GB
Total Swap: 0.95 GB
Used Swap: 0.00 GB (0.0%)
2024-12-14 17:14:52,707 - MidasV1.InitialChecks - INFO - Checking Connectivity with IB Gateway...
2024-12-14 17:14:52,707 - MidasV1.InitialChecks - INFO - ────────────────────────────────────────────────────
2024-12-14 17:14:52,707 - MidasV1.InitialChecks - INFO - IB Gateway Connection Test
2024-12-14 17:14:52,707 - MidasV1.InitialChecks - INFO - ────────────────────────────────────────────────────
2024-12-14 17:14:52,707 - MidasV1.InitialChecks - INFO - Attempting to connect to IB Gateway at 127.0.0.1:4002...
2024-12-14 17:14:52,712 - MidasV1.InitialChecks - INFO - [INFO] Managed accounts: DUE064818
2024-12-14 17:14:52,755 - MidasV1.InitialChecks - INFO - [INFO] Next valid order ID: 1
2024-12-14 17:14:52,755 - MidasV1.InitialChecks - INFO - [INFO/STATUS] id=-1, code=2104, msg=Market data farm connection is OK:usfarm
2024-12-14 17:14:52,755 - MidasV1.InitialChecks - INFO - [INFO/STATUS] id=-1, code=2106, msg=HMDS data farm connection is OK:ushmds
2024-12-14 17:14:52,756 - MidasV1.InitialChecks - INFO - [INFO/STATUS] id=-1, code=2158, msg=Sec-def data farm connection is OK:secdefnj
2024-12-14 17:14:52,811 - MidasV1.InitialChecks - INFO - [INFO] Connected successfully!
2024-12-14 17:14:52,811 - MidasV1.InitialChecks - INFO - Requesting account summary...
2024-12-14 17:14:52,873 - MidasV1.InitialChecks - INFO - [ACCOUNT SUMMARY] ReqId:1, Account:DUE064818, BuyingPower = 4014612.28 USD
2024-12-14 17:14:52,874 - MidasV1.InitialChecks - INFO - [ACCOUNT SUMMARY] ReqId:1, Account:DUE064818, EquityWithLoanValue = 1003653.07 USD
2024-12-14 17:14:52,874 - MidasV1.InitialChecks - INFO - [ACCOUNT SUMMARY] ReqId:1, Account:DUE064818, NetLiquidation = 1005003.25 USD
2024-12-14 17:14:52,875 - MidasV1.InitialChecks - INFO - [ACCOUNT SUMMARY] ReqId:1, Account:DUE064818, TotalCashValue = 1003653.07 USD
2024-12-14 17:14:52,875 - MidasV1.InitialChecks - INFO - [ACCOUNT SUMMARY END] ReqId: 1
2024-12-14 17:14:57,812 - MidasV1.InitialChecks - INFO - [INFO] Successfully retrieved account summary data.
2024-12-14 17:14:57,813 - MidasV1.InitialChecks - INFO - IB Gateway is connected and ready for upcoming modules.
2024-12-14 17:14:57,813 - MidasV1.InitialChecks - INFO - ────────────────────────────────────────────────────
2024-12-14 17:14:57,813 - MidasV1.InitialChecks - INFO - Test Complete
2024-12-14 17:14:57,813 - MidasV1.InitialChecks - INFO - ────────────────────────────────────────────────────
2024-12-14 17:14:57,813 - MidasV1.InitialChecks - INFO - All initial checks passed successfully.
2024-12-14 17:14:57,813 - MidasV1.StockListPetitioner - INFO - Starting Module 2: IBJTS List Petitioner...
2024-12-14 17:14:57,814 - MidasV1.StockListPetitioner - INFO - Loaded Scanner Criteria:
- Search Volume: 1000000
- Net Change: 0.5
- Percent Change: 2.0
2024-12-14 17:14:57,814 - MidasV1.StockListPetitioner - INFO - Initiating scanner subscription with the above criteria...
2024-12-14 17:14:57,815 - MidasV1.StockListPetitioner - INFO - Scanner subscription requested successfully on attempt 1.
2024-12-14 17:14:57,815 - MidasV1.StockListPetitioner - INFO - Waiting for scanner data (timeout in 15 seconds)...
2024-12-14 17:14:58,484 - MidasV1.InitialChecks - ERROR - [ERROR] id=1001, code=162, msg=Historical Market Data Service error message:Scanner type with code ALL is disabled
2024-12-14 17:15:11,799 - MidasV1.Main - ERROR - Interrupt received. Shutting down gracefully...
2024-12-14 17:15:11,799 - MidasV1.InitialChecks - ERROR - [ERROR] Connection to IB Gateway was closed unexpectedly!
2024-12-14 17:15:11,799 - MidasV1.Main - INFO - Disconnected from IB Gateway.
2024-12-14 17:15:11,799 - MidasV1.Main - ERROR - Initial checks failed. Exiting program.
2024-12-14 17:15:12,316 - MidasV1.Main - ERROR - Interrupt received. Shutting down gracefully...
2024-12-14 17:15:12,316 - MidasV1.Main - INFO - Disconnected from IB Gateway.

140
src/MidasV1/tags Normal file
View File

@@ -0,0 +1,140 @@
!_TAG_FILE_FORMAT 2 /extended format; --format=1 will not append ;" to lines/
!_TAG_FILE_SORTED 1 /0=unsorted, 1=sorted, 2=foldcase/
!_TAG_OUTPUT_EXCMD mixed /number, pattern, mixed, or combineV2/
!_TAG_OUTPUT_FILESEP slash /slash or backslash/
!_TAG_OUTPUT_MODE u-ctags /u-ctags or e-ctags/
!_TAG_PATTERN_LENGTH_LIMIT 96 /0 for no limit/
!_TAG_PROC_CWD /home/klein/codeWS/Projects/MidasTechnologiesLLC/MidasTechnologies/src/MidasV1/ //
!_TAG_PROGRAM_AUTHOR Universal Ctags Team //
!_TAG_PROGRAM_NAME Universal Ctags /Derived from Exuberant Ctags/
!_TAG_PROGRAM_URL https://ctags.io/ /official site/
!_TAG_PROGRAM_VERSION 5.9.0 //
Additional Information README.md /^## Additional Information$/;" s chapter:MidasV1
Available Flags README.md /^### Available Flags$/;" S section:MidasV1""Usage
BLUE tests/test_connection.py /^BLUE = "\\033[94m"$/;" v
BLUE tests/test_stock_retriever.py /^BLUE = "\\033[94m"$/;" v
BOLD tests/test_connection.py /^BOLD = "\\033[1m"$/;" v
COLOR_CODES main.py /^ COLOR_CODES = {$/;" v class:ColoredFormatter
ColoredFormatter main.py /^class ColoredFormatter(logging.Formatter):$/;" c
Configuration README.md /^## Configuration$/;" s chapter:MidasV1
Configuration Sections README.md /^### Configuration Sections$/;" S section:MidasV1""Configuration
ConnectionTestApp modules/initial_checks.py /^ class ConnectionTestApp(TestWrapper, TestClient):$/;" c member:InitialChecks.check_connectivity file:
ConnectionTestApp tests/test_connection.py /^class ConnectionTestApp(TestWrapper, TestClient):$/;" c
Disclaimer README.md /^## Disclaimer$/;" s chapter:MidasV1
Example Commands README.md /^### Example Commands$/;" S section:MidasV1""Usage
File Structure README.md /^## File Structure$/;" s chapter:MidasV1
Future Enhancements README.md /^## Future Enhancements$/;" s chapter:MidasV1
GREEN tests/test_connection.py /^GREEN = "\\033[92m"$/;" v
GREEN tests/test_stock_retriever.py /^GREEN = "\\033[92m"$/;" v
General Additions README.md /^### General Additions$/;" S section:MidasV1""Workflow & Program Design
General Technical Overview README.md /^## General Technical Overview$/;" s chapter:MidasV1
InitialChecks modules/initial_checks.py /^class InitialChecks:$/;" c
Installation README.md /^## Installation$/;" s chapter:MidasV1
Logging README.md /^## Logging$/;" s chapter:MidasV1
MAGENTA tests/test_connection.py /^MAGENTA = "\\033[95m"$/;" v
MAGENTA tests/test_stock_retriever.py /^MAGENTA = "\\033[95m"$/;" v
MidasV1 README.md /^# MidasV1$/;" c
Module 1: Initial Checks README.md /^### Module 1: Initial Checks$/;" S section:MidasV1""Workflow & Program Design
Module 2: IBJTS List Petitioner README.md /^### Module 2: IBJTS List Petitioner$/;" S section:MidasV1""Workflow & Program Design
Module 3: Stock Information Retrieval README.md /^### Module 3: Stock Information Retrieval$/;" S section:MidasV1""Workflow & Program Design
Module 4: Option Chain Trading & Risk Management README.md /^### Module 4: Option Chain Trading & Risk Management$/;" S section:MidasV1""Workflow & Program Design
Overview README.md /^## Overview$/;" s chapter:MidasV1
Prerequisites README.md /^### Prerequisites$/;" S section:MidasV1""Installation
RED tests/test_connection.py /^RED = "\\033[91m"$/;" v
RED tests/test_stock_retriever.py /^RED = "\\033[91m"$/;" v
RESET tests/test_connection.py /^RESET = "\\033[0m"$/;" v
RESET tests/test_stock_retriever.py /^RESET = "\\033[0m"$/;" v
RESET_CODE main.py /^ RESET_CODE = "\\033[0m"$/;" v class:ColoredFormatter
Running the Application README.md /^### Running the Application$/;" S section:MidasV1""Usage
SEPARATOR modules/initial_checks.py /^SEPARATOR = "────────────────────────────/;" v
SEPARATOR tests/test_connection.py /^SEPARATOR = MAGENTA + "─────────────────────────/;" v
Steps README.md /^### Steps$/;" S section:MidasV1""Installation
StockListPetitioner modules/stock_list_petitioner.py /^class StockListPetitioner:$/;" c
Table of Contents README.md /^## Table of Contents$/;" s chapter:MidasV1
TestClient modules/initial_checks.py /^ class TestClient(EClient):$/;" c member:InitialChecks.check_connectivity file:
TestClient tests/test_connection.py /^class TestClient(EClient):$/;" c
TestStockRetriever tests/test_stock_retriever.py /^class TestStockRetriever(EWrapper, EClient):$/;" c
TestWrapper modules/initial_checks.py /^ class TestWrapper(EWrapper):$/;" c member:InitialChecks.check_connectivity file:
TestWrapper tests/test_connection.py /^class TestWrapper(EWrapper):$/;" c
Testing Modules README.md /^### Testing Modules$/;" S section:MidasV1""Usage
Usage README.md /^## Usage$/;" s chapter:MidasV1
Workflow & Program Design README.md /^## Workflow & Program Design$/;" s chapter:MidasV1
YELLOW tests/test_connection.py /^YELLOW = "\\033[93m"$/;" v
YELLOW tests/test_stock_retriever.py /^YELLOW = "\\033[93m"$/;" v
__init__ modules/initial_checks.py /^ def __init__(self, host: str, port: int, client_id: int, logger, callback_handlers=[/;" m class:InitialChecks.check_connectivity.ConnectionTestApp
__init__ modules/initial_checks.py /^ def __init__(self, logger, callback_handlers):$/;" m class:InitialChecks.check_connectivity.TestWrapper
__init__ modules/initial_checks.py /^ def __init__(self, wrapper):$/;" m class:InitialChecks.check_connectivity.TestClient
__init__ modules/initial_checks.py /^ def __init__(self, config, verbose=False):$/;" m class:InitialChecks
__init__ modules/stock_list_petitioner.py /^ def __init__(self, config):$/;" m class:StockListPetitioner
__init__ tests/test_connection.py /^ def __init__(self):$/;" m class:TestWrapper
__init__ tests/test_connection.py /^ def __init__(self, host: str, port: int, client_id: int):$/;" m class:ConnectionTestApp
__init__ tests/test_connection.py /^ def __init__(self, wrapper):$/;" m class:TestClient
__init__ tests/test_stock_retriever.py /^ def __init__(self, symbols, criteria):$/;" m class:TestStockRetriever
a. Load README.md /^#### a. Load$/;" t subsection:MidasV1""Workflow & Program Design""Module 3: Stock Information Retrieval
a. Operating System Check README.md /^#### a. Operating System Check$/;" t subsection:MidasV1""Workflow & Program Design""Module 1: Initial Checks
a. Option Chain Data README.md /^#### a. Option Chain Data$/;" t subsection:MidasV1""Workflow & Program Design""Module 4: Option Chain Trading & Risk Management
a. Scanner README.md /^#### a. Scanner$/;" t subsection:MidasV1""Workflow & Program Design""Module 2: IBJTS List Petitioner
accountSummary modules/initial_checks.py /^ def accountSummary(self, reqId: int, account: str, tag: str, value: str, currency: s/;" m class:InitialChecks.check_connectivity.TestWrapper
accountSummary tests/test_connection.py /^ def accountSummary(self, reqId: int, account: str, tag: str, value: str, currency: str):$/;" m class:TestWrapper
accountSummaryEnd modules/initial_checks.py /^ def accountSummaryEnd(self, reqId: int):$/;" m class:InitialChecks.check_connectivity.TestWrapper
accountSummaryEnd tests/test_connection.py /^ def accountSummaryEnd(self, reqId: int):$/;" m class:TestWrapper
app tests/test_connection.py /^ app = ConnectionTestApp(host, port, client_id)$/;" v
b. Dependency Check README.md /^#### b. Dependency Check$/;" t subsection:MidasV1""Workflow & Program Design""Module 1: Initial Checks
b. Refiner README.md /^#### b. Refiner$/;" t subsection:MidasV1""Workflow & Program Design""Module 2: IBJTS List Petitioner
b. Risk Management Stage 1 README.md /^#### b. Risk Management Stage 1$/;" t subsection:MidasV1""Workflow & Program Design""Module 4: Option Chain Trading & Risk Management
b. Threaded Information Gathering & Choosing Strategy README.md /^#### b. Threaded Information Gathering & Choosing Strategy$/;" t subsection:MidasV1""Workflow & Program Design""Module 3: Stock Information Retrieval
c. Buying and Selling / Risk Management Stage 2 README.md /^#### c. Buying and Selling \/ Risk Management Stage 2$/;" t subsection:MidasV1""Workflow & Program Design""Module 4: Option Chain Trading & Risk Management
c. Connectivity Check README.md /^#### c. Connectivity Check$/;" t subsection:MidasV1""Workflow & Program Design""Module 1: Initial Checks
c. Strategy Implementation & Market Determination README.md /^#### c. Strategy Implementation & Market Determination$/;" t subsection:MidasV1""Workflow & Program Design""Module 3: Stock Information Retrieval
cache_refined_list modules/stock_list_petitioner.py /^ def cache_refined_list(self, refined_list):$/;" m class:StockListPetitioner
check_connectivity modules/initial_checks.py /^ def check_connectivity(self, callback_handlers=[]):$/;" m class:InitialChecks
check_dependencies modules/initial_checks.py /^ def check_dependencies(self):$/;" m class:InitialChecks
check_os modules/initial_checks.py /^ def check_os(self):$/;" m class:InitialChecks
check_system_resources modules/initial_checks.py /^ def check_system_resources(self):$/;" m class:InitialChecks
client_id tests/test_connection.py /^ client_id = 0 # Choose a unique client ID$/;" v
connect_and_run modules/initial_checks.py /^ def connect_and_run(self):$/;" m class:InitialChecks.check_connectivity.ConnectionTestApp
connect_and_run tests/test_connection.py /^ def connect_and_run(self):$/;" m class:ConnectionTestApp
connected_client main.py /^connected_client = None$/;" v
connectionClosed modules/initial_checks.py /^ def connectionClosed(self):$/;" m class:InitialChecks.check_connectivity.TestWrapper
connectionClosed tests/test_stock_retriever.py /^ def connectionClosed(self):$/;" m class:TestStockRetriever
contractDetails_override modules/stock_list_petitioner.py /^ def contractDetails_override(reqId, contractDetails):$/;" f member:StockListPetitioner.has_option_contracts file:
create_contract tests/test_stock_retriever.py /^ def create_contract(self, symbol):$/;" m class:TestStockRetriever
error modules/initial_checks.py /^ def error(self, reqId, errorCode, errorString, advancedOrderRejectJson=""):$/;" m class:InitialChecks.check_connectivity.TestWrapper
error tests/test_connection.py /^ def error(self, reqId, errorCode, errorString, advancedOrderRejectJson=""):$/;" m class:TestWrapper
error tests/test_stock_retriever.py /^ def error(self, reqId, errorCode, errorString, advancedOrderRejectJson=""):$/;" m class:TestStockRetriever
format main.py /^ def format(self, record):$/;" m class:ColoredFormatter
get_share_price modules/stock_list_petitioner.py /^ def get_share_price(self, symbol):$/;" m class:StockListPetitioner
get_volatility_index modules/stock_list_petitioner.py /^ def get_volatility_index(self, symbol):$/;" m class:StockListPetitioner
has_option_contracts modules/stock_list_petitioner.py /^ def has_option_contracts(self, symbol):$/;" m class:StockListPetitioner
host tests/test_connection.py /^ host = "127.0.0.1"$/;" v
load_config main.py /^def load_config(config_path='config\/config.config'):$/;" f
main main.py /^def main():$/;" f
main tests/test_stock_retriever.py /^def main():$/;" f
managedAccounts modules/initial_checks.py /^ def managedAccounts(self, accountsList: str):$/;" m class:InitialChecks.check_connectivity.TestWrapper
managedAccounts tests/test_connection.py /^ def managedAccounts(self, accountsList: str):$/;" m class:TestWrapper
marketDataType tests/test_stock_retriever.py /^ def marketDataType(self, reqId, marketDataType):$/;" m class:TestStockRetriever
nextValidId modules/initial_checks.py /^ def nextValidId(self, orderId: int):$/;" m class:InitialChecks.check_connectivity.TestWrapper
nextValidId tests/test_connection.py /^ def nextValidId(self, orderId: int):$/;" m class:TestWrapper
nextValidId tests/test_stock_retriever.py /^ def nextValidId(self, orderId):$/;" m class:TestStockRetriever
parse_arguments main.py /^def parse_arguments():$/;" f
port tests/test_connection.py /^ port = 4002 # Paper trading port$/;" v
print_refined_list modules/stock_list_petitioner.py /^ def print_refined_list(self, refined_list):$/;" m class:StockListPetitioner
refine_stock_list modules/stock_list_petitioner.py /^ def refine_stock_list(self):$/;" m class:StockListPetitioner
request_market_data tests/test_stock_retriever.py /^ def request_market_data(self):$/;" m class:TestStockRetriever
run_all_checks modules/initial_checks.py /^ def run_all_checks(self, skip_checks=False, callback_handlers=[]):$/;" m class:InitialChecks
run_module modules/stock_list_petitioner.py /^ def run_module(self):$/;" m class:StockListPetitioner
run_retriever tests/test_stock_retriever.py /^ def run_retriever(self):$/;" m class:TestStockRetriever
scannerData modules/initial_checks.py /^ def scannerData(self, reqId: int, rank: int, contractDetails: Contract, distance: st/;" m class:InitialChecks.check_connectivity.TestWrapper
scannerData modules/stock_list_petitioner.py /^ def scannerData(self, reqId: int, rank: int, contractDetails, distance: str,$/;" m class:StockListPetitioner
scannerDataEnd modules/initial_checks.py /^ def scannerDataEnd(self, reqId: int):$/;" m class:InitialChecks.check_connectivity.TestWrapper
scannerDataEnd modules/stock_list_petitioner.py /^ def scannerDataEnd(self, reqId: int):$/;" m class:StockListPetitioner
set_client modules/stock_list_petitioner.py /^ def set_client(self, connected_client):$/;" m class:StockListPetitioner
setup_logging main.py /^def setup_logging(verbose=False, log_level='INFO'):$/;" f
signal_handler main.py /^def signal_handler(sig, frame):$/;" f
signal_handler tests/test_stock_retriever.py /^def signal_handler(sig, frame, app):$/;" f
stop tests/test_stock_retriever.py /^ def stop(self):$/;" m class:TestStockRetriever
tickGeneric tests/test_stock_retriever.py /^ def tickGeneric(self, reqId, tickType, value):$/;" m class:TestStockRetriever
tickPrice tests/test_stock_retriever.py /^ def tickPrice(self, reqId, tickType, price, attrib):$/;" m class:TestStockRetriever
tickPrice_override modules/stock_list_petitioner.py /^ def tickPrice_override(reqId, tickType, price_value, attrib):$/;" f member:StockListPetitioner.get_share_price file:
tickSize tests/test_stock_retriever.py /^ def tickSize(self, reqId, tickType, size):$/;" m class:TestStockRetriever
tickString tests/test_stock_retriever.py /^ def tickString(self, reqId, tickType, value):$/;" m class:TestStockRetriever

View File

@@ -1,431 +1,435 @@
2024-12-13 22:17:07,314 - DEBUG - 140417584002128 connState: None -> 0
2024-12-13 22:17:07,314 - DEBUG - 140417584002128 connState: None -> 0
2024-12-13 22:17:07,314 - DEBUG - Connecting to 127.0.0.1:4002 w/ id:1
2024-12-13 22:17:07,314 - DEBUG - 140417584002128 connState: 0 -> 1
2024-12-13 22:17:07,314 - DEBUG - msg b'\x00\x00\x00\tv100..193'
2024-12-13 22:17:07,314 - DEBUG - REQUEST b'API\x00\x00\x00\x00\tv100..193'
2024-12-13 22:17:07,314 - DEBUG - acquiring lock
2024-12-13 22:17:07,314 - DEBUG - acquired lock
2024-12-13 22:17:07,314 - DEBUG - releasing lock
2024-12-13 22:17:07,314 - DEBUG - release lock
2024-12-13 22:17:07,314 - DEBUG - sendMsg: sent: 17
2024-12-13 22:17:07,315 - DEBUG - no fields
2024-12-13 22:17:07,351 - DEBUG - len 30 raw:b'\x00\x00\x00\x1a187\x0020241213 22:17:07 EST\x00'|
2024-12-13 22:17:07,351 - DEBUG - ANSWER b'\x00\x00\x00\x1a187\x0020241213 22:17:07 EST\x00'
2024-12-13 22:17:07,351 - DEBUG - read_msg: size: 26
2024-12-13 22:17:07,351 - DEBUG - size:26 msg:b'187\x0020241213 22:17:07 EST\x00' rest:b''|
2024-12-13 22:17:07,351 - DEBUG - fields (b'187', b'20241213 22:17:07 EST')
2024-12-13 22:17:07,351 - DEBUG - ANSWER Version:187 time:b'20241213 22:17:07 EST'
2024-12-13 22:17:07,351 - DEBUG - 140417584002128 connState: 1 -> 2
2024-12-13 22:17:07,352 - DEBUG - EReader thread started
2024-12-13 22:17:07,352 - INFO - sent startApi
2024-12-13 22:17:07,352 - INFO - REQUEST startApi {}
2024-12-13 22:17:07,352 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:07,352 - INFO - SENDING startApi b'\x00\x00\x00\x0871\x002\x001\x00\x00'
2024-12-13 22:17:07,352 - DEBUG - acquiring lock
2024-12-13 22:17:07,352 - DEBUG - acquired lock
2024-12-13 22:17:07,352 - DEBUG - releasing lock
2024-12-13 22:17:07,352 - DEBUG - release lock
2024-12-13 22:17:07,352 - DEBUG - sendMsg: sent: 12
2024-12-13 22:17:07,352 - INFO - ANSWER connectAck {}
2024-12-13 22:17:07,352 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:07,369 - DEBUG - len 19 raw:b'\x00\x00\x00\x0f15\x001\x00DUE064818\x00'|
2024-12-13 22:17:07,369 - DEBUG - reader loop, recvd size 19
2024-12-13 22:17:07,369 - DEBUG - read_msg: size: 15
2024-12-13 22:17:07,369 - DEBUG - size:15 msg.size:15 msg:|b''| buf:||
2024-12-13 22:17:07,370 - DEBUG - fields (b'15', b'1', b'DUE064818')
2024-12-13 22:17:07,370 - DEBUG - In interpret(), handleInfo: wrap:<function EWrapper.managedAccounts at 0x7fb5845893a0> meth:None prms:OrderedDict([('self', <Parameter "self">), ('accountsList', <Parameter "accountsList: str">)])
2024-12-13 22:17:07,370 - DEBUG - field b'DUE064818'
2024-12-13 22:17:07,370 - DEBUG - arg DUE064818 type <class 'str'>
2024-12-13 22:17:07,370 - DEBUG - calling <bound method EWrapper.managedAccounts of <__main__.TestStockRetriever object at 0x7fb58436f450>> with <__main__.TestStockRetriever object at 0x7fb58436f450> ['DUE064818']
2024-12-13 22:17:07,370 - INFO - ANSWER managedAccounts {'accountsList': 'DUE064818'}
2024-12-13 22:17:07,370 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:07,370 - DEBUG - conn:1 queue.sz:0
2024-12-13 22:17:07,370 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:07,410 - DEBUG - len 185 raw:b'\x00\x00\x00\x069\x001\x001\x00\x00\x00\x0064\x002\x00-1\x002104\x00Market data farm connection is OK:usfarm\x00\x00\x00\x00\x0044\x002\x00-1\x002106\x00HMDS data farm connection is OK:ushmds\x00\x00\x00\x00\x0094\x002\x00-1\x002158\x00Sec-def data farm connection is OK:secdefnj\x00\x00'|
2024-12-13 22:17:07,410 - DEBUG - reader loop, recvd size 185
2024-12-13 22:17:07,410 - DEBUG - read_msg: size: 6
2024-12-13 22:17:07,410 - DEBUG - size:6 msg.size:6 msg:|b'\x00\x00\x0064\x002\x00-1\x002104\x00Market data farm connection is OK:usfarm\x00\x00\x00\x00\x0044\x002\x00-1\x002106\x00HMDS data farm connection is OK:ushmds\x00\x00\x00\x00\x0094\x002\x00-1\x002158\x00Sec-def data farm connection is OK:secdefnj\x00\x00'| buf:||
2024-12-13 22:17:07,410 - DEBUG - read_msg: size: 54
2024-12-13 22:17:07,410 - DEBUG - size:54 msg.size:54 msg:|b'\x00\x00\x0044\x002\x00-1\x002106\x00HMDS data farm connection is OK:ushmds\x00\x00\x00\x00\x0094\x002\x00-1\x002158\x00Sec-def data farm connection is OK:secdefnj\x00\x00'| buf:||
2024-12-13 22:17:07,411 - DEBUG - fields (b'9', b'1', b'1')
2024-12-13 22:17:07,411 - DEBUG - read_msg: size: 52
2024-12-13 22:17:07,411 - DEBUG - In interpret(), handleInfo: wrap:<function EWrapper.nextValidId at 0x7fb584588e00> meth:None prms:OrderedDict([('self', <Parameter "self">), ('orderId', <Parameter "orderId: int">)])
2024-12-13 22:17:07,412 - DEBUG - size:52 msg.size:52 msg:|b'\x00\x00\x0094\x002\x00-1\x002158\x00Sec-def data farm connection is OK:secdefnj\x00\x00'| buf:||
2024-12-13 22:17:07,412 - DEBUG - field b'1'
2024-12-13 22:17:07,412 - DEBUG - read_msg: size: 57
2024-12-13 22:17:07,413 - DEBUG - arg 1 type <class 'int'>
2024-12-13 22:17:07,413 - DEBUG - calling <bound method TestStockRetriever.nextValidId of <__main__.TestStockRetriever object at 0x7fb58436f450>> with <__main__.TestStockRetriever object at 0x7fb58436f450> [1]
2024-12-13 22:17:07,413 - DEBUG - size:57 msg.size:57 msg:|b''| buf:||
2024-12-13 22:17:07,413 - INFO - NextValidId received: 1
2024-12-13 22:17:07,414 - INFO - Requesting market data for symbols...
2024-12-13 22:17:07,414 - INFO - REQUEST reqMktData {'reqId': 1001, 'contract': 140417587752272: 0,AAPL,STK,,,0,,,SMART,,USD,,,False,,,,combo:, 'genericTickList': '', 'snapshot': False, 'regulatorySnapshot': False, 'mktDataOptions': []}
2024-12-13 22:17:07,414 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:07,414 - INFO - SENDING reqMktData b'\x00\x00\x0011\x0011\x001001\x000\x00AAPL\x00STK\x00\x000.0\x00\x00\x00SMART\x00\x00USD\x00\x00\x000\x00\x000\x000\x00\x00'
2024-12-13 22:17:07,414 - DEBUG - acquiring lock
2024-12-13 22:17:07,414 - DEBUG - acquired lock
2024-12-13 22:17:07,414 - DEBUG - releasing lock
2024-12-13 22:17:07,414 - DEBUG - release lock
2024-12-13 22:17:07,414 - DEBUG - sendMsg: sent: 53
2024-12-13 22:17:07,414 - DEBUG - Requested market data for AAPL with ReqId: 1001
2024-12-13 22:17:07,414 - INFO - REQUEST reqMktData {'reqId': 1002, 'contract': 140417584111056: 0,MSFT,STK,,,0,,,SMART,,USD,,,False,,,,combo:, 'genericTickList': '', 'snapshot': False, 'regulatorySnapshot': False, 'mktDataOptions': []}
2024-12-13 22:17:07,414 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:07,414 - INFO - SENDING reqMktData b'\x00\x00\x0011\x0011\x001002\x000\x00MSFT\x00STK\x00\x000.0\x00\x00\x00SMART\x00\x00USD\x00\x00\x000\x00\x000\x000\x00\x00'
2024-12-13 22:17:07,414 - DEBUG - acquiring lock
2024-12-13 22:17:07,414 - DEBUG - acquired lock
2024-12-13 22:17:07,414 - DEBUG - releasing lock
2024-12-13 22:17:07,414 - DEBUG - release lock
2024-12-13 22:17:07,414 - DEBUG - sendMsg: sent: 53
2024-12-13 22:17:07,415 - DEBUG - Requested market data for MSFT with ReqId: 1002
2024-12-13 22:17:07,415 - INFO - REQUEST reqMktData {'reqId': 1003, 'contract': 140417584110928: 0,GOOGL,STK,,,0,,,SMART,,USD,,,False,,,,combo:, 'genericTickList': '', 'snapshot': False, 'regulatorySnapshot': False, 'mktDataOptions': []}
2024-12-13 22:17:07,415 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:07,415 - INFO - SENDING reqMktData b'\x00\x00\x0021\x0011\x001003\x000\x00GOOGL\x00STK\x00\x000.0\x00\x00\x00SMART\x00\x00USD\x00\x00\x000\x00\x000\x000\x00\x00'
2024-12-13 22:17:07,415 - DEBUG - acquiring lock
2024-12-13 22:17:07,415 - DEBUG - acquired lock
2024-12-13 22:17:07,415 - DEBUG - releasing lock
2024-12-13 22:17:07,415 - DEBUG - release lock
2024-12-13 22:17:07,415 - DEBUG - sendMsg: sent: 54
2024-12-13 22:17:07,415 - DEBUG - Requested market data for GOOGL with ReqId: 1003
2024-12-13 22:17:07,415 - INFO - REQUEST reqMktData {'reqId': 1004, 'contract': 140417584111184: 0,AMZN,STK,,,0,,,SMART,,USD,,,False,,,,combo:, 'genericTickList': '', 'snapshot': False, 'regulatorySnapshot': False, 'mktDataOptions': []}
2024-12-13 22:17:07,415 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:07,415 - INFO - SENDING reqMktData b'\x00\x00\x0011\x0011\x001004\x000\x00AMZN\x00STK\x00\x000.0\x00\x00\x00SMART\x00\x00USD\x00\x00\x000\x00\x000\x000\x00\x00'
2024-12-13 22:17:07,415 - DEBUG - acquiring lock
2024-12-13 22:17:07,415 - DEBUG - acquired lock
2024-12-13 22:17:07,415 - DEBUG - releasing lock
2024-12-13 22:17:07,415 - DEBUG - release lock
2024-12-13 22:17:07,415 - DEBUG - sendMsg: sent: 53
2024-12-13 22:17:07,415 - DEBUG - Requested market data for AMZN with ReqId: 1004
2024-12-13 22:17:07,415 - INFO - REQUEST reqMktData {'reqId': 1005, 'contract': 140417584111440: 0,TSLA,STK,,,0,,,SMART,,USD,,,False,,,,combo:, 'genericTickList': '', 'snapshot': False, 'regulatorySnapshot': False, 'mktDataOptions': []}
2024-12-13 22:17:07,415 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:07,415 - INFO - SENDING reqMktData b'\x00\x00\x0011\x0011\x001005\x000\x00TSLA\x00STK\x00\x000.0\x00\x00\x00SMART\x00\x00USD\x00\x00\x000\x00\x000\x000\x00\x00'
2024-12-13 22:17:07,415 - DEBUG - acquiring lock
2024-12-13 22:17:07,415 - DEBUG - acquired lock
2024-12-13 22:17:07,415 - DEBUG - releasing lock
2024-12-13 22:17:07,415 - DEBUG - release lock
2024-12-13 22:17:07,415 - DEBUG - sendMsg: sent: 53
2024-12-13 22:17:07,415 - DEBUG - Requested market data for TSLA with ReqId: 1005
2024-12-13 22:17:07,415 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:07,415 - DEBUG - conn:1 queue.sz:3
2024-12-13 22:17:07,415 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:07,416 - DEBUG - fields (b'4', b'2', b'-1', b'2104', b'Market data farm connection is OK:usfarm', b'')
2024-12-13 22:17:07,416 - DEBUG - decode <class 'int'> b'2'
2024-12-13 22:17:07,416 - DEBUG - decode <class 'int'> b'-1'
2024-12-13 22:17:07,416 - DEBUG - decode <class 'int'> b'2104'
2024-12-13 22:17:07,416 - DEBUG - decode <class 'str'> b'Market data farm connection is OK:usfarm'
2024-12-13 22:17:07,416 - DEBUG - decode <class 'str'> b''
2024-12-13 22:17:07,416 - ERROR - Error. ReqId: -1, Code: 2104, Msg: Market data farm connection is OK:usfarm, Advanced Order Reject JSON:
2024-12-13 22:17:07,416 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:07,416 - DEBUG - conn:1 queue.sz:2
2024-12-13 22:17:07,416 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:07,416 - DEBUG - fields (b'4', b'2', b'-1', b'2106', b'HMDS data farm connection is OK:ushmds', b'')
2024-12-13 22:17:07,416 - DEBUG - decode <class 'int'> b'2'
2024-12-13 22:17:07,416 - DEBUG - decode <class 'int'> b'-1'
2024-12-13 22:17:07,416 - DEBUG - decode <class 'int'> b'2106'
2024-12-13 22:17:07,416 - DEBUG - decode <class 'str'> b'HMDS data farm connection is OK:ushmds'
2024-12-13 22:17:07,416 - DEBUG - decode <class 'str'> b''
2024-12-13 22:17:07,416 - ERROR - Error. ReqId: -1, Code: 2106, Msg: HMDS data farm connection is OK:ushmds, Advanced Order Reject JSON:
2024-12-13 22:17:07,416 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:07,416 - DEBUG - conn:1 queue.sz:1
2024-12-13 22:17:07,416 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:07,416 - DEBUG - fields (b'4', b'2', b'-1', b'2158', b'Sec-def data farm connection is OK:secdefnj', b'')
2024-12-13 22:17:07,416 - DEBUG - decode <class 'int'> b'2'
2024-12-13 22:17:07,416 - DEBUG - decode <class 'int'> b'-1'
2024-12-13 22:17:07,416 - DEBUG - decode <class 'int'> b'2158'
2024-12-13 22:17:07,416 - DEBUG - decode <class 'str'> b'Sec-def data farm connection is OK:secdefnj'
2024-12-13 22:17:07,416 - DEBUG - decode <class 'str'> b''
2024-12-13 22:17:07,416 - ERROR - Error. ReqId: -1, Code: 2158, Msg: Sec-def data farm connection is OK:secdefnj, Advanced Order Reject JSON:
2024-12-13 22:17:07,416 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:07,416 - DEBUG - conn:1 queue.sz:0
2024-12-13 22:17:07,416 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:07,617 - DEBUG - queue.get: empty
2024-12-13 22:17:07,617 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:07,617 - DEBUG - conn:1 queue.sz:0
2024-12-13 22:17:07,617 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:07,809 - DEBUG - len 203 raw:b"\x00\x00\x00\xc74\x002\x001001\x0010089\x00Requested market data requires additional subscription for API. See link in 'Market Data Connections' dialog for more details.Delayed market data is available.AAPL NASDAQ.NMS/TOP/ALL\x00\x00"|
2024-12-13 22:17:07,809 - DEBUG - reader loop, recvd size 203
2024-12-13 22:17:07,809 - DEBUG - read_msg: size: 199
2024-12-13 22:17:07,809 - DEBUG - size:199 msg.size:199 msg:|b''| buf:||
2024-12-13 22:17:07,809 - DEBUG - fields (b'4', b'2', b'1001', b'10089', b"Requested market data requires additional subscription for API. See link in 'Market Data Connections' dialog for more details.Delayed market data is available.AAPL NASDAQ.NMS/TOP/ALL", b'')
2024-12-13 22:17:07,809 - DEBUG - decode <class 'int'> b'2'
2024-12-13 22:17:07,809 - DEBUG - decode <class 'int'> b'1001'
2024-12-13 22:17:07,809 - DEBUG - decode <class 'int'> b'10089'
2024-12-13 22:17:07,810 - DEBUG - decode <class 'str'> b"Requested market data requires additional subscription for API. See link in 'Market Data Connections' dialog for more details.Delayed market data is available.AAPL NASDAQ.NMS/TOP/ALL"
2024-12-13 22:17:07,810 - DEBUG - decode <class 'str'> b''
2024-12-13 22:17:07,810 - ERROR - Error. ReqId: 1001, Code: 10089, Msg: Requested market data requires additional subscription for API. See link in 'Market Data Connections' dialog for more details.Delayed market data is available.AAPL NASDAQ.NMS/TOP/ALL, Advanced Order Reject JSON:
2024-12-13 22:17:07,810 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:07,810 - DEBUG - conn:1 queue.sz:0
2024-12-13 22:17:07,810 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:07,860 - DEBUG - len 203 raw:b"\x00\x00\x00\xc74\x002\x001002\x0010089\x00Requested market data requires additional subscription for API. See link in 'Market Data Connections' dialog for more details.Delayed market data is available.MSFT NASDAQ.NMS/TOP/ALL\x00\x00"|
2024-12-13 22:17:07,860 - DEBUG - reader loop, recvd size 203
2024-12-13 22:17:07,860 - DEBUG - read_msg: size: 199
2024-12-13 22:17:07,861 - DEBUG - size:199 msg.size:199 msg:|b''| buf:||
2024-12-13 22:17:07,861 - DEBUG - fields (b'4', b'2', b'1002', b'10089', b"Requested market data requires additional subscription for API. See link in 'Market Data Connections' dialog for more details.Delayed market data is available.MSFT NASDAQ.NMS/TOP/ALL", b'')
2024-12-13 22:17:07,861 - DEBUG - decode <class 'int'> b'2'
2024-12-13 22:17:07,861 - DEBUG - decode <class 'int'> b'1002'
2024-12-13 22:17:07,861 - DEBUG - decode <class 'int'> b'10089'
2024-12-13 22:17:07,861 - DEBUG - decode <class 'str'> b"Requested market data requires additional subscription for API. See link in 'Market Data Connections' dialog for more details.Delayed market data is available.MSFT NASDAQ.NMS/TOP/ALL"
2024-12-13 22:17:07,861 - DEBUG - decode <class 'str'> b''
2024-12-13 22:17:07,861 - ERROR - Error. ReqId: 1002, Code: 10089, Msg: Requested market data requires additional subscription for API. See link in 'Market Data Connections' dialog for more details.Delayed market data is available.MSFT NASDAQ.NMS/TOP/ALL, Advanced Order Reject JSON:
2024-12-13 22:17:07,861 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:07,862 - DEBUG - conn:1 queue.sz:0
2024-12-13 22:17:07,862 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:07,864 - DEBUG - len 204 raw:b"\x00\x00\x00\xc84\x002\x001003\x0010089\x00Requested market data requires additional subscription for API. See link in 'Market Data Connections' dialog for more details.Delayed market data is available.GOOGL NASDAQ.NMS/TOP/ALL\x00\x00"|
2024-12-13 22:17:07,864 - DEBUG - reader loop, recvd size 204
2024-12-13 22:17:07,865 - DEBUG - read_msg: size: 200
2024-12-13 22:17:07,865 - DEBUG - size:200 msg.size:200 msg:|b''| buf:||
2024-12-13 22:17:07,865 - DEBUG - fields (b'4', b'2', b'1003', b'10089', b"Requested market data requires additional subscription for API. See link in 'Market Data Connections' dialog for more details.Delayed market data is available.GOOGL NASDAQ.NMS/TOP/ALL", b'')
2024-12-13 22:17:07,865 - DEBUG - decode <class 'int'> b'2'
2024-12-13 22:17:07,865 - DEBUG - decode <class 'int'> b'1003'
2024-12-13 22:17:07,865 - DEBUG - decode <class 'int'> b'10089'
2024-12-13 22:17:07,865 - DEBUG - decode <class 'str'> b"Requested market data requires additional subscription for API. See link in 'Market Data Connections' dialog for more details.Delayed market data is available.GOOGL NASDAQ.NMS/TOP/ALL"
2024-12-13 22:17:07,865 - DEBUG - decode <class 'str'> b''
2024-12-13 22:17:07,866 - ERROR - Error. ReqId: 1003, Code: 10089, Msg: Requested market data requires additional subscription for API. See link in 'Market Data Connections' dialog for more details.Delayed market data is available.GOOGL NASDAQ.NMS/TOP/ALL, Advanced Order Reject JSON:
2024-12-13 22:17:07,866 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:07,866 - DEBUG - conn:1 queue.sz:0
2024-12-13 22:17:07,866 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:07,866 - DEBUG - len 203 raw:b"\x00\x00\x00\xc74\x002\x001004\x0010089\x00Requested market data requires additional subscription for API. See link in 'Market Data Connections' dialog for more details.Delayed market data is available.AMZN NASDAQ.NMS/TOP/ALL\x00\x00"|
2024-12-13 22:17:07,867 - DEBUG - reader loop, recvd size 203
2024-12-13 22:17:07,867 - DEBUG - read_msg: size: 199
2024-12-13 22:17:07,867 - DEBUG - size:199 msg.size:199 msg:|b''| buf:||
2024-12-13 22:17:07,867 - DEBUG - fields (b'4', b'2', b'1004', b'10089', b"Requested market data requires additional subscription for API. See link in 'Market Data Connections' dialog for more details.Delayed market data is available.AMZN NASDAQ.NMS/TOP/ALL", b'')
2024-12-13 22:17:07,867 - DEBUG - decode <class 'int'> b'2'
2024-12-13 22:17:07,867 - DEBUG - decode <class 'int'> b'1004'
2024-12-13 22:17:07,867 - DEBUG - decode <class 'int'> b'10089'
2024-12-13 22:17:07,867 - DEBUG - decode <class 'str'> b"Requested market data requires additional subscription for API. See link in 'Market Data Connections' dialog for more details.Delayed market data is available.AMZN NASDAQ.NMS/TOP/ALL"
2024-12-13 22:17:07,867 - DEBUG - decode <class 'str'> b''
2024-12-13 22:17:07,868 - ERROR - Error. ReqId: 1004, Code: 10089, Msg: Requested market data requires additional subscription for API. See link in 'Market Data Connections' dialog for more details.Delayed market data is available.AMZN NASDAQ.NMS/TOP/ALL, Advanced Order Reject JSON:
2024-12-13 22:17:07,868 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:07,868 - DEBUG - conn:1 queue.sz:0
2024-12-13 22:17:07,868 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:08,038 - DEBUG - len 203 raw:b"\x00\x00\x00\xc74\x002\x001005\x0010089\x00Requested market data requires additional subscription for API. See link in 'Market Data Connections' dialog for more details.Delayed market data is available.TSLA NASDAQ.NMS/TOP/ALL\x00\x00"|
2024-12-13 22:17:08,038 - DEBUG - reader loop, recvd size 203
2024-12-13 22:17:08,039 - DEBUG - read_msg: size: 199
2024-12-13 22:17:08,039 - DEBUG - size:199 msg.size:199 msg:|b''| buf:||
2024-12-13 22:17:08,039 - DEBUG - fields (b'4', b'2', b'1005', b'10089', b"Requested market data requires additional subscription for API. See link in 'Market Data Connections' dialog for more details.Delayed market data is available.TSLA NASDAQ.NMS/TOP/ALL", b'')
2024-12-13 22:17:08,039 - DEBUG - decode <class 'int'> b'2'
2024-12-13 22:17:08,039 - DEBUG - decode <class 'int'> b'1005'
2024-12-13 22:17:08,039 - DEBUG - decode <class 'int'> b'10089'
2024-12-13 22:17:08,039 - DEBUG - decode <class 'str'> b"Requested market data requires additional subscription for API. See link in 'Market Data Connections' dialog for more details.Delayed market data is available.TSLA NASDAQ.NMS/TOP/ALL"
2024-12-13 22:17:08,039 - DEBUG - decode <class 'str'> b''
2024-12-13 22:17:08,040 - ERROR - Error. ReqId: 1005, Code: 10089, Msg: Requested market data requires additional subscription for API. See link in 'Market Data Connections' dialog for more details.Delayed market data is available.TSLA NASDAQ.NMS/TOP/ALL, Advanced Order Reject JSON:
2024-12-13 22:17:08,040 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:08,040 - DEBUG - conn:1 queue.sz:0
2024-12-13 22:17:08,040 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:08,240 - DEBUG - queue.get: empty
2024-12-13 22:17:08,241 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:08,241 - DEBUG - conn:1 queue.sz:0
2024-12-13 22:17:08,241 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:08,442 - DEBUG - queue.get: empty
2024-12-13 22:17:08,442 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:08,442 - DEBUG - conn:1 queue.sz:0
2024-12-13 22:17:08,443 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:08,643 - DEBUG - queue.get: empty
2024-12-13 22:17:08,644 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:08,644 - DEBUG - conn:1 queue.sz:0
2024-12-13 22:17:08,644 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:08,845 - DEBUG - queue.get: empty
2024-12-13 22:17:08,845 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:08,846 - DEBUG - conn:1 queue.sz:0
2024-12-13 22:17:08,846 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:09,040 - DEBUG - socket timeout from recvMsg (<class 'TimeoutError'>, TimeoutError('timed out'), <traceback object at 0x7fb58438a100>)
2024-12-13 22:17:09,040 - DEBUG - reader loop, recvd size 0
2024-12-13 22:17:09,046 - DEBUG - queue.get: empty
2024-12-13 22:17:09,046 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:09,046 - DEBUG - conn:1 queue.sz:0
2024-12-13 22:17:09,046 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:09,246 - DEBUG - queue.get: empty
2024-12-13 22:17:09,247 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:09,247 - DEBUG - conn:1 queue.sz:0
2024-12-13 22:17:09,247 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:09,447 - DEBUG - queue.get: empty
2024-12-13 22:17:09,448 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:09,448 - DEBUG - conn:1 queue.sz:0
2024-12-13 22:17:09,448 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:09,648 - DEBUG - queue.get: empty
2024-12-13 22:17:09,648 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:09,648 - DEBUG - conn:1 queue.sz:0
2024-12-13 22:17:09,648 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:09,849 - DEBUG - queue.get: empty
2024-12-13 22:17:09,849 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:09,849 - DEBUG - conn:1 queue.sz:0
2024-12-13 22:17:09,850 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:10,041 - DEBUG - socket timeout from recvMsg (<class 'TimeoutError'>, TimeoutError('timed out'), <traceback object at 0x7fb584389d80>)
2024-12-13 22:17:10,042 - DEBUG - reader loop, recvd size 0
2024-12-13 22:17:10,050 - DEBUG - queue.get: empty
2024-12-13 22:17:10,051 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:10,051 - DEBUG - conn:1 queue.sz:0
2024-12-13 22:17:10,051 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:10,252 - DEBUG - queue.get: empty
2024-12-13 22:17:10,252 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:10,252 - DEBUG - conn:1 queue.sz:0
2024-12-13 22:17:10,253 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:10,453 - DEBUG - queue.get: empty
2024-12-13 22:17:10,454 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:10,454 - DEBUG - conn:1 queue.sz:0
2024-12-13 22:17:10,454 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:10,654 - DEBUG - queue.get: empty
2024-12-13 22:17:10,655 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:10,655 - DEBUG - conn:1 queue.sz:0
2024-12-13 22:17:10,655 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:10,856 - DEBUG - queue.get: empty
2024-12-13 22:17:10,856 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:10,856 - DEBUG - conn:1 queue.sz:0
2024-12-13 22:17:10,856 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:11,044 - DEBUG - socket timeout from recvMsg (<class 'TimeoutError'>, TimeoutError('timed out'), <traceback object at 0x7fb58438a080>)
2024-12-13 22:17:11,044 - DEBUG - reader loop, recvd size 0
2024-12-13 22:17:11,057 - DEBUG - queue.get: empty
2024-12-13 22:17:11,057 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:11,057 - DEBUG - conn:1 queue.sz:0
2024-12-13 22:17:11,058 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:11,258 - DEBUG - queue.get: empty
2024-12-13 22:17:11,259 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:11,259 - DEBUG - conn:1 queue.sz:0
2024-12-13 22:17:11,259 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:11,460 - DEBUG - queue.get: empty
2024-12-13 22:17:11,460 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:11,460 - DEBUG - conn:1 queue.sz:0
2024-12-13 22:17:11,460 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:11,661 - DEBUG - queue.get: empty
2024-12-13 22:17:11,661 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:11,661 - DEBUG - conn:1 queue.sz:0
2024-12-13 22:17:11,662 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:11,862 - DEBUG - queue.get: empty
2024-12-13 22:17:11,863 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:11,863 - DEBUG - conn:1 queue.sz:0
2024-12-13 22:17:11,863 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:12,045 - DEBUG - socket timeout from recvMsg (<class 'TimeoutError'>, TimeoutError('timed out'), <traceback object at 0x7fb58438a100>)
2024-12-13 22:17:12,046 - DEBUG - reader loop, recvd size 0
2024-12-13 22:17:12,064 - DEBUG - queue.get: empty
2024-12-13 22:17:12,064 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:12,064 - DEBUG - conn:1 queue.sz:0
2024-12-13 22:17:12,065 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:12,265 - DEBUG - queue.get: empty
2024-12-13 22:17:12,266 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:12,266 - DEBUG - conn:1 queue.sz:0
2024-12-13 22:17:12,266 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:12,467 - DEBUG - queue.get: empty
2024-12-13 22:17:12,467 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:12,467 - DEBUG - conn:1 queue.sz:0
2024-12-13 22:17:12,467 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:12,668 - DEBUG - queue.get: empty
2024-12-13 22:17:12,668 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:12,668 - DEBUG - conn:1 queue.sz:0
2024-12-13 22:17:12,668 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:12,869 - DEBUG - queue.get: empty
2024-12-13 22:17:12,869 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:12,870 - DEBUG - conn:1 queue.sz:0
2024-12-13 22:17:12,870 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:13,047 - DEBUG - socket timeout from recvMsg (<class 'TimeoutError'>, TimeoutError('timed out'), <traceback object at 0x7fb584389d80>)
2024-12-13 22:17:13,048 - DEBUG - reader loop, recvd size 0
2024-12-13 22:17:13,070 - DEBUG - queue.get: empty
2024-12-13 22:17:13,070 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:13,071 - DEBUG - conn:1 queue.sz:0
2024-12-13 22:17:13,071 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:13,271 - DEBUG - queue.get: empty
2024-12-13 22:17:13,271 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:13,272 - DEBUG - conn:1 queue.sz:0
2024-12-13 22:17:13,272 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:13,472 - DEBUG - queue.get: empty
2024-12-13 22:17:13,473 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:13,473 - DEBUG - conn:1 queue.sz:0
2024-12-13 22:17:13,473 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:13,674 - DEBUG - queue.get: empty
2024-12-13 22:17:13,674 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:13,674 - DEBUG - conn:1 queue.sz:0
2024-12-13 22:17:13,674 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:13,875 - DEBUG - queue.get: empty
2024-12-13 22:17:13,875 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:13,875 - DEBUG - conn:1 queue.sz:0
2024-12-13 22:17:13,876 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:14,049 - DEBUG - socket timeout from recvMsg (<class 'TimeoutError'>, TimeoutError('timed out'), <traceback object at 0x7fb58438a080>)
2024-12-13 22:17:14,050 - DEBUG - reader loop, recvd size 0
2024-12-13 22:17:14,076 - DEBUG - queue.get: empty
2024-12-13 22:17:14,077 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:14,077 - DEBUG - conn:1 queue.sz:0
2024-12-13 22:17:14,077 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:14,278 - DEBUG - queue.get: empty
2024-12-13 22:17:14,278 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:14,278 - DEBUG - conn:1 queue.sz:0
2024-12-13 22:17:14,279 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:14,479 - DEBUG - queue.get: empty
2024-12-13 22:17:14,480 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:14,480 - DEBUG - conn:1 queue.sz:0
2024-12-13 22:17:14,480 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:14,680 - DEBUG - queue.get: empty
2024-12-13 22:17:14,681 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:14,681 - DEBUG - conn:1 queue.sz:0
2024-12-13 22:17:14,681 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:14,882 - DEBUG - queue.get: empty
2024-12-13 22:17:14,882 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:14,882 - DEBUG - conn:1 queue.sz:0
2024-12-13 22:17:14,883 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:15,050 - DEBUG - socket timeout from recvMsg (<class 'TimeoutError'>, TimeoutError('timed out'), <traceback object at 0x7fb58438a100>)
2024-12-13 22:17:15,051 - DEBUG - reader loop, recvd size 0
2024-12-13 22:17:15,083 - DEBUG - queue.get: empty
2024-12-13 22:17:15,083 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:15,083 - DEBUG - conn:1 queue.sz:0
2024-12-13 22:17:15,084 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:15,284 - DEBUG - queue.get: empty
2024-12-13 22:17:15,285 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:15,285 - DEBUG - conn:1 queue.sz:0
2024-12-13 22:17:15,285 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:15,485 - DEBUG - queue.get: empty
2024-12-13 22:17:15,486 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:15,486 - DEBUG - conn:1 queue.sz:0
2024-12-13 22:17:15,486 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:15,686 - DEBUG - queue.get: empty
2024-12-13 22:17:15,687 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:15,687 - DEBUG - conn:1 queue.sz:0
2024-12-13 22:17:15,687 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:15,888 - DEBUG - queue.get: empty
2024-12-13 22:17:15,888 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:15,888 - DEBUG - conn:1 queue.sz:0
2024-12-13 22:17:15,888 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:16,052 - DEBUG - socket timeout from recvMsg (<class 'TimeoutError'>, TimeoutError('timed out'), <traceback object at 0x7fb584389d80>)
2024-12-13 22:17:16,052 - DEBUG - reader loop, recvd size 0
2024-12-13 22:17:16,089 - DEBUG - queue.get: empty
2024-12-13 22:17:16,089 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:16,089 - DEBUG - conn:1 queue.sz:0
2024-12-13 22:17:16,089 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:16,290 - DEBUG - queue.get: empty
2024-12-13 22:17:16,290 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:16,290 - DEBUG - conn:1 queue.sz:0
2024-12-13 22:17:16,291 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:16,491 - DEBUG - queue.get: empty
2024-12-13 22:17:16,491 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:16,492 - DEBUG - conn:1 queue.sz:0
2024-12-13 22:17:16,492 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:16,692 - DEBUG - queue.get: empty
2024-12-13 22:17:16,693 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:16,693 - DEBUG - conn:1 queue.sz:0
2024-12-13 22:17:16,693 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:16,893 - DEBUG - queue.get: empty
2024-12-13 22:17:16,894 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:16,894 - DEBUG - conn:1 queue.sz:0
2024-12-13 22:17:16,894 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:17,054 - DEBUG - socket timeout from recvMsg (<class 'TimeoutError'>, TimeoutError('timed out'), <traceback object at 0x7fb58438a080>)
2024-12-13 22:17:17,054 - DEBUG - reader loop, recvd size 0
2024-12-13 22:17:17,095 - DEBUG - queue.get: empty
2024-12-13 22:17:17,095 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:17,095 - DEBUG - conn:1 queue.sz:0
2024-12-13 22:17:17,096 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:17,296 - DEBUG - queue.get: empty
2024-12-13 22:17:17,297 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:17,297 - DEBUG - conn:1 queue.sz:0
2024-12-13 22:17:17,297 - DEBUG - 140417584002128 isConn: 2, connConnected: True
2024-12-13 22:17:17,353 - WARNING - Timeout while waiting for market data.
2024-12-13 22:17:17,353 - DEBUG - 140417584002128 connState: 2 -> 0
2024-12-13 22:17:17,353 - INFO - disconnecting
2024-12-13 22:17:17,353 - DEBUG - disconnecting
2024-12-13 22:17:17,353 - DEBUG - disconnected
2024-12-13 22:17:17,353 - INFO - Connection to IB Gateway closed.
2024-12-13 22:17:17,353 - DEBUG - 140417584002128 connState: None -> 0
2024-12-13 22:17:17,498 - DEBUG - queue.get: empty
2024-12-13 22:17:17,498 - DEBUG - 140417584002128 isConn: 0, connConnected: None
2024-12-13 22:17:17,498 - DEBUG - conn:0 queue.sz:0
2024-12-13 22:17:17,499 - DEBUG - 140417584002128 isConn: 0, connConnected: None
2024-12-13 22:17:17,499 - DEBUG - 140417584002128 connState: 0 -> 0
2024-12-13 22:17:18,055 - DEBUG - socket broken, disconnecting
2024-12-13 22:17:18,055 - DEBUG - reader loop, recvd size 0
2024-12-13 22:17:18,055 - DEBUG - EReader thread finished
2024-12-13 22:17:19,354 - INFO - TestStockRetriever completed.
2024-12-14 17:15:20,608 - DEBUG - 139803350594384 connState: None -> 0
2024-12-14 17:15:20,608 - DEBUG - 139803350594384 connState: None -> 0
2024-12-14 17:15:20,608 - DEBUG - Connecting to 127.0.0.1:4002 w/ id:1
2024-12-14 17:15:20,608 - DEBUG - 139803350594384 connState: 0 -> 1
2024-12-14 17:15:20,608 - DEBUG - msg b'\x00\x00\x00\tv100..193'
2024-12-14 17:15:20,608 - DEBUG - REQUEST b'API\x00\x00\x00\x00\tv100..193'
2024-12-14 17:15:20,608 - DEBUG - acquiring lock
2024-12-14 17:15:20,608 - DEBUG - acquired lock
2024-12-14 17:15:20,608 - DEBUG - releasing lock
2024-12-14 17:15:20,608 - DEBUG - release lock
2024-12-14 17:15:20,608 - DEBUG - sendMsg: sent: 17
2024-12-14 17:15:20,609 - DEBUG - no fields
2024-12-14 17:15:20,611 - DEBUG - len 30 raw:b'\x00\x00\x00\x1a187\x0020241214 17:15:20 EST\x00'|
2024-12-14 17:15:20,611 - DEBUG - ANSWER b'\x00\x00\x00\x1a187\x0020241214 17:15:20 EST\x00'
2024-12-14 17:15:20,611 - DEBUG - read_msg: size: 26
2024-12-14 17:15:20,611 - DEBUG - size:26 msg:b'187\x0020241214 17:15:20 EST\x00' rest:b''|
2024-12-14 17:15:20,611 - DEBUG - fields (b'187', b'20241214 17:15:20 EST')
2024-12-14 17:15:20,611 - DEBUG - ANSWER Version:187 time:b'20241214 17:15:20 EST'
2024-12-14 17:15:20,611 - DEBUG - 139803350594384 connState: 1 -> 2
2024-12-14 17:15:20,611 - DEBUG - EReader thread started
2024-12-14 17:15:20,611 - INFO - sent startApi
2024-12-14 17:15:20,611 - INFO - REQUEST startApi {}
2024-12-14 17:15:20,611 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:20,611 - INFO - SENDING startApi b'\x00\x00\x00\x0871\x002\x001\x00\x00'
2024-12-14 17:15:20,611 - DEBUG - acquiring lock
2024-12-14 17:15:20,612 - DEBUG - acquired lock
2024-12-14 17:15:20,612 - DEBUG - releasing lock
2024-12-14 17:15:20,612 - DEBUG - release lock
2024-12-14 17:15:20,612 - DEBUG - sendMsg: sent: 12
2024-12-14 17:15:20,612 - INFO - ANSWER connectAck {}
2024-12-14 17:15:20,612 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:20,612 - DEBUG - len 19 raw:b'\x00\x00\x00\x0f15\x001\x00DUE064818\x00'|
2024-12-14 17:15:20,612 - DEBUG - reader loop, recvd size 19
2024-12-14 17:15:20,613 - DEBUG - read_msg: size: 15
2024-12-14 17:15:20,613 - DEBUG - size:15 msg.size:15 msg:|b''| buf:||
2024-12-14 17:15:20,613 - DEBUG - fields (b'15', b'1', b'DUE064818')
2024-12-14 17:15:20,613 - DEBUG - In interpret(), handleInfo: wrap:<function EWrapper.managedAccounts at 0x7f26812ed3a0> meth:None prms:OrderedDict([('self', <Parameter "self">), ('accountsList', <Parameter "accountsList: str">)])
2024-12-14 17:15:20,613 - DEBUG - field b'DUE064818'
2024-12-14 17:15:20,613 - DEBUG - arg DUE064818 type <class 'str'>
2024-12-14 17:15:20,613 - DEBUG - calling <bound method EWrapper.managedAccounts of <__main__.TestStockRetriever object at 0x7f26810cf350>> with <__main__.TestStockRetriever object at 0x7f26810cf350> ['DUE064818']
2024-12-14 17:15:20,613 - INFO - ANSWER managedAccounts {'accountsList': 'DUE064818'}
2024-12-14 17:15:20,613 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:20,613 - DEBUG - conn:1 queue.sz:0
2024-12-14 17:15:20,613 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:20,655 - DEBUG - len 185 raw:b'\x00\x00\x00\x069\x001\x001\x00\x00\x00\x0064\x002\x00-1\x002104\x00Market data farm connection is OK:usfarm\x00\x00\x00\x00\x0044\x002\x00-1\x002106\x00HMDS data farm connection is OK:ushmds\x00\x00\x00\x00\x0094\x002\x00-1\x002158\x00Sec-def data farm connection is OK:secdefnj\x00\x00'|
2024-12-14 17:15:20,656 - DEBUG - reader loop, recvd size 185
2024-12-14 17:15:20,656 - DEBUG - read_msg: size: 6
2024-12-14 17:15:20,656 - DEBUG - size:6 msg.size:6 msg:|b'\x00\x00\x0064\x002\x00-1\x002104\x00Market data farm connection is OK:usfarm\x00\x00\x00\x00\x0044\x002\x00-1\x002106\x00HMDS data farm connection is OK:ushmds\x00\x00\x00\x00\x0094\x002\x00-1\x002158\x00Sec-def data farm connection is OK:secdefnj\x00\x00'| buf:||
2024-12-14 17:15:20,656 - DEBUG - read_msg: size: 54
2024-12-14 17:15:20,656 - DEBUG - size:54 msg.size:54 msg:|b'\x00\x00\x0044\x002\x00-1\x002106\x00HMDS data farm connection is OK:ushmds\x00\x00\x00\x00\x0094\x002\x00-1\x002158\x00Sec-def data farm connection is OK:secdefnj\x00\x00'| buf:||
2024-12-14 17:15:20,656 - DEBUG - fields (b'9', b'1', b'1')
2024-12-14 17:15:20,657 - DEBUG - read_msg: size: 52
2024-12-14 17:15:20,657 - DEBUG - In interpret(), handleInfo: wrap:<function EWrapper.nextValidId at 0x7f26812ece00> meth:None prms:OrderedDict([('self', <Parameter "self">), ('orderId', <Parameter "orderId: int">)])
2024-12-14 17:15:20,658 - DEBUG - field b'1'
2024-12-14 17:15:20,658 - DEBUG - size:52 msg.size:52 msg:|b'\x00\x00\x0094\x002\x00-1\x002158\x00Sec-def data farm connection is OK:secdefnj\x00\x00'| buf:||
2024-12-14 17:15:20,658 - DEBUG - arg 1 type <class 'int'>
2024-12-14 17:15:20,659 - DEBUG - read_msg: size: 57
2024-12-14 17:15:20,659 - DEBUG - calling <bound method TestStockRetriever.nextValidId of <__main__.TestStockRetriever object at 0x7f26810cf350>> with <__main__.TestStockRetriever object at 0x7f26810cf350> [1]
2024-12-14 17:15:20,659 - DEBUG - size:57 msg.size:57 msg:|b''| buf:||
2024-12-14 17:15:20,660 - INFO - NextValidId received: 1
2024-12-14 17:15:20,660 - INFO - Requesting market data for symbols...
2024-12-14 17:15:20,660 - INFO - REQUEST reqMktData {'reqId': 1001, 'contract': 139803353717136: 0,AAPL,STK,,,0,,,SMART,,USD,,,False,,,,combo:, 'genericTickList': '', 'snapshot': False, 'regulatorySnapshot': False, 'mktDataOptions': []}
2024-12-14 17:15:20,660 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:20,660 - INFO - SENDING reqMktData b'\x00\x00\x0011\x0011\x001001\x000\x00AAPL\x00STK\x00\x000.0\x00\x00\x00SMART\x00\x00USD\x00\x00\x000\x00\x000\x000\x00\x00'
2024-12-14 17:15:20,661 - DEBUG - acquiring lock
2024-12-14 17:15:20,661 - DEBUG - acquired lock
2024-12-14 17:15:20,661 - DEBUG - releasing lock
2024-12-14 17:15:20,661 - DEBUG - release lock
2024-12-14 17:15:20,661 - DEBUG - sendMsg: sent: 53
2024-12-14 17:15:20,661 - DEBUG - Requested market data for AAPL with ReqId: 1001
2024-12-14 17:15:20,661 - INFO - REQUEST reqMktData {'reqId': 1002, 'contract': 139803350703760: 0,MSFT,STK,,,0,,,SMART,,USD,,,False,,,,combo:, 'genericTickList': '', 'snapshot': False, 'regulatorySnapshot': False, 'mktDataOptions': []}
2024-12-14 17:15:20,661 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:20,661 - INFO - SENDING reqMktData b'\x00\x00\x0011\x0011\x001002\x000\x00MSFT\x00STK\x00\x000.0\x00\x00\x00SMART\x00\x00USD\x00\x00\x000\x00\x000\x000\x00\x00'
2024-12-14 17:15:20,661 - DEBUG - acquiring lock
2024-12-14 17:15:20,661 - DEBUG - acquired lock
2024-12-14 17:15:20,661 - DEBUG - releasing lock
2024-12-14 17:15:20,661 - DEBUG - release lock
2024-12-14 17:15:20,661 - DEBUG - sendMsg: sent: 53
2024-12-14 17:15:20,661 - DEBUG - Requested market data for MSFT with ReqId: 1002
2024-12-14 17:15:20,661 - INFO - REQUEST reqMktData {'reqId': 1003, 'contract': 139803350703952: 0,GOOGL,STK,,,0,,,SMART,,USD,,,False,,,,combo:, 'genericTickList': '', 'snapshot': False, 'regulatorySnapshot': False, 'mktDataOptions': []}
2024-12-14 17:15:20,662 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:20,662 - INFO - SENDING reqMktData b'\x00\x00\x0021\x0011\x001003\x000\x00GOOGL\x00STK\x00\x000.0\x00\x00\x00SMART\x00\x00USD\x00\x00\x000\x00\x000\x000\x00\x00'
2024-12-14 17:15:20,662 - DEBUG - acquiring lock
2024-12-14 17:15:20,662 - DEBUG - acquired lock
2024-12-14 17:15:20,662 - DEBUG - releasing lock
2024-12-14 17:15:20,662 - DEBUG - release lock
2024-12-14 17:15:20,662 - DEBUG - sendMsg: sent: 54
2024-12-14 17:15:20,662 - DEBUG - Requested market data for GOOGL with ReqId: 1003
2024-12-14 17:15:20,662 - INFO - REQUEST reqMktData {'reqId': 1004, 'contract': 139803350704080: 0,AMZN,STK,,,0,,,SMART,,USD,,,False,,,,combo:, 'genericTickList': '', 'snapshot': False, 'regulatorySnapshot': False, 'mktDataOptions': []}
2024-12-14 17:15:20,662 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:20,662 - INFO - SENDING reqMktData b'\x00\x00\x0011\x0011\x001004\x000\x00AMZN\x00STK\x00\x000.0\x00\x00\x00SMART\x00\x00USD\x00\x00\x000\x00\x000\x000\x00\x00'
2024-12-14 17:15:20,662 - DEBUG - acquiring lock
2024-12-14 17:15:20,662 - DEBUG - acquired lock
2024-12-14 17:15:20,662 - DEBUG - releasing lock
2024-12-14 17:15:20,662 - DEBUG - release lock
2024-12-14 17:15:20,662 - DEBUG - sendMsg: sent: 53
2024-12-14 17:15:20,662 - DEBUG - Requested market data for AMZN with ReqId: 1004
2024-12-14 17:15:20,662 - INFO - REQUEST reqMktData {'reqId': 1005, 'contract': 139803350704144: 0,TSLA,STK,,,0,,,SMART,,USD,,,False,,,,combo:, 'genericTickList': '', 'snapshot': False, 'regulatorySnapshot': False, 'mktDataOptions': []}
2024-12-14 17:15:20,662 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:20,663 - INFO - SENDING reqMktData b'\x00\x00\x0011\x0011\x001005\x000\x00TSLA\x00STK\x00\x000.0\x00\x00\x00SMART\x00\x00USD\x00\x00\x000\x00\x000\x000\x00\x00'
2024-12-14 17:15:20,663 - DEBUG - acquiring lock
2024-12-14 17:15:20,663 - DEBUG - acquired lock
2024-12-14 17:15:20,663 - DEBUG - releasing lock
2024-12-14 17:15:20,663 - DEBUG - release lock
2024-12-14 17:15:20,663 - DEBUG - sendMsg: sent: 53
2024-12-14 17:15:20,663 - DEBUG - Requested market data for TSLA with ReqId: 1005
2024-12-14 17:15:20,663 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:20,663 - DEBUG - conn:1 queue.sz:3
2024-12-14 17:15:20,663 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:20,663 - DEBUG - fields (b'4', b'2', b'-1', b'2104', b'Market data farm connection is OK:usfarm', b'')
2024-12-14 17:15:20,663 - DEBUG - decode <class 'int'> b'2'
2024-12-14 17:15:20,663 - DEBUG - decode <class 'int'> b'-1'
2024-12-14 17:15:20,663 - DEBUG - decode <class 'int'> b'2104'
2024-12-14 17:15:20,663 - DEBUG - decode <class 'str'> b'Market data farm connection is OK:usfarm'
2024-12-14 17:15:20,663 - DEBUG - decode <class 'str'> b''
2024-12-14 17:15:20,663 - ERROR - Error. ReqId: -1, Code: 2104, Msg: Market data farm connection is OK:usfarm, Advanced Order Reject JSON:
2024-12-14 17:15:20,663 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:20,663 - DEBUG - conn:1 queue.sz:2
2024-12-14 17:15:20,663 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:20,663 - DEBUG - fields (b'4', b'2', b'-1', b'2106', b'HMDS data farm connection is OK:ushmds', b'')
2024-12-14 17:15:20,663 - DEBUG - decode <class 'int'> b'2'
2024-12-14 17:15:20,663 - DEBUG - decode <class 'int'> b'-1'
2024-12-14 17:15:20,663 - DEBUG - decode <class 'int'> b'2106'
2024-12-14 17:15:20,663 - DEBUG - decode <class 'str'> b'HMDS data farm connection is OK:ushmds'
2024-12-14 17:15:20,664 - DEBUG - decode <class 'str'> b''
2024-12-14 17:15:20,664 - ERROR - Error. ReqId: -1, Code: 2106, Msg: HMDS data farm connection is OK:ushmds, Advanced Order Reject JSON:
2024-12-14 17:15:20,664 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:20,664 - DEBUG - conn:1 queue.sz:1
2024-12-14 17:15:20,664 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:20,664 - DEBUG - fields (b'4', b'2', b'-1', b'2158', b'Sec-def data farm connection is OK:secdefnj', b'')
2024-12-14 17:15:20,664 - DEBUG - decode <class 'int'> b'2'
2024-12-14 17:15:20,664 - DEBUG - decode <class 'int'> b'-1'
2024-12-14 17:15:20,664 - DEBUG - decode <class 'int'> b'2158'
2024-12-14 17:15:20,664 - DEBUG - decode <class 'str'> b'Sec-def data farm connection is OK:secdefnj'
2024-12-14 17:15:20,664 - DEBUG - decode <class 'str'> b''
2024-12-14 17:15:20,664 - ERROR - Error. ReqId: -1, Code: 2158, Msg: Sec-def data farm connection is OK:secdefnj, Advanced Order Reject JSON:
2024-12-14 17:15:20,664 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:20,664 - DEBUG - conn:1 queue.sz:0
2024-12-14 17:15:20,664 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:20,864 - DEBUG - queue.get: empty
2024-12-14 17:15:20,864 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:20,864 - DEBUG - conn:1 queue.sz:0
2024-12-14 17:15:20,864 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:21,065 - DEBUG - queue.get: empty
2024-12-14 17:15:21,065 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:21,065 - DEBUG - conn:1 queue.sz:0
2024-12-14 17:15:21,065 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:21,103 - DEBUG - len 203 raw:b"\x00\x00\x00\xc74\x002\x001001\x0010089\x00Requested market data requires additional subscription for API. See link in 'Market Data Connections' dialog for more details.Delayed market data is available.AAPL NASDAQ.NMS/TOP/ALL\x00\x00"|
2024-12-14 17:15:21,104 - DEBUG - reader loop, recvd size 203
2024-12-14 17:15:21,104 - DEBUG - read_msg: size: 199
2024-12-14 17:15:21,104 - DEBUG - size:199 msg.size:199 msg:|b''| buf:||
2024-12-14 17:15:21,104 - DEBUG - fields (b'4', b'2', b'1001', b'10089', b"Requested market data requires additional subscription for API. See link in 'Market Data Connections' dialog for more details.Delayed market data is available.AAPL NASDAQ.NMS/TOP/ALL", b'')
2024-12-14 17:15:21,104 - DEBUG - decode <class 'int'> b'2'
2024-12-14 17:15:21,104 - DEBUG - decode <class 'int'> b'1001'
2024-12-14 17:15:21,104 - DEBUG - decode <class 'int'> b'10089'
2024-12-14 17:15:21,104 - DEBUG - decode <class 'str'> b"Requested market data requires additional subscription for API. See link in 'Market Data Connections' dialog for more details.Delayed market data is available.AAPL NASDAQ.NMS/TOP/ALL"
2024-12-14 17:15:21,104 - DEBUG - decode <class 'str'> b''
2024-12-14 17:15:21,104 - ERROR - Error. ReqId: 1001, Code: 10089, Msg: Requested market data requires additional subscription for API. See link in 'Market Data Connections' dialog for more details.Delayed market data is available.AAPL NASDAQ.NMS/TOP/ALL, Advanced Order Reject JSON:
2024-12-14 17:15:21,104 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:21,104 - DEBUG - conn:1 queue.sz:0
2024-12-14 17:15:21,104 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:21,147 - DEBUG - len 610 raw:b"\x00\x00\x00\xc74\x002\x001002\x0010089\x00Requested market data requires additional subscription for API. See link in 'Market Data Connections' dialog for more details.Delayed market data is available.MSFT NASDAQ.NMS/TOP/ALL\x00\x00\x00\x00\x00\xc84\x002\x001003\x0010089\x00Requested market data requires additional subscription for API. See link in 'Market Data Connections' dialog for more details.Delayed market data is available.GOOGL NASDAQ.NMS/TOP/ALL\x00\x00\x00\x00\x00\xc74\x002\x001004\x0010089\x00Requested market data requires additional subscription for API. See link in 'Market Data Connections' dialog for more details.Delayed market data is available.AMZN NASDAQ.NMS/TOP/ALL\x00\x00"|
2024-12-14 17:15:21,147 - DEBUG - reader loop, recvd size 610
2024-12-14 17:15:21,147 - DEBUG - read_msg: size: 199
2024-12-14 17:15:21,147 - DEBUG - size:199 msg.size:199 msg:|b"\x00\x00\x00\xc84\x002\x001003\x0010089\x00Requested market data requires additional subscription for API. See link in 'Market Data Connections' dialog for more details.Delayed market data is available.GOOGL NASDAQ.NMS/TOP/ALL\x00\x00\x00\x00\x00\xc74\x002\x001004\x0010089\x00Requested market data requires additional subscription for API. See link in 'Market Data Connections' dialog for more details.Delayed market data is available.AMZN NASDAQ.NMS/TOP/ALL\x00\x00"| buf:||
2024-12-14 17:15:21,148 - DEBUG - read_msg: size: 200
2024-12-14 17:15:21,148 - DEBUG - size:200 msg.size:200 msg:|b"\x00\x00\x00\xc74\x002\x001004\x0010089\x00Requested market data requires additional subscription for API. See link in 'Market Data Connections' dialog for more details.Delayed market data is available.AMZN NASDAQ.NMS/TOP/ALL\x00\x00"| buf:||
2024-12-14 17:15:21,148 - DEBUG - read_msg: size: 199
2024-12-14 17:15:21,148 - DEBUG - size:199 msg.size:199 msg:|b''| buf:||
2024-12-14 17:15:21,148 - DEBUG - fields (b'4', b'2', b'1002', b'10089', b"Requested market data requires additional subscription for API. See link in 'Market Data Connections' dialog for more details.Delayed market data is available.MSFT NASDAQ.NMS/TOP/ALL", b'')
2024-12-14 17:15:21,148 - DEBUG - decode <class 'int'> b'2'
2024-12-14 17:15:21,148 - DEBUG - decode <class 'int'> b'1002'
2024-12-14 17:15:21,148 - DEBUG - decode <class 'int'> b'10089'
2024-12-14 17:15:21,148 - DEBUG - decode <class 'str'> b"Requested market data requires additional subscription for API. See link in 'Market Data Connections' dialog for more details.Delayed market data is available.MSFT NASDAQ.NMS/TOP/ALL"
2024-12-14 17:15:21,148 - DEBUG - decode <class 'str'> b''
2024-12-14 17:15:21,148 - ERROR - Error. ReqId: 1002, Code: 10089, Msg: Requested market data requires additional subscription for API. See link in 'Market Data Connections' dialog for more details.Delayed market data is available.MSFT NASDAQ.NMS/TOP/ALL, Advanced Order Reject JSON:
2024-12-14 17:15:21,148 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:21,148 - DEBUG - conn:1 queue.sz:2
2024-12-14 17:15:21,148 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:21,148 - DEBUG - fields (b'4', b'2', b'1003', b'10089', b"Requested market data requires additional subscription for API. See link in 'Market Data Connections' dialog for more details.Delayed market data is available.GOOGL NASDAQ.NMS/TOP/ALL", b'')
2024-12-14 17:15:21,148 - DEBUG - decode <class 'int'> b'2'
2024-12-14 17:15:21,148 - DEBUG - decode <class 'int'> b'1003'
2024-12-14 17:15:21,148 - DEBUG - decode <class 'int'> b'10089'
2024-12-14 17:15:21,148 - DEBUG - decode <class 'str'> b"Requested market data requires additional subscription for API. See link in 'Market Data Connections' dialog for more details.Delayed market data is available.GOOGL NASDAQ.NMS/TOP/ALL"
2024-12-14 17:15:21,148 - DEBUG - decode <class 'str'> b''
2024-12-14 17:15:21,148 - ERROR - Error. ReqId: 1003, Code: 10089, Msg: Requested market data requires additional subscription for API. See link in 'Market Data Connections' dialog for more details.Delayed market data is available.GOOGL NASDAQ.NMS/TOP/ALL, Advanced Order Reject JSON:
2024-12-14 17:15:21,148 - DEBUG - len 203 raw:b"\x00\x00\x00\xc74\x002\x001005\x0010089\x00Requested market data requires additional subscription for API. See link in 'Market Data Connections' dialog for more details.Delayed market data is available.TSLA NASDAQ.NMS/TOP/ALL\x00\x00"|
2024-12-14 17:15:21,149 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:21,149 - DEBUG - reader loop, recvd size 203
2024-12-14 17:15:21,149 - DEBUG - conn:1 queue.sz:1
2024-12-14 17:15:21,149 - DEBUG - read_msg: size: 199
2024-12-14 17:15:21,149 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:21,149 - DEBUG - size:199 msg.size:199 msg:|b''| buf:||
2024-12-14 17:15:21,149 - DEBUG - fields (b'4', b'2', b'1004', b'10089', b"Requested market data requires additional subscription for API. See link in 'Market Data Connections' dialog for more details.Delayed market data is available.AMZN NASDAQ.NMS/TOP/ALL", b'')
2024-12-14 17:15:21,149 - DEBUG - decode <class 'int'> b'2'
2024-12-14 17:15:21,149 - DEBUG - decode <class 'int'> b'1004'
2024-12-14 17:15:21,149 - DEBUG - decode <class 'int'> b'10089'
2024-12-14 17:15:21,149 - DEBUG - decode <class 'str'> b"Requested market data requires additional subscription for API. See link in 'Market Data Connections' dialog for more details.Delayed market data is available.AMZN NASDAQ.NMS/TOP/ALL"
2024-12-14 17:15:21,149 - DEBUG - decode <class 'str'> b''
2024-12-14 17:15:21,149 - ERROR - Error. ReqId: 1004, Code: 10089, Msg: Requested market data requires additional subscription for API. See link in 'Market Data Connections' dialog for more details.Delayed market data is available.AMZN NASDAQ.NMS/TOP/ALL, Advanced Order Reject JSON:
2024-12-14 17:15:21,149 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:21,149 - DEBUG - conn:1 queue.sz:1
2024-12-14 17:15:21,149 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:21,149 - DEBUG - fields (b'4', b'2', b'1005', b'10089', b"Requested market data requires additional subscription for API. See link in 'Market Data Connections' dialog for more details.Delayed market data is available.TSLA NASDAQ.NMS/TOP/ALL", b'')
2024-12-14 17:15:21,149 - DEBUG - decode <class 'int'> b'2'
2024-12-14 17:15:21,149 - DEBUG - decode <class 'int'> b'1005'
2024-12-14 17:15:21,149 - DEBUG - decode <class 'int'> b'10089'
2024-12-14 17:15:21,149 - DEBUG - decode <class 'str'> b"Requested market data requires additional subscription for API. See link in 'Market Data Connections' dialog for more details.Delayed market data is available.TSLA NASDAQ.NMS/TOP/ALL"
2024-12-14 17:15:21,149 - DEBUG - decode <class 'str'> b''
2024-12-14 17:15:21,149 - ERROR - Error. ReqId: 1005, Code: 10089, Msg: Requested market data requires additional subscription for API. See link in 'Market Data Connections' dialog for more details.Delayed market data is available.TSLA NASDAQ.NMS/TOP/ALL, Advanced Order Reject JSON:
2024-12-14 17:15:21,149 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:21,149 - DEBUG - conn:1 queue.sz:0
2024-12-14 17:15:21,149 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:21,349 - DEBUG - queue.get: empty
2024-12-14 17:15:21,349 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:21,349 - DEBUG - conn:1 queue.sz:0
2024-12-14 17:15:21,349 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:21,550 - DEBUG - queue.get: empty
2024-12-14 17:15:21,550 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:21,550 - DEBUG - conn:1 queue.sz:0
2024-12-14 17:15:21,550 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:21,750 - DEBUG - queue.get: empty
2024-12-14 17:15:21,751 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:21,751 - DEBUG - conn:1 queue.sz:0
2024-12-14 17:15:21,751 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:21,951 - DEBUG - queue.get: empty
2024-12-14 17:15:21,951 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:21,951 - DEBUG - conn:1 queue.sz:0
2024-12-14 17:15:21,951 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:22,150 - DEBUG - socket timeout from recvMsg (<class 'TimeoutError'>, TimeoutError('timed out'), <traceback object at 0x7f26810ea280>)
2024-12-14 17:15:22,151 - DEBUG - reader loop, recvd size 0
2024-12-14 17:15:22,152 - DEBUG - queue.get: empty
2024-12-14 17:15:22,152 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:22,152 - DEBUG - conn:1 queue.sz:0
2024-12-14 17:15:22,152 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:22,352 - DEBUG - queue.get: empty
2024-12-14 17:15:22,353 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:22,353 - DEBUG - conn:1 queue.sz:0
2024-12-14 17:15:22,353 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:22,553 - DEBUG - queue.get: empty
2024-12-14 17:15:22,554 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:22,554 - DEBUG - conn:1 queue.sz:0
2024-12-14 17:15:22,554 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:22,754 - DEBUG - queue.get: empty
2024-12-14 17:15:22,754 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:22,754 - DEBUG - conn:1 queue.sz:0
2024-12-14 17:15:22,754 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:22,955 - DEBUG - queue.get: empty
2024-12-14 17:15:22,955 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:22,955 - DEBUG - conn:1 queue.sz:0
2024-12-14 17:15:22,955 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:23,151 - DEBUG - socket timeout from recvMsg (<class 'TimeoutError'>, TimeoutError('timed out'), <traceback object at 0x7f26810ea100>)
2024-12-14 17:15:23,152 - DEBUG - reader loop, recvd size 0
2024-12-14 17:15:23,156 - DEBUG - queue.get: empty
2024-12-14 17:15:23,156 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:23,156 - DEBUG - conn:1 queue.sz:0
2024-12-14 17:15:23,156 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:23,356 - DEBUG - queue.get: empty
2024-12-14 17:15:23,357 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:23,357 - DEBUG - conn:1 queue.sz:0
2024-12-14 17:15:23,357 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:23,557 - DEBUG - queue.get: empty
2024-12-14 17:15:23,557 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:23,557 - DEBUG - conn:1 queue.sz:0
2024-12-14 17:15:23,558 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:23,758 - DEBUG - queue.get: empty
2024-12-14 17:15:23,758 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:23,758 - DEBUG - conn:1 queue.sz:0
2024-12-14 17:15:23,758 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:23,959 - DEBUG - queue.get: empty
2024-12-14 17:15:23,959 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:23,959 - DEBUG - conn:1 queue.sz:0
2024-12-14 17:15:23,959 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:24,153 - DEBUG - socket timeout from recvMsg (<class 'TimeoutError'>, TimeoutError('timed out'), <traceback object at 0x7f26810e9f80>)
2024-12-14 17:15:24,154 - DEBUG - reader loop, recvd size 0
2024-12-14 17:15:24,160 - DEBUG - queue.get: empty
2024-12-14 17:15:24,160 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:24,160 - DEBUG - conn:1 queue.sz:0
2024-12-14 17:15:24,160 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:24,361 - DEBUG - queue.get: empty
2024-12-14 17:15:24,361 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:24,361 - DEBUG - conn:1 queue.sz:0
2024-12-14 17:15:24,361 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:24,562 - DEBUG - queue.get: empty
2024-12-14 17:15:24,562 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:24,562 - DEBUG - conn:1 queue.sz:0
2024-12-14 17:15:24,562 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:24,763 - DEBUG - queue.get: empty
2024-12-14 17:15:24,763 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:24,763 - DEBUG - conn:1 queue.sz:0
2024-12-14 17:15:24,763 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:24,963 - DEBUG - queue.get: empty
2024-12-14 17:15:24,964 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:24,964 - DEBUG - conn:1 queue.sz:0
2024-12-14 17:15:24,964 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:25,155 - DEBUG - socket timeout from recvMsg (<class 'TimeoutError'>, TimeoutError('timed out'), <traceback object at 0x7f26810ea280>)
2024-12-14 17:15:25,155 - DEBUG - reader loop, recvd size 0
2024-12-14 17:15:25,164 - DEBUG - queue.get: empty
2024-12-14 17:15:25,164 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:25,165 - DEBUG - conn:1 queue.sz:0
2024-12-14 17:15:25,165 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:25,365 - DEBUG - queue.get: empty
2024-12-14 17:15:25,365 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:25,366 - DEBUG - conn:1 queue.sz:0
2024-12-14 17:15:25,366 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:25,566 - DEBUG - queue.get: empty
2024-12-14 17:15:25,566 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:25,567 - DEBUG - conn:1 queue.sz:0
2024-12-14 17:15:25,567 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:25,767 - DEBUG - queue.get: empty
2024-12-14 17:15:25,767 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:25,768 - DEBUG - conn:1 queue.sz:0
2024-12-14 17:15:25,768 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:25,968 - DEBUG - queue.get: empty
2024-12-14 17:15:25,969 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:25,969 - DEBUG - conn:1 queue.sz:0
2024-12-14 17:15:25,969 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:26,157 - DEBUG - socket timeout from recvMsg (<class 'TimeoutError'>, TimeoutError('timed out'), <traceback object at 0x7f26810ea100>)
2024-12-14 17:15:26,157 - DEBUG - reader loop, recvd size 0
2024-12-14 17:15:26,169 - DEBUG - queue.get: empty
2024-12-14 17:15:26,170 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:26,170 - DEBUG - conn:1 queue.sz:0
2024-12-14 17:15:26,170 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:26,370 - DEBUG - queue.get: empty
2024-12-14 17:15:26,371 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:26,371 - DEBUG - conn:1 queue.sz:0
2024-12-14 17:15:26,371 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:26,571 - DEBUG - queue.get: empty
2024-12-14 17:15:26,572 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:26,572 - DEBUG - conn:1 queue.sz:0
2024-12-14 17:15:26,572 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:26,772 - DEBUG - queue.get: empty
2024-12-14 17:15:26,773 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:26,773 - DEBUG - conn:1 queue.sz:0
2024-12-14 17:15:26,773 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:26,973 - DEBUG - queue.get: empty
2024-12-14 17:15:26,973 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:26,974 - DEBUG - conn:1 queue.sz:0
2024-12-14 17:15:26,974 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:27,159 - DEBUG - socket timeout from recvMsg (<class 'TimeoutError'>, TimeoutError('timed out'), <traceback object at 0x7f26810e9f80>)
2024-12-14 17:15:27,159 - DEBUG - reader loop, recvd size 0
2024-12-14 17:15:27,174 - DEBUG - queue.get: empty
2024-12-14 17:15:27,174 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:27,174 - DEBUG - conn:1 queue.sz:0
2024-12-14 17:15:27,175 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:27,375 - DEBUG - queue.get: empty
2024-12-14 17:15:27,375 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:27,375 - DEBUG - conn:1 queue.sz:0
2024-12-14 17:15:27,375 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:27,575 - DEBUG - queue.get: empty
2024-12-14 17:15:27,576 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:27,576 - DEBUG - conn:1 queue.sz:0
2024-12-14 17:15:27,576 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:27,776 - DEBUG - queue.get: empty
2024-12-14 17:15:27,776 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:27,777 - DEBUG - conn:1 queue.sz:0
2024-12-14 17:15:27,777 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:27,977 - DEBUG - queue.get: empty
2024-12-14 17:15:27,977 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:27,977 - DEBUG - conn:1 queue.sz:0
2024-12-14 17:15:27,978 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:28,161 - DEBUG - socket timeout from recvMsg (<class 'TimeoutError'>, TimeoutError('timed out'), <traceback object at 0x7f26810ea280>)
2024-12-14 17:15:28,161 - DEBUG - reader loop, recvd size 0
2024-12-14 17:15:28,178 - DEBUG - queue.get: empty
2024-12-14 17:15:28,178 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:28,178 - DEBUG - conn:1 queue.sz:0
2024-12-14 17:15:28,179 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:28,379 - DEBUG - queue.get: empty
2024-12-14 17:15:28,379 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:28,379 - DEBUG - conn:1 queue.sz:0
2024-12-14 17:15:28,379 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:28,580 - DEBUG - queue.get: empty
2024-12-14 17:15:28,580 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:28,580 - DEBUG - conn:1 queue.sz:0
2024-12-14 17:15:28,581 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:28,781 - DEBUG - queue.get: empty
2024-12-14 17:15:28,782 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:28,782 - DEBUG - conn:1 queue.sz:0
2024-12-14 17:15:28,782 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:28,982 - DEBUG - queue.get: empty
2024-12-14 17:15:28,983 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:28,983 - DEBUG - conn:1 queue.sz:0
2024-12-14 17:15:28,983 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:29,163 - DEBUG - socket timeout from recvMsg (<class 'TimeoutError'>, TimeoutError('timed out'), <traceback object at 0x7f26810ea100>)
2024-12-14 17:15:29,163 - DEBUG - reader loop, recvd size 0
2024-12-14 17:15:29,183 - DEBUG - queue.get: empty
2024-12-14 17:15:29,184 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:29,184 - DEBUG - conn:1 queue.sz:0
2024-12-14 17:15:29,184 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:29,385 - DEBUG - queue.get: empty
2024-12-14 17:15:29,385 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:29,385 - DEBUG - conn:1 queue.sz:0
2024-12-14 17:15:29,385 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:29,585 - DEBUG - queue.get: empty
2024-12-14 17:15:29,585 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:29,585 - DEBUG - conn:1 queue.sz:0
2024-12-14 17:15:29,585 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:29,786 - DEBUG - queue.get: empty
2024-12-14 17:15:29,786 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:29,786 - DEBUG - conn:1 queue.sz:0
2024-12-14 17:15:29,786 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:29,987 - DEBUG - queue.get: empty
2024-12-14 17:15:29,987 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:29,987 - DEBUG - conn:1 queue.sz:0
2024-12-14 17:15:29,987 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:30,165 - DEBUG - socket timeout from recvMsg (<class 'TimeoutError'>, TimeoutError('timed out'), <traceback object at 0x7f26810e9f80>)
2024-12-14 17:15:30,165 - DEBUG - reader loop, recvd size 0
2024-12-14 17:15:30,188 - DEBUG - queue.get: empty
2024-12-14 17:15:30,188 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:30,188 - DEBUG - conn:1 queue.sz:0
2024-12-14 17:15:30,188 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:30,389 - DEBUG - queue.get: empty
2024-12-14 17:15:30,389 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:30,389 - DEBUG - conn:1 queue.sz:0
2024-12-14 17:15:30,389 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:30,590 - DEBUG - queue.get: empty
2024-12-14 17:15:30,590 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:30,590 - DEBUG - conn:1 queue.sz:0
2024-12-14 17:15:30,590 - DEBUG - 139803350594384 isConn: 2, connConnected: True
2024-12-14 17:15:30,612 - WARNING - Timeout while waiting for market data.
2024-12-14 17:15:30,613 - DEBUG - 139803350594384 connState: 2 -> 0
2024-12-14 17:15:30,613 - INFO - disconnecting
2024-12-14 17:15:30,613 - DEBUG - disconnecting
2024-12-14 17:15:30,613 - DEBUG - disconnected
2024-12-14 17:15:30,613 - INFO - Connection to IB Gateway closed.
2024-12-14 17:15:30,613 - DEBUG - 139803350594384 connState: None -> 0
2024-12-14 17:15:30,790 - DEBUG - queue.get: empty
2024-12-14 17:15:30,791 - DEBUG - 139803350594384 isConn: 0, connConnected: None
2024-12-14 17:15:30,791 - DEBUG - conn:0 queue.sz:0
2024-12-14 17:15:30,791 - DEBUG - 139803350594384 isConn: 0, connConnected: None
2024-12-14 17:15:30,791 - DEBUG - 139803350594384 connState: 0 -> 0
2024-12-14 17:15:31,166 - DEBUG - socket broken, disconnecting
2024-12-14 17:15:31,167 - DEBUG - reader loop, recvd size 0
2024-12-14 17:15:31,167 - DEBUG - EReader thread finished
2024-12-14 17:15:32,614 - INFO - TestStockRetriever completed.