bitphage / golos-witness-tools Goto Github PK
View Code? Open in Web Editor NEWScripts for golos blockchain witness operators
License: MIT License
Scripts for golos blockchain witness operators
License: MIT License
Добавить настраиваемый поправочный коэффициент к итоговой цене. Например, мы таким образом можем как бы делать золото чуть дешевле, чем автоматически вычисленное значение.
{"log":"2021-06-08 22:02:35,532 INFO: Gold price from cbr.ru: 0.06148 USD/1mgGOLD\n","stream":"stderr","time":"2021-06-08T22:02:35.532992905Z"}
{"log":"2021-06-08 22:02:35,569 INFO: Gold price in GPH: 2.53496202 GPH/1mgGOLD\n","stream":"stderr","time":"2021-06-08T22:02:35.569816625Z"}
{"log":"2021-06-08 22:02:35,769 INFO: GOLOS price is: 0.08690735 GPH/GOLOS\n","stream":"stderr","time":"2021-06-08T22:02:35.770162491Z"}
{"log":"2021-06-08 22:02:35,770 INFO: Calculated price 0.034 GBG/GOLOS\n","stream":"stderr","time":"2021-06-08T22:02:35.770253637Z"}
{"log":"2021-06-08 22:02:35,780 INFO: Current conversion price: 0.042\n","stream":"stderr","time":"2021-06-08T22:02:35.780376748Z"}
{"log":"2021-06-08 22:02:35,780 INFO: Sleeping for 3600 seconds\n","stream":"stderr","time":"2021-06-08T22:02:35.780709471Z"}
{"log":"2021-06-08 23:02:36,104 INFO: Gold price from cbr.ru: 0.06148 USD/1mgGOLD\n","stream":"stderr","time":"2021-06-08T23:02:36.105140066Z"}
{"log":"2021-06-08 23:02:36,140 INFO: Gold price in GPH: 2.74581567 GPH/1mgGOLD\n","stream":"stderr","time":"2021-06-08T23:02:36.140915099Z"}
{"log":"2021-06-08 23:02:36,352 INFO: GOLOS price is: 0.09090368 GPH/GOLOS\n","stream":"stderr","time":"2021-06-08T23:02:36.353365277Z"}
{"log":"2021-06-08 23:02:36,353 INFO: Calculated price 0.033 GBG/GOLOS\n","stream":"stderr","time":"2021-06-08T23:02:36.353395741Z"}
{"log":"2021-06-08 23:02:36,366 INFO: Current conversion price: 0.042\n","stream":"stderr","time":"2021-06-08T23:02:36.367000778Z"}
{"log":"2021-06-08 23:02:36,367 INFO: Sleeping for 3600 seconds\n","stream":"stderr","time":"2021-06-08T23:02:36.367335331Z"}
{"log":"Task stopped with exception\n","stream":"stderr","time":"2021-06-08T23:10:33.585223274Z"}
{"log":"Traceback (most recent call last):\n","stream":"stderr","time":"2021-06-08T23:10:33.585263301Z"}
{"log":" File \"/usr/local/lib/python3.8/site-packages/grapheneapi/aio/websocket.py\", line 39, in _parsing_wrapper\n","stream":"stderr","time":"2021-06-08T23:10:33.585271526Z"}
{"log":" await self.parse_messages()\n","stream":"stderr","time":"2021-06-08T23:10:33.585279734Z"}
{"log":" File \"/usr/local/lib/python3.8/site-packages/grapheneapi/aio/websocket.py\", line 63, in parse_messages\n","stream":"stderr","time":"2021-06-08T23:10:33.585287258Z"}
{"log":" async for message in self.ws:\n","stream":"stderr","time":"2021-06-08T23:10:33.585295222Z"}
{"log":" File \"/usr/local/lib/python3.8/site-packages/websockets/protocol.py\", line 439, in __aiter__\n","stream":"stderr","time":"2021-06-08T23:10:33.585302702Z"}
{"log":" yield await self.recv()\n","stream":"stderr","time":"2021-06-08T23:10:33.585310646Z"}
{"log":" File \"/usr/local/lib/python3.8/site-packages/websockets/protocol.py\", line 509, in recv\n","stream":"stderr","time":"2021-06-08T23:10:33.585318009Z"}
{"log":" await self.ensure_open()\n","stream":"stderr","time":"2021-06-08T23:10:33.585325855Z"}
{"log":" File \"/usr/local/lib/python3.8/site-packages/websockets/protocol.py\", line 812, in ensure_open\n","stream":"stderr","time":"2021-06-08T23:10:33.585333232Z"}
{"log":" raise self.connection_closed_exc()\n","stream":"stderr","time":"2021-06-08T23:10:33.585341688Z"}
{"log":"websockets.exceptions.ConnectionClosedError: code = 1005 (no status code [internal]), no reason\n","stream":"stderr","time":"2021-06-08T23:10:33.585349238Z"}
{"log":"2021-06-09 00:02:36,765 INFO: Gold price from cbr.ru: 0.06168 USD/1mgGOLD\n","stream":"stderr","time":"2021-06-09T00:02:36.766358939Z"}
{"log":"code = 1005 (no status code [internal]), no reason\n","stream":"stderr","time":"2021-06-09T00:02:36.767586429Z"}
{"log":"Reconnecting ...\n","stream":"stderr","time":"2021-06-09T00:02:36.76772812Z"}
{"log":"/usr/local/lib/python3.8/site-packages/grapheneapi/aio/api.py:129: RuntimeWarning: coroutine 'Api.next' was never awaited\n","stream":"stderr","time":"2021-06-09T00:02:36.783731657Z"}
{"log":" self.next()\n","stream":"stderr","time":"2021-06-09T00:02:36.783744058Z"}
{"log":"RuntimeWarning: Enable tracemalloc to get the object allocation traceback\n","stream":"stderr","time":"2021-06-09T00:02:36.783747488Z"}
{"log":"code = 1005 (no status code [internal]), no reason\n","stream":"stderr","time":"2021-06-09T00:02:36.783750928Z"}
{"log":"Reconnecting ...\n","stream":"stderr","time":"2021-06-09T00:02:36.784126473Z"}
{"log":"code = 1005 (no status code [internal]), no reason\n","stream":"stderr","time":"2021-06-09T00:02:36.784874177Z"}
{"log":"Reconnecting ...\n","stream":"stderr","time":"2021-06-09T00:02:36.785277828Z"}
{"log":"code = 1005 (no status code [internal]), no reason\n","stream":"stderr","time":"2021-06-09T00:02:36.785935036Z"}
{"log":"Reconnecting ...\n","stream":"stderr","time":"2021-06-09T00:02:36.786055933Z"}
{"log":"code = 1005 (no status code [internal]), no reason\n","stream":"stderr","time":"2021-06-09T00:02:36.78673691Z"}
{"log":"Reconnecting ...\n","stream":"stderr","time":"2021-06-09T00:02:36.786864716Z"}
{"log":"code = 1005 (no status code [internal]), no reason\n","stream":"stderr","time":"2021-06-09T00:02:36.787117619Z"}
{"log":"Reconnecting ...\n","stream":"stderr","time":"2021-06-09T00:02:36.787625283Z"}
...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.