Giter Site home page Giter Site logo

bitphage / bitshares-tradehistory-analyzer Goto Github PK

View Code? Open in Web Editor NEW
6.0 3.0 8.0 137 KB

Scripts for exporting bitshares trading history and analyze it

License: MIT License

Python 100.00%
bitshares elasticsearch history export analyze fifo lifo lpfo trading

bitshares-tradehistory-analyzer's People

Contributors

bitphage avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

bitshares-tradehistory-analyzer's Issues

502 gateway error on init

I've used the nodes that come by default

nodes:
  - wss://api-ru.bts.blckchnd.com
  - wss://api.bts.blckchnd.com
  - wss://bitshares.openledger.info/ws

wrappers:
  - https://wrapper.elasticsearch.bitshares.ws/
  - http://bts-es.clockwork.gr:5000/
  - https://explorer.bitshares-kibana.info/

And executed

./download_history.py -d account_to_check

And got the following answer

[Errno 110] Connection timed out
Handshake status 502 Bad Gateway

[analyzer] panda error

Ubuntu 18.04.2 LTS (GNU/Linux 4.15.0-1036-gcp x86_64)

INFO    : Depositing 1000.00000000 BTS at Bitshares (2019-07-16 10:24:42+00:00, fee: 0.00000000 )
WARNING : Depositing more money (1000.0 BTS) than was withdrawn before (0.0 BTS). Assuming the additional amount (1000.0 BTS) was bought with 0 BRIDGE.YCE.
Traceback (most recent call last):
  File "./analyzer.py", line 140, in <module>
    main()
  File "./analyzer.py", line 93, in main
    log_bags(bf)
  File "./analyzer.py", line 38, in log_bags
    logger.info("State of bags: \n%s\n", '    ' + '\n    '.join(str(bags).split('\n')))
  File "/home/pedro/.local/share/virtualenvs/analyzerBitfag-U9Q01rFi/lib/python3.6/site-packages/ccgains/bags.py", line 388, in __str__
    return self.to_data_frame().to_string(
  File "/home/pedro/.local/share/virtualenvs/analyzerBitfag-U9Q01rFi/lib/python3.6/site-packages/ccgains/bags.py", line 385, in to_data_frame
    axis='columns')
  File "/home/pedro/.local/share/virtualenvs/analyzerBitfag-U9Q01rFi/lib/python3.6/site-packages/pandas/util/_decorators.py", line 221, in wrapper
    return func(*args, **kwargs)
  File "/home/pedro/.local/share/virtualenvs/analyzerBitfag-U9Q01rFi/lib/python3.6/site-packages/pandas/core/generic.py", line 1329, in rename_axis
    raise ValueError("Use `.rename` to alter labels " "with a mapper.")
ValueError: Use `.rename` to alter labels with a mapper.

No error on output ccgains_20190719-233032.log

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.