barchart / barchart-feed-ddf Goto Github PK
View Code? Open in Web Editor NEWbarchart data feed libraries
Home Page: http://www.barchartmarketdata.com/solutions_datafeeds.php
barchart data feed libraries
Home Page: http://www.barchartmarketdata.com/solutions_datafeeds.php
Obviously this is user error, but we should be protecting against this.
Looks like the issue could be line 154 in DDF_RxInstrumentProvider
Here is a test case
Iterator<Result<Instrument>> res = marketerDDF.getClient().instrument(new String[] { "AAPL", null }).toBlockingObservable().getIterator();
log.warn("res.hasNext() = " + res.hasNext()); // blocks here
log.warn("res.next() = " + res.next());
To repo, run the HistoricalEODExample and add the below after line 110
result.getQuery();
project barchart-feed-ddf-historical
java.lang.CloneNotSupportedException: com.barchart.feed.ddf.historical.api.DDF_Query
at java.lang.Object.clone(Native Method)
at com.barchart.feed.ddf.historical.api.DDF_Query.clone(DDF_Query.java:97)
at com.barchart.feed.ddf.historical.provider.Result.getQuery(Result.java:192)
at com.barchart.plugin.widget.historical.ui.HistoricalDataView$8.taskExecuted(HistoricalDataView.java:540)
at org.apache.pivot.wtk.TaskAdapter$TaskExecutedCallback.run(TaskAdapter.java:39)
at org.apache.pivot.wtk.ApplicationContext$QueuedCallback.run(ApplicationContext.java:1705)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:694)
at java.awt.EventQueue$3.run(EventQueue.java:692)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:703)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
such as
[INFO]
124 warnings
[WARNING] Javadoc Warnings
[WARNING] /var/lib/jenkins/workspace/barchart-feed-ddf/barchart-feed-ddf-assembly/target/unpack-source/com/barchart/util/values/json/SizeValueSer.java:12: package org.codehaus.jackson does not exist
[WARNING] import org.codehaus.jackson.JsonGenerator;
[WARNING] ^
Throws this uncatchable exception
java.lang.RuntimeException: java.lang.RuntimeException: com.barchart.feed.ddf.instrument.provider.SymbolNotFoundException: BADBADSYMBOL
Full trace: https://gist.github.com/mvberg/9102684
Run this to repo
final String[] instruments = new String[] { "GOOG", "MSFT", "YHOO", "BADBADSYMBOL" };
Iterator<Result<Instrument>> results = feed().instrument(instruments).toBlockingObservable().getIterator();
System.out.println("results has next = " + results.hasNext());
while (results.hasNext()) {
// fireworks happen here
System.out.println("Next = " + results.next().results().size());
}
Hello,
Thanks for sharing the libraries.
I could not find anything here on how to use the recovery url when the feed gets disconnected.
Any suggestions on how to handle such scenarios?
Thanks
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.