Documention Fixes (algo.buy vs algo.sell)

Confusing switcheroos on the docs for algo.buy() and algo.sell()

buy()
"increase" - Increase a long position. Can be flat or long, but not short.
"decrease" - Decrease a short position (Note: "order_quantity" > 0). Must be long, not flat and not short. Will not liquidate more than long position.

sell()
"increase" - Increase a short position. Must be flat or short.
"decrease" - Decrease a short position (Note: "order_quantity" > 0) . Must be short, not flat and not long. Will not cover more than short position.

The buy() example should read:
"decrease" - Decrease a long position

Comments

Sign In or Register to comment.