Git Product home page Git Product logo

Comments (6)

lcvass avatar lcvass commented on September 28, 2024

Same issue here. All dependencies are installed.

Edit: placing 'contracts' folder from this respository alongside the etherdelta folder seems to fix this. Though I'm still having issues, tickers return blank.

from py-etherdelta.

vikramarun avatar vikramarun commented on September 28, 2024

lucascvassalli, that worked thanks. I'm not having an error with tickers, but it always give me a "Deferred" error such as: <Deferred at 0x70b8eb0>.

Think the Etherdelta API might be down.

from py-etherdelta.

miguelmota avatar miguelmota commented on September 28, 2024

@vikramarun @lucascvassalli JSON ABI dependency is fixed

Try reinstalling

pip uninstall etherdelta
pip install etherdelta

or

pip3 install git+git://github.com/miguelmota/py-etherdelta.git

EtherDelta recently changed their websocket endpoint which may of been breaking things.

After reinstalling, try something simple like

import etherdelta

client = etherdelta.Client()
token_addr = '0x0d8775f648430679a709e98d2b0cb6250d2887ef'
orders = client.get_buy_orderbook(token_addr)

and let me know if you still have problems

Thanks for reporting!

from py-etherdelta.

vikramarun avatar vikramarun commented on September 28, 2024

Awesome, that partly works now. Thanks for the stuff you've been doing on the project.

I get an output but its a deferred object from twisted... for example the code you sent gives me the following:

<Deferred at 0x863c070 current result: ........
of the type twisted.internet.defer.Deferred.

Any ideas? Figure it might just be a problem with the socket still

from py-etherdelta.

miguelmota avatar miguelmota commented on September 28, 2024

@vikramarun I switched deferreds for generators so you shouldn't see that now

Try updating and see if it works

pip3 install git+git://github.com/miguelmota/py-etherdelta.git

Sorry for my lack of python knowledge 😅

from py-etherdelta.

miguelmota avatar miguelmota commented on September 28, 2024

@vikramarun please open issue if you continue to have problems

from py-etherdelta.

Related Issues (14)

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.