GithubHelp home page GithubHelp logo

btmura / ponzi2 Goto Github PK

View Code? Open in Web Editor NEW
77.0 77.0 12.0 12.44 MB

ponzi2 is a stock chart viewer written in Go using OpenGL and GLFW.

Home Page: https://ponzi2.io

License: GNU General Public License v3.0

Go 99.61% GLSL 0.39%

ponzi2's People

Contributors

ajd3v avatar btmura avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ponzi2's Issues

Failure to run

I followed your Youtube tutorial on getting glfw setup and I even tried running from the commit back in Feb 2017 when you published your video, but both resulted in errors. Can you help?

.\ponzi2.exe
F0810 11:27:11.467836 996 app.go:15] glGetnCompressedTexImage
goroutine 1 [running, locked to thread]:
github.com/golang/glog.stacks(0xc042087400, 0xc042192000, 0x42, 0x98)

Testing latest release on Linux FC27

I really like this project. These are some issues I had which may be due to Linux:

  • the vertical price axis seems wrong for stocks with lower prices. I checked with SQ trading around 140, and the labels seemed around 10 off
  • the light grid horizontal spacing seems to have one column every three of slightly bigger size
  • the daily buy column shows in blue instead of standard green
  • using permanent caching seems almost a necessity as the IEX free tier consumes a lot of messages for historical quotes

Another option I would provide is to document how to fetch the stored prices in mongo, so that users could build all kinds of third party tools to analyze the time series, using ML or simple rules. Eventually these offline analyses could be also shown in the charts, so you would be building a full platform for investors or traders.

Thanks again

.exe is not running on Windows 10

I have downloaded exe ( v2.0.1) and trying to run on Windows 10 but same is not Running . Any setting changes that we have to do to make it run ?

UI suggestions for stock groups or stacks

The UI that would be most useful is maybe for the user to provide initially a file with the groups
e.g.

bigcos -> msft, aapl, goog, fb
semis -> a, b, c
saas -> d, e, f
silver -> h, i, j

Then the group names should be in the side pane (bigcos, semis, saas, ..) and by clicking one of those, the main pane could show either
option 1) the first stock, and the other ones shown via the mouse wheel
option 2) fill the first four or six in a grid, and then use the mouse wheel to scroll to the next 4 or 6

This would require remapping the mouse wheel function, which is a good idea anyway, because in the future you may want to have daily, weekly, full range and intraday accessible through the top bar

To come up with ideas is actually trivial compared to actually implement them, so thank you again.

Running ponzi2 on Linux FC27

Tried to run your release from last year and also build from code. Any hints appreciated!

Thank you for open sourcing your project.

Linux: 4.18.19-100.fc27.x86_64


./ponzi2

No protocol specified
2020/08/10 19:06:16 PlatformError: X11: Failed to open display :0
panic: NotInitialized: The GLFW library is not initialized


go get -u github.com/btmura/ponzi2/...

pkg-config --cflags gl gl
Package gl was not found in the pkg-config search path.
Perhaps you should add the directory containing `gl.pc'
to the PKG_CONFIG_PATH environment variable
Package 'gl', required by 'virtual:world', not found
Package 'gl', required by 'virtual:world', not found
pkg-config: exit status 1

google.golang.org/grpc/internal/credentials
/home/go/external/src/google.golang.org/grpc/internal/credentials/spiffe.go:36:70: state.PeerCertificates[0].URIs undefined (type *x509.Certificate has no field or method URIs)
/home/go/external/src/google.golang.org/grpc/internal/credentials/spiffe.go:40:47: state.PeerCertificates[0].URIs undefined (type *x509.Certificate has no field or method URIs)
/home/go/external/src/google.golang.org/grpc/internal/credentials/spiffe.go:58:35: state.PeerCertificates[0].URIs undefined (type *x509.Certificate has no field or method URIs)

github.com/go-gl/glfw/v3.2/glfw
In file included from /home/go/external/src/github.com/go-gl/glfw/v3.2/glfw/native_linbsd.go:9:0:
./glfw/include/GLFW/glfw3native.h:112:11: fatal error: GL/glx.h: No such file or directory
#include <GL/glx.h>
^~~~~~~~~~
compilation terminated.

ponzi2 on macOS

I ran go get -u github.com/btmura/ponzi2/... with a successful installation on macOS Big Sur (x64). After running ponzi2 I get the following:

0228 16:13:49.727603   31803 app.go:15] VersionUnavailable: Requested OpenGL version 4.5, got version 4.1
goroutine 1 [running, locked to thread]:
github.com/golang/glog.stacks(0xc000095b00, 0xc0001b8820, 0x6b, 0xc1)
	/Users/abhobe/go/pkg/mod/github.com/golang/[email protected]/glog.go:769 +0xb9
github.com/golang/glog.(*loggingT).output(0x482b4c0, 0xc000000003, 0xc0000b20e0, 0x46143dc, 0x6, 0xf, 0x0)
	/Users/abhobe/go/pkg/mod/github.com/golang/[email protected]/glog.go:720 +0x3b3
github.com/golang/glog.(*loggingT).printDepth(0x482b4c0, 0x3, 0x1, 0xc0000a7f28, 0x1, 0x1)
	/Users/abhobe/go/pkg/mod/github.com/golang/[email protected]/glog.go:646 +0x12d
github.com/golang/glog.(*loggingT).print(...)
	/Users/abhobe/go/pkg/mod/github.com/golang/[email protected]/glog.go:637
github.com/golang/glog.Fatal(...)
	/Users/abhobe/go/pkg/mod/github.com/golang/[email protected]/glog.go:1128
github.com/btmura/ponzi2/internal/app.Run(0xc000032100)
	/Users/abhobe/go/pkg/mod/github.com/btmura/[email protected]/internal/app/app.go:15 +0xbf
main.main()
	/Users/abhobe/go/pkg/mod/github.com/btmura/[email protected]/ponzi2.go:13 +0x86

I have never used go before, so I'm not sure where I need to change the program files to match the existing openGL version.

Missing API token

Starting of the application ([v2.0.1]) brings up the error "Missing API token. Visit ponzi2.io/install", a reference to a site which is not available.

image

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.