matplotlib / matplotlib/mplfinance
Is there a way to plot OHLC figure in mplfinance with live data that isn't in a dataframe format
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- Python
- Estrellas
- 4.4k
- Forks
- 678
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
Hi,
I am querying an API to get High, low, close, open prices and volume in order to make a chart that is faster/lighter than the one on trading view. I was wondering if I could input raw live data in mplfinance and get it to plot a candlestick chart? Perhaps there is a way to do something that resembles this:
`
open= api_response['open']
high = api_response['max_price']
low = api_response['min_price']
close= api_response['close']
volume = api_response['volume']
xdate = time.strftime("%X", time.gmtime())
daily(xdate,open,high,low,close,volume,width=0.6) # use data that isn't in the dataframe format like in matplotlib
`
I can't seem to get OHLC data in the proper format from the API of the exchange I am using. So I was thinking of getting the live data then plotting it as new information is sent thru the exchanges API within a loop then animating it. I've read issues #17 #25 but they don't seem to cover the format type. Thank you very much for your help and the work you have put in for this project.
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Comienza revisando el formato de entrada existente de mplfinance y las discusiones relacionadas en los issues #17 y #25. Compara esas expectativas con los campos de la API y el bucle de actualización en vivo descritos aquí; el alcance solo estará completo cuando se hayan definido la entrada compatible y el comportamiento de la animación.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- python
- Área
- data-visualization
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 25/100