code: def __init__(
      self, API_KEY=None, API_SECRET=None, API_BASE_URL=None, api=None
  ):
      if api is None:
          try:
              self.api = tradeapi.REST(
                  API_KEY, API_SECRET, API_BASE_URL, "v2"
              )
          except BaseException:
              raise ValueError("Wrong Account Info!")
      else:
          self.api = api
  
imports: from __future__ import annotations
  from concurrent.futures import ProcessPoolExecutor
  from concurrent.futures import ThreadPoolExecutor
  import alpaca_trade_api
  import exchange_calendars
  import numpy
  import pandas
  import pytz
  from stockstats import StockDataFrame
label_desc: Use image node_id 1 to create a new AlpacaProcessor object  with example: obj = AlpacaProcessor(API_KEY, API_SECRET, API_BASE_URL, api)