Last active
March 7, 2020 07:40
-
-
Save sdmg15/7ecc9e0a1bebcd84745fa528dd90c8a2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
syntax = "proto3"; | |
package FIX; | |
import "executionreport.proto"; | |
message NewOrderSingle { | |
string ClOrdID = 1; | |
string Instrument = 2; | |
enum TradeSide { | |
BUY=0; | |
SELL=1; | |
} | |
TradeSide Side = 3; | |
uint32 OrdType = 4; | |
string Price = 5; | |
string StopPx = 6; | |
string OrderQty = 7; | |
uint32 TimeInForce = 8; | |
uint64 ExpireTime = 9; // in nanoseconds | |
string ExecInst = 10; | |
string CancelOnDisconnect = 11; | |
} | |
message NewOrderSingleResult { | |
repeated ExecutionReport execution_report = 1; | |
string error = 2; | |
uint32 response_code = 3; | |
} | |
service CreateOrder { | |
rpc sendNewOrderSingle (NewOrderSingle) returns (NewOrderSingleResult) {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
required
is aproto2
keyword, notproto3
https://stackoverflow.com/questions/31801257/why-required-and-optional-is-removed-in-protocol-buffers-3