This file contains 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
if(FIXSession.isMsgType(fixmap, msgs["NewOrderSingle"])){ | |
const orderid = fix_session.orderid_counter.next(); | |
const ack = fix_session.create_msg(msgs['ExecutionReport']); | |
ack.set(fields['ExecID'],fix_session.execid_counter.next()); | |
ack.set(fields['OrderID'],orderid); | |
ack.set(fields['ClOrdID'],fixmap.get(fields['ClOrdID'])); | |
ack.set(fields['ExecType'], enums[fields['ExecType']]['NEW']); | |
ack.set(fields['ExecTransType'], enums[fields['ExecTransType']]['NEW']); | |
ack.set(fields['OrdStatus'], enums[fields['OrdStatus']]['NEW']); | |
ack.set(fields['Side'], fixmap.get(fields['Side'])); |
This file contains 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
//DISCLAIMER: If something looks trivially wrong, it probably is. I'm a java developer, not yet a C++ dev. | |
//====================Schema==================== | |
union FinalEventUnion | |
{ | |
CharactersLoadedEvent, | |
SomeOtherEvent, | |
AnotherEvent, | |
... | |
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
''' | |
Tool to calculate warmup sets and which plates should be placed on the barbell | |
Author : Shahbaz Chaudhary | |
Contact: shahbazc gmail com | |
License: Do as you wish. Be safe while lifting, plenty of good advice on the internet. | |
''' | |
from itertools import * |
This file contains 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
package networkioshootout; | |
import static java.lang.System.out; | |
import java.io.BufferedInputStream; | |
import java.io.DataInputStream; | |
import java.io.DataOutputStream; | |
import java.io.EOFException; | |
import java.io.IOException; | |
import java.io.InputStream; |