BTC/USD:   1 hour: +0.19% | 2 hours: -0.58% | 6 hours: -5.32% | 12 hours: -7.98% | 24 hours: -10.94%
Cryptohopper trading bot

API USING

Overview

To understand how to use the API interface please read this informations below

Caching

We are building your last signal at the moment you call the api immediately! This means that as long as you do not call the API no signal is generated for you. As soon as you call the API and a new signal appears in the meantime, only then it will be generated.
As soon as you stop the API call, and if a new signal appears in the meantime, you will only receive it as soon as you open the API again, and only if no new signal has appeared after that. Depending on your settings, you will receive the last generated signal, or your previously generated signal.

Examples


CONTINUOUSLY calls without stop (without exchange settings)

If you call the signals CONTINUOUSLY you will get ALL signals depending on your settings directly to the same time they where generated.


API calls with stop/pause (without exchange settings)

If you call the API and you stop your calls before 05:00 and restart after 05:59:59 then you will miss Signal 2.


API calls with stop/pause AND exchange settings

If you call the API and you stop your calls before 05:00 and restart after 05:59:59 then you will miss Signal 2. If you have set your exchange settings to BITTREX you will miss Signal 3 also! In that case it shows you your last generated signal -> Signal 1
When you switch your settings after signal 3 to BINANCE you will also see Signal 1 until a NEW Signal appears from BINANCE and only if you call it.

Summary

Your output is depending on your settings and also the time when you call the API. If your exchange setting is BINANCE and no BINANCE signal is generated you dont get any new BINANCE signal until it appears. You will only see YOUR last called Signal.
If a new BINANCE signal has been generated and you call the API afterwards and then NO new signal from another exchange has been generated, then you will see this BINANCE signal.
When a new BITTREX signal has been generated after that and you call the API afterwards, you skipped the last BINANCE signal because it's expired.

Note: The API was build for continuosly calls without stops. In order to use the API efficiently, you should call it up with just a few seconds of time. Of course, if you constantly stop the fetches, you may skip important signals.