Documention Fixes (algo.buy vs algo.sell)
pr1085
Posts: 3
in Report a Bug
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
Tagged:
Comments
In the process of being fixed. Thanks for spotting that as well