Frequently Asked Questions

Technical Questions

When I connect, I get a message saying that someone was already connected, what now?

This is fine, just ignore this and keep going. There can always only be one person connected at a time. Most likely, your previous connection was killed and then you re-connected, which is why you get this message. Or maybe a team member of yours was connected, and was now kicked out. In either case, this is not an error, and you ARE connected.

Can I disconnect from the exchange?

No - when your application stops running you automatically disconnect from the exchange, and all your orders are pulled for you. We call this 'Cancel On Disconnect'.

Trade ticks are always empty after connecting, why?

The client only starts listening to trades once it is connected, it does not receive a snapshot of previous trades from the exchange.

How do I know if an order executed successfully?

There is no notification for orders that turned into a trade. But you should not really need this for most use-cases. Still, if you insist, you can either poll your private trades with poll_new_trades, or you can simply monitor your position and see if it changes.

Trading-Related Questions

How is my PnL calculated?

Your PnL is the money you have made or lost in the past, plus the worth of your current positions. In the visualizer, we calculate your PnL by valuing your positions at the last traded price. We also supply you with a get_pnl function that calculates your PnL for you. By default, this function will also use the last traded price to value your positions, but you can also supply a different valuation method (e.g. mid-point, or vwap).

Why can't I trade after buying more than X lots?

There are limits to how big your position of an instrument can be. You cannot make a trade that would put you over that limit. So for example if the limit is +/-300 lots per instrument, and you currently own 290 lots, then you cannot buy more than 10 lots. These limits differ for different challenges, but usually they should be mentioned in the challenge description. If you cannot find them, ask us.

In a dual listing, can I transfer a position from one instrument to another?

No, you cannot. Whatever position you build up in one instrument stays in that instrument, and you will need to trade out of that instrument again.

Contact optibook@optiver.com for any questions