alpacahq / alpacahq/alpaca-backtrader-api

The Default Value for 'stocklike'

Abierto
#441 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Python
Estrellas
702
Forks
160
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

Hi,

I wonder why the default param value for 'stocklike' is initialized in the comminfo as False. I think that is used for instruments like Futures. The calculation of the position and cash adjustment underlying are different than stocks. If 'margin' is set to None, the actual 'stocklike' value is True, then it is not necessary to declare it explicitly and a little bit confusing.
```
AlpacaCommInfo(mult=1.0, stocklike=False))
```

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.