Skip to content

Instantly share code, notes, and snippets.

@sdmg15
Last active March 7, 2020 07:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sdmg15/7ecc9e0a1bebcd84745fa528dd90c8a2 to your computer and use it in GitHub Desktop.
Save sdmg15/7ecc9e0a1bebcd84745fa528dd90c8a2 to your computer and use it in GitHub Desktop.
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) {}
}
@Ujang360
Copy link

Ujang360 commented Mar 7, 2020

@sdmg15
Copy link
Author

sdmg15 commented Mar 7, 2020

Oops yeah updated thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment