GithubHelp home page GithubHelp logo

barchart / barchart-feed-ddf Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 2.0 112.14 MB

barchart data feed libraries

Home Page: http://www.barchartmarketdata.com/solutions_datafeeds.php

Java 98.52% Python 0.26% CSS 1.22%

barchart-feed-ddf's People

Contributors

andrei-pozolotin avatar byanes avatar dlucek avatar glitchfield avatar jjongsma avatar jtdudley2 avatar kevinsawicki avatar mvberg avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

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

Forkers

hlzhang

barchart-feed-ddf's Issues

Calling instrument(final String...) with a null entry blocks forever

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());

Calling getQuery() on an DDF_Query object throws a CloneNotSupportedException

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)

fix javadoc warnings due to missing links declaration for external projects

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] ^

Symbol list lookup fails for all symbols if one is not found

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());
}

Recovery url usage?

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

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.