@d3fc/d3fc-financial-feed
Advanced tools
Comparing version 7.0.1 to 7.1.0
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('d3-fetch')) : | ||
typeof define === 'function' && define.amd ? define(['exports', 'd3-fetch'], factory) : | ||
(global = global || self, factory(global.fc = global.fc || {}, global.d3)); | ||
}(this, function (exports, d3Fetch) { 'use strict'; | ||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.fc = global.fc || {}, global.d3)); | ||
}(this, (function (exports, d3Fetch) { 'use strict'; | ||
@@ -86,2 +86,2 @@ function gdax () { | ||
})); | ||
}))); |
@@ -1,1 +0,1 @@ | ||
(function(a,b){"object"==typeof exports&&"undefined"!=typeof module?b(exports,require("d3-fetch")):"function"==typeof define&&define.amd?define(["exports","d3-fetch"],b):(a=a||self,b(a.fc=a.fc||{},a.d3))})(this,function(a,b){'use strict';function c(){var a="BTC-USD",c=null,d=null,e=null,f=function(){var f=[];null!=c&&f.push("start="+c.toISOString()),null!=d&&f.push("end="+d.toISOString()),null!=e&&f.push("granularity="+e);var g="https://api.gdax.com/products/"+a+"/candles?"+f.join("&");return b.json(g).then(function(a){return a.map(function(a){return{date:new Date(1e3*a[0]),open:a[3],high:a[2],low:a[1],close:a[4],volume:a[5]}})})};return f.product=function(b){return arguments.length?(a=b,f):a},f.start=function(a){return arguments.length?(c=a,f):c},f.end=function(a){return arguments.length?(d=a,f):d},f.granularity=function(a){return arguments.length?(e=a,f):e},f}a.feedGdax=c,Object.defineProperty(a,"__esModule",{value:!0})}); | ||
(function(a,b){"object"==typeof exports&&"undefined"!=typeof module?b(exports,require("d3-fetch")):"function"==typeof define&&define.amd?define(["exports","d3-fetch"],b):(a="undefined"==typeof globalThis?a||self:globalThis,b(a.fc=a.fc||{},a.d3))})(this,function(a,b){'use strict';function c(){var a="BTC-USD",c=null,d=null,e=null,f=function(){var f=[];null!=c&&f.push("start="+c.toISOString()),null!=d&&f.push("end="+d.toISOString()),null!=e&&f.push("granularity="+e);var g="https://api.gdax.com/products/"+a+"/candles?"+f.join("&");return b.json(g).then(function(a){return a.map(function(a){return{date:new Date(1e3*a[0]),open:a[3],high:a[2],low:a[1],close:a[4],volume:a[5]}})})};return f.product=function(b){return arguments.length?(a=b,f):a},f.start=function(a){return arguments.length?(c=a,f):c},f.end=function(a){return arguments.length?(d=a,f):d},f.granularity=function(a){return arguments.length?(e=a,f):e},f}a.feedGdax=c,Object.defineProperty(a,"__esModule",{value:!0})}); |
@@ -6,2 +6,13 @@ # Change Log | ||
# 7.1.0 (2021-04-28) | ||
### Features | ||
* add d3fc-chart types ([#1697](https://github.com/d3fc/d3fc/issues/1697)) ([fe9289b](https://github.com/d3fc/d3fc/commit/fe9289b)) | ||
## 7.0.1 (2020-07-14) | ||
@@ -8,0 +19,0 @@ |
@@ -6,3 +6,3 @@ declare namespace fc_financial_feed { | ||
interface GdaxDatum { | ||
date: Date, | ||
date: Date; | ||
open: number; | ||
@@ -9,0 +9,0 @@ high: number; |
{ | ||
"name": "@d3fc/d3fc-financial-feed", | ||
"version": "7.0.1", | ||
"version": "7.1.0", | ||
"description": "An API for fetching financial time-series data from different sources including GDAX", | ||
@@ -32,3 +32,3 @@ "license": "MIT", | ||
}, | ||
"gitHead": "3c6890b82dbb430bafd52420c0dd506861f16f5d" | ||
"gitHead": "6a7e7be9f026bae7a8d97fe48d7c4930d649fcb4" | ||
} |
13852