vnegi10 / coinbaseproexchange.jl Goto Github PK
View Code? Open in Web Editor NEWJulia wrapper for the Coinbase Pro API
License: MIT License
Julia wrapper for the Coinbase Pro API
License: MIT License
Although the old Coinbase Pro API endpoints still seem to work, they might get deprecated soon. We should switch to the new endpoints and URL as described here.
The newly added plot functions do not appear in the stable documentation.
It will be more informative to create plots of historical price vs time. UnicodePlots.jl can be used to achieve this right within the REPL.
Similar to vnegi10/CryptoDashApp.jl#51
This issue is used to trigger TagBot; feel free to unsubscribe.
If you haven't already, you should update your TagBot.yml
to include issue comment triggers.
Please see this post on Discourse for instructions and more details.
If you'd like for me to do this for you, comment TagBot fix
on this issue.
I'll open a PR within a few hours, please be patient!
Instead of using @info
in show_historical_data
, we should throw an explicit error when unable to fetch historical data. Current implementation causes the function to return an empty DataFrame, which gives a missing column error later in the sequence.
julia> plot_historical_price("STORJ-EUR", 86400)
[ Info: 404 Not Found - Check if the pair ID is valid
ERROR: ArgumentError: column name "time" not found in the data frame since it has no columns
Stacktrace:
[1] lookupname
@ ~/.julia/packages/DataFrames/58MUJ/src/other/index.jl:410 [inlined]
[2] getindex
@ ~/.julia/packages/DataFrames/58MUJ/src/other/index.jl:422 [inlined]
[3] getindex(df::DataFrames.DataFrame, ::typeof(!), col_ind::Symbol)
@ DataFrames ~/.julia/packages/DataFrames/58MUJ/src/dataframe/dataframe.jl:557
[4] plot_historical_price(pair::String, interval::Int64)
@ CoinbaseProExchange ~/.julia/packages/CoinbaseProExchange/ZSSb7/src/plotpublic.jl:42
[5] top-level scope
@ REPL[35]:1
Instead of seconds, it will be easier to use hours and days as input to plot_historical_price("SOL-EUR", 86400)
.
Current logic in get_url
function can be simplified by using a dictionary.
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.