alpacahq / alpacahq/Alpaca-API

Replace side "Buy, Sell" with "BTO, STC, STO, BTC"

未关闭
#85 3 条评论 7 个 reaction 已指派 0 人 在 GitHub 查看
feature request
主要语言
没有语言数据
星标
173
派生
17
PR 合并指标
30 天内没有已合并 PR

描述

My algorithm _sometimes_ tries to sell a position twice, which results in in liquidation of my current position and then the filling of a short order. In a perfect world, our code is so tried and tested that this could never happen by mistake. But, as we know, we do not live in a perfect world and bugs occur, regressions occur, hiccups occur.

The accidental shorting of an equity due to two sell orders clearing is dangerous, unacceptable and yet, completely avoidable by a responsible API.

**Recommendation:**

**Please replace current "Buy, Sell" options with the following:**

**BTO** = Buy To Open
**STC** = Sell To Close
**STO** = Sell To Open
**BTC** = Buy To Close

This will ensure orders accepted by the API are accepted **as intended** by the developer and it will help protect your clients equity.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。