인프런 커뮤니티 질문&답변

정종환님의 프로필 이미지
정종환

작성한 질문수

비트코인 선물거래 자동매매 시스템(저자직강)

바이낸스 오픈 API

binance open api 관련 질문

작성

·

316

0

##### 초기설정

from binance_f import RequestClient

from binance_f.model.constant import *

import comm.config as conf

g_api_key = conf.G_API_KEY # binance API key

g_secret_key = conf.G_SECRET_KEY # binance secret key

coin_name = 'BTCUSDT'

request_client = RequestClient(api_key=g_api_key, secret_key=g_secret_key)

============================

위 코드에서 다음과 같은 에러가 생깁니다.

ModuleNotFoundError                       Traceback (most recent call last)
~\AppData\Local\Temp\ipykernel_11680\3056222166.py in <module>
      1 ##### 초기설정
      2 
----> 3 from binance_f import requestclient
      4 from binance_f.model.constant import *
      5 import comm.config as conf

C:\evan_future_bit\evan\binance_f\__init__.py in <module>
      1 from binance_f.requestclient import RequestClient
----> 2 from binance_f.subscriptionclient import SubscriptionClient

C:\evan_future_bit\evan\binance_f\subscriptionclient.py in <module>
      4 from binance_f.impl.websocketrequestimpl import WebsocketRequestImpl
      5 from binance_f.impl.websocketconnection import WebsocketConnection
----> 6 from binance_f.impl.websocketwatchdog import WebSocketWatchDog
      7 from binance_f.impl.restapirequestimpl import RestApiRequestImpl
      8 from binance_f.model import *

C:\evan_future_bit\evan\binance_f\impl\websocketwatchdog.py in <module>
      1 import threading
      2 import logging
----> 3 from apscheduler.schedulers.blocking import BlockingScheduler
      4 from binance_f.impl.websocketconnection import ConnectionState
      5 from binance_f.impl.utils.timeservice import get_current_timestamp

c:\python377\lib\site-packages\apscheduler-4.0.0a2-py3.7.egg\apscheduler\__init__.py in <module>
     51 from ._context import current_job, current_scheduler, current_worker
     52 from ._enums import CoalescePolicy, ConflictPolicy, JobOutcome, RunState
---> 53 from ._events import (
     54     DataStoreEvent,
     55     Event,

c:\python377\lib\site-packages\apscheduler-4.0.0a2-py3.7.egg\apscheduler\_events.py in <module>
     13 from ._converters import as_aware_datetime, as_enum, as_uuid
     14 from ._enums import JobOutcome
---> 15 from ._structures import JobResult
     16 from ._utils import qualified_name
     17 

c:\python377\lib\site-packages\apscheduler-4.0.0a2-py3.7.egg\apscheduler\_structures.py in <module>
      8 
      9 import attrs
---> 10 import tenacity.stop
     11 import tenacity.wait
     12 from attrs.validators import instance_of

ModuleNotFoundError: No module named 'tenacity'

 

답변 1

0

멀티코어님의 프로필 이미지
멀티코어
지식공유자

안녕하세요 정종환님

윈도우 command 창에서 다음 명령어를 실행 한 후 보내주세요.

pip list

감사합니다.

image

정종환님의 프로필 이미지
정종환

작성한 질문수

질문하기