Giter Club home page Giter Club logo

open-api-2.0-.net-sample's People

Contributors

panagiotischar avatar

Watchers

 avatar  avatar

Forkers

tomas-rampas

open-api-2.0-.net-sample's Issues

Support for Dotnetcore 3.1

The package Google.ProtocolBuffers 2.6 targets the .NET Framework 4.6, is it possible to upgrade this example to work with .NET Standard?

Small suggestion about txtMessages

This code
txtMessages.Text += "Send: " + OpenApiMessagesPresentation.ToString(msg);
txtMessages.Text += Environment.NewLine;
It is better to write this way:
txtMessages.AppendText("Send: " + OpenApiMessagesPresentation.ToString(msg) + Environment.NewLine);

After the textbox appended text, it will stay in the first line.
It is not convenient to observe the information.
After rewriting, it will stay in the last line.

[QUESTION] What is Endian of Message Length

Hi, I am trying to repeat the examples but in Rust an faced a little issue that i cannot find following.
In tutorial it is said that message frame structure is following

 +--------------------------+-----------------------------------------+  
 | Message Length (4 bytes) | Serialized ProtoMessage object (byte[]) |  
 +--------------------------+-----------------------------------------+  
                            |<---------- Message Length ------------->|

But i cannot find is method length is Big or Little Endian.
I've tried both variant and both gives me empty response
for example i am sending following message

let msg = ProtoOAGetAccountListByAccessTokenReq{
        payloadType: ProtoOAPayloadType::PROTO_OA_GET_ACCOUNTS_BY_ACCESS_TOKEN_REQ,
        accessToken: Cow::from(ACCESS_TOKEN),
    };

and then i can get a response and decode it but a structure has empty(default) fields

ProtoOAGetAccountListByAccessTokenRes {
    payloadType: PROTO_OA_GET_ACCOUNTS_BY_ACCESS_TOKEN_RES,
    accessToken: "",
    permissionScope: None,
    ctidTraderAccount: [],
}

when I read from stream

let mut length: [u8; 4] = [0x00; 4];
    stream.read_exact(&mut length)?;
    println!("received bytes = {:?}, length = {:?}", length, i32::from_le_bytes(length));

I get following bytes and converted into length

received bytes = [21, 3, 1, 0], length = 66325

that is i am receiving some response, but it looks like it is empty(default) response message

could you help me with this?
Thank you.

Hello,

Do all brokers cTrades allow connection to a Fix APIs In real accounts ? (Fondex ,FxPro,Pepperstone ,RoboForex ,IC Market ,...)
Without personal confirmation from them via Email ?

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.