Code Monkey home page Code Monkey logo

Comments (10)

arabacibahadir avatar arabacibahadir commented on June 9, 2024

Hello,
Did you install all pip libraries and also did you change your binance api?
https://github.com/arabacibahadir/sup-res#installation

from sup-res.

mossene avatar mossene commented on June 9, 2024

Thanks for the fast reply.
Yes, I did.
Do API keys with read-Only work? or I need to enable Spot trading permission?

from sup-res.

arabacibahadir avatar arabacibahadir commented on June 9, 2024

Yes, you can use read-only api. You don't need to give any other permissions.
If your problem persists, run a small ticker test and we can clarify the issue. Maybe you are having a problem with the api.
https://python-binance.readthedocs.io/en/latest/overview.html

from sup-res.

mossene avatar mossene commented on June 9, 2024

ticker test working good.

Uninstalled all the requirements and installed them again, but the same problem came up.

from sup-res.

arabacibahadir avatar arabacibahadir commented on June 9, 2024

Can you try this for import?
from binance.client import Client

from sup-res.

mossene avatar mossene commented on June 9, 2024

got this:

from binance.client import Client
ModuleNotFoundError: No module named 'binance.client'

-- I tried to install binance.client, but the Requirement already satisfied.

from sup-res.

arabacibahadir avatar arabacibahadir commented on June 9, 2024

Hey again, while pushing the code i forgot to update historical_data.py file with api_binance instead of binance_api, which is my local api file.
client = Client(binance_api.api, binance_api.secret) #this is old one
client = Client(api_binance.api, api_binance.secret) #this is the new one
I changed this line should be working, i tried in my local.
Updated code should fine right now. Please download again files and change your api.
Do not hesitate to write if you have any problems. Thank you for your patience.
Note for myself: I should create a new branch for this, this was my fault.

from sup-res.

mossene avatar mossene commented on June 9, 2024

The problem still here:

C:\Users#####\Desktop######\sup-res-master> python main.py
Traceback (most recent call last):
File "C:\Users#####\Desktop####\sup-res-master\main.py", line 7, in
import historical_data
File "C:\Users\mohce\Desktop########\sup-res-master\historical_data.py", line 6, in
import frameselect
File "C:\Users#######\Desktop########\sup-res-master\frameselect.py", line 1, in
from binance import Client
ImportError: cannot import name 'Client' from 'binance' (C:\Python39\lib\site-packages\binance_init_.py)
PS C:\Users#######\Desktop########\sup-res-master>

from sup-res.

arabacibahadir avatar arabacibahadir commented on June 9, 2024

sammchardy/python-binance#316 (comment)
Check this. You are probably getting a version error. Can you try a ide vscode, pycharm etc.?
People are complaining about python 3.9 site-package errors.

from sup-res.

mossene avatar mossene commented on June 9, 2024

Well, nothing is working the same error everywhere, I will try to figure out to resolve this issue.

Thank you for your assistance and for your time. I will comeback to you if I have any updates.

from sup-res.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.