spotware / open-api-2.0-.net-sample Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
How fast are orders executed How fast are orders executed compared to FIX APIs
The package Google.ProtocolBuffers 2.6 targets the .NET Framework 4.6, is it possible to upgrade this example to work with .NET Standard?
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.
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.
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 ?
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.