Skip to content

Sends via webhook the different dolar rate exchange in Argentina

Notifications You must be signed in to change notification settings

agustinlare/usdarsrate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

USD-ARS Rate Notifications

Manda las cotizaciones de ambito financiero por webhook a Google Meets y Discord son los unicos con que probe.

Envs

WEBHOOK_URL: Obviamente el webhook que requiere para mandar la notificaicon ENDPOINT_URL: https://mercados.ambito.com/dolar/$TIPO_DOLAR/variacion (informal, oficial, etc) INFLUXDB_URL: Ademas podes ponerlo en una db de influx para verlo por grafana. (NOW WORKING)

Docker / Kubernetes

Se puede bajar tal cual esta y compilar con los valores deseados, utilizar el yaml que dejo aca para que corra como cronjob en kubernetes o usar esta imagen quay.io/agustinlare/usdarsrate.

docker run -e WEBHOOK_URL="" -e ENDPOINT_URL="" -e INFLUXDB_URL="<INFLUXDB_URL>" -itd quay.io/agustinlare/usdarsrate

Tags

  • x86: latest
  • Arm: arm

InfluxDB NOT WORKING

Conectado al influxdb estos son los comandos para crear la base de datos

CREATE DATABASE dolar WITH DURATION 30d REPLICATION 1 SHARD DURATION 1d NAME autogen
CREATE RETENTION POLICY "one_month" ON "dolar" DURATION 30d REPLICATION 1 DEFAULT
> SELECT "sell" AS "mean_sell" FROM "dolar"."one_month"."exchange_rate"
name: exchange_rate
time                mean_sell
----                ---------
1682193054000000000 442,00
1682193211000000000 442,00
1682193314000000000 442,00

About

Sends via webhook the different dolar rate exchange in Argentina

Topics

Resources

Stars

Watchers

Forks