注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
HK 一个 做 market making 的 prop shop, 应聘 core dev.
OA 题目如下:
// This test consists of 1 problem.
// Problem 1.
// In C++, implement a quoting algorithm for a single instrument for a simple bbo that only supports order insertion and deletion.
// You are welcome to use any STL or Boost functionality, but please do not use other third-party libraries. Your code should implement the InstrumentQuoter class.
// Requirements:
// • Orders must not be closer to the theoretical price than the offset at the time they're sent (e.g., theoretical - price >= min_offset for buy orders).
// • Orders must be sent with price legit_prc to the exchange tick (e.g., for tick_size = 0.5, valid order prices would be ..., 9.5, 10.0, 10.5, ...). hange identifier of the instrument
// The side of the order ('B' for buy, 'S' for sell)
// The price of the order
// The volume of the order
virtual void requestOrderAdd(uint32_t id, std::string const& symbol, char orderSide, double price, uint32_t size) = 0;
// Requests an order to be removed at the exchange
// The request identifier used in 'requestOrderAdd'
virtual void requestOrderRemove(uint32_t id) = 0;
};
|