Aller au contenu
S'inscrire

Liste de suivi et alertes

Ajouter à la liste de suivi

Suivez un instrument. Il rejoint la fin de votre liste.

POST/api/v1/watchlistObtenir une clé
curl --request POST \
  --url "https://reirex.com/api/v1/watchlist" \
  --header "GX-API-KEY: $GX_API_KEY" \
  --header "GX-API-TIMESTAMP: $TIMESTAMP" \
  --header "GX-API-SIGN: $SIGNATURE" \
  --header "Content-Type: application/json" \
  --data '{"symbol":"ASML"}'

201 Createdapplication/json

{
  "symbols": ["BTC", "ETH", "XAU", "EURUSD", "ASML"],
  "limit": 100
}

Ajouter ce qui y figure déjà ne change rien. Une liste contient jusqu'à 100 instruments.

Corpsapplication/json

  • symbolstringobligatoire

    L'instrument, comme ASML ou XAU.

Réponse

  • symbolsstring[]

    Les instruments que vous suivez, dans votre ordre.

  • limitinteger

    Le nombre d'instruments qu'elle peut contenir.