Coder Social home page Coder Social logo

ib-re-actor-976-plus's People

Contributors

alex314159 avatar alexbaranosky avatar cbilson avatar ejackson avatar jjttjj avatar jsab avatar pjlegato avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

ib-re-actor-976-plus's Issues

Gateway / synchronous functions don't work?

The gateway and synchronous functions seem to only pass nil messages to the handler functions (though the default println handler does print the actual reply message to stdout, so connectivity is working.)

None of the examples seem to use them. Are they deprecated?

For example:

(defonce connection (gateway/connect 2 "localhost" default-paper-port println))

(class (ib-re-actor-976-plus.synchronous/server-time connection))
;; =>  nil
;; though println does render the time message to stdout

(def print-handlers
         {:data #(println "Received:" %)
          :end #(println "End of the request.")
          :error #(println "Error: " %)})

(gateway/request-current-time connection print-handlers)
;; =>
;; Received: nil
;; End of the request.
;;
;; println does print the full reply message to stdout

Failing on 9.81 and 10.15

Tried with both versions available currently, they fail for different reasons.

9.81:

Syntax error compiling at (ib_re_actor_976_plus/translation.clj:110:1).
Unable to find static field: CRYPTO in class com.ib.client.Types$SecType

10.15:

Syntax error (IllegalArgumentException) compiling reify* at (ib_re_actor_976_plus/wrapper.clj:185:25).
Can't define method not in interfaces: error

(I've made sure to rename and add the EWrapper_10.15.02.java file to resources of my local project, so that ewrapper-java-methods doesn't fall back to older version)

Breaking EWrapper interface change in API 9.79 beta - tickOptionComputation signature

Just a heads up that the method signature for tickOptionComputation in EWrapper changes in the newer 9.79 beta of twsapi, breaking ib-re-actor with that version

I'm using 9.76 as a workaround for now; recording this in case anyone else runs across this issue.

Updating EWrapper.java in the ib-re-actor source with the new one from 9.79 might fix it.

Trying to load wrapper.clj with 9.79 yields:

2. Unhandled clojure.lang.Compiler$CompilerException
   Error compiling /Users/pjlegato/.m2/repository/ib-re-actor-976-plus/ib-re-actor-976-plus/0.1.1-SNAPSHOT/ib-re-actor-976-plus-0.1.1-SNAPSHOT.jar:ib_re_actor_976_plus/wrapper.clj at (168:25)
   #:clojure.error{:phase :compile-syntax-check,
                   :line 168,
                   :column 25,
                   :source
                   "/Users/pjlegato/.m2/repository/ib-re-actor-976-plus/ib-re-actor-976-plus/0.1.1-SNAPSHOT/ib-re-actor-976-plus-0.1.1-SNAPSHOT.jar:ib_re_actor_976_plus/wrapper.clj",
                   :symbol reify*}
[...]
1. Caused by java.lang.IllegalArgumentException
   Can't define method not in interfaces: tickOptionComputation

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.