wellsjo / cryptowatch-api Goto Github PK
View Code? Open in Web Editor NEWCryptowatch api wrapper
License: MIT License
Cryptowatch api wrapper
License: MIT License
Hi, thanks for making this, i really like to use this program.
I am trying to fetch url from cryptowatch by using pure javascript.
i have some question using it.
Could you kindly share information?
・does this work on pure javascript?
i implemented, but it says that "require" is not defined, which means its for python?
・please tell me how i could get information for underlined url.
https://api.cryptowat.ch/markets/bitflyer/btcfxjpy/ohlc?periods=300&before=1555114976479
Actually i have been using cryptowatch by setting CORS ("https://cors-anywhere.herokuapp.com") for fetching json from cryptowatch, but somehow from yesterday, it wont fetch... it says 403 forbidden for following fetch. That is why i would like to use your program.
var url="https://cors-anywhere.herokuapp.com/https://api.cryptowat.ch/markets/bitflyer/btcfxjpy/ohlc?periods=300&before=1555114976479"
fetch(url,{
method: 'GET',
headers: { 'Access-Control-Request-Origin': 'https://api.cryptowat.ch' }})
.then(function(response) {
return response.json();
})
Thank you
It is not possible to support params with your approach, maybe you should add an extra func param to allow an options object?
None of the listed methods can be used.
Some of what I've tried:
const cryptowatch = require('cryptowatch-api');
app.route('/exchanges')
.get((req, res) => {
res.json(cryptowatch.exchanges());
});
The error I get is;
TypeError: cryptowatch.prices is not a function
Express is properly configured.
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.