Git Product home page Git Product logo

interreact's People

Contributors

dshe avatar michaelreaton avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar  avatar  avatar  avatar

interreact's Issues

Alert when placing order

Hi,

When I'm trying to place a simple order with OrderType of Market Order and Limit Order, they both returned with alert message: "Order processing failed. Algorithm definition not found. Code=439. Id=1180."
var order = new Order { TradeAction = TradeAction.Buy, TotalQuantity = 100, OrderType = OrderType.Market };
Highly appreciate for any clues.

Return no record after request contract detail

        var contract = new Contract
        {
            SecurityType = InterReact.StringEnums.SecurityType.Stock,
            Symbol = "MSFT",
            Currency = "USD",
            Exchange = "SMART"
        };

        //client.Request.RequestCurrentTime();

        //var test = await client.Services.HistoricalDataObservable(contract);

        var contractDetailsList = await client.Services.ContractDetailsObservable(contract);

        var contractDetails = contractDetailsList.Single();

Var contractDetails returns zero.

When I debug the solution, IB gateway log shows the contract detail is returned, yet the program doesn't seem to hit the contractDetail.

Any idea?

Thanks.

OrderStatusReports don't appear to be handled

I updated to the latest and tried using the OpenOrdersObservable and it doesn't appear to be handling/receiving the OrderStatusReports. A new order will cause a "Submitted" OrderStatusReport to be received. When it's cancelled a "Cancelled" report should be received.

HistoricalBarSize, OneSecond is incorrectly assigned.

In HistoricalBarSize class, OneSecond is set as "1 sec". However as stated in IBKR error message:
"Historical data bar size setting is invalid. Legal ones are: 1 secs, 5 secs, 10 secs, 15 secs, 30 secs, 1 min, 2 mins, 3 mins, 5 mins, 10 mins, 15 mins, 20 mins, 30 mins, 1 hour, 2 hours, 3 hours, 4 hours, 8 hours, 1 day, 1W, 1M--"
It is supposed to be set to "1 secs"

Placing order error

when creating new order and trying to place it
Order neworder = new Order();
neworder.OrderType = OrderType.Limit;
neworder.TradeAction = TradeAction.Buy;
neworder.LimitPrice = 1;
neworder.TimeInForce = TimeInForce.Day;
neworder.TotalQuantity = 1;

        neworder.AlgoStrategy  = "Adaptive";
        neworder.AlgoParams.Add(new Tag("adaptivePriority", "Patient"));  <-- here 

get error

Alert: {RequestId:1823, OrderId:1823, Code:320, Message:"Error reading request.Message id 1823. Unable to parse data. java.lang.NumberFormatException: For input string: "Patient"", AlertType:HasId}

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.