alpacahq / alpacahq/Alpaca-API

request body format is invalid

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

描述

**Describe the bug**
Cannot place a bracket buy order. I am trying to set a market buy with no profit taking.

**To Reproduce**
Steps to reproduce the behavior:
```
if signal == 'BUY':
api.submit_order(
symbol=ticker,
qty=1,
side="buy",
type="market",
time_in_force="gtc",
# limit_price=None,
# stop_price=None,
# extended_hours=False,
# client_order_id=None,
order_class="bracket",
take_profit="99999",
stop_loss="0",
# trail_price=None,
# trail_percent=None
)
```

**Expected behavior**
runs selling trade when signal received.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: Windows 11
- Version: Python 3.8.19

贡献指南

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

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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