The API let's you take positions on both sides with a single account, or prevent yourself from self-trades by setting a flag.
EDIT: Nvm, the flag just specifies what the behavior is in the event that the system encounters a self-trade: decrement and cancel, cancel resting, cancel incoming, cancel both.