API
Panoramica
Mininghamster fornisce una semplice e potente API REST per consentirti di ricevere il segnale più recende dalla nostra interfaccia web. Tutte le richieste utilizzano il content type application/json. L'URL base è https://mininghamster.com/api/v2/
.
Tutte le richieste sono richieste GET e tutte le risposte arrivano in un oggetto di risposta predefinito.
Iniziamo
Nello spirito di semplificare le cose, offriamo un metodo di autenticazione della tua chiave API facile da gestire. Nota: DEVI avere una chiave API per ricevere gli ultimi segnali.
$apikey='API_KEY';
$uri='https://www.mininghamster.com/api/v2/$apikey;
$sign=hash_hmac('sha512',$uri,$apikey);
$ch = curl_init($uri);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('apisign:'.$sign));
$execResult = curl_exec($ch);
$obj = json_decode($execResult);
Deprecato
https://www.mininghamster.com/output/getsignal.php?key=API_KEY
Chiave demo
Gli sviluppatori possono testare un segnale di uscita casuale che cambia ogni 30 minuti.
https://www.mininghamster.com/api/v2/288b2113-28ac-4b14-801f-f4d9cf9d87ad
Anteprima di una richiesta json
0:
market: "BTC-INS"
lastprice: "0.0000238"
signalmode: "buy"
exchange: "binance"
basevolume: 308.9336
time: "2019-08-31 18:18:07"
signalID: "bin_707152820"
signals_qty: 43
profit_avg: 7.84
profit_median: 5.13
profit_mode: 5
profit_mode_qty: 5
market
il market in cui è apparso il segnale
lastprice
Segnale prezzo d'acquisto
signalmode
La modalità per il calcolo del segnale: Diverse Modalità
exchange
l'exchange in cui è apparso il segnale. Puoi selezionare l'exchange nelle tue impostazioni.
basevolume
Il volume base del mercato in BTC
time
Ora corrente del segnale (CET)
signalID
the unique signalID for this signal
signals_qty
Amount of signals already sent for this marketpair and exchange.
profit_avg
The average profit achieved so far by this marketpair and exchange
profit_median
The medium profit for this marketpair and exchange.
The median is the value separating the higher half from the lower half of the signal profits. It may be thought of as the "middle" value.
profit_mode
The mode profit for this marketpair and exchange.
The mode is the profit that occurs most often. If no profit in the list is repeated, then there is no mode for this marketpair.
profit_mode_qty
The quantity of the mode profit for this marketpair and exchange
Opzioni API
Facoltativamente, puoi configurare le seguenti impostazioni nel tuo profilo.- Output mode Choose your mode. Only buy or additional sell? It's up to you
- Exchange Scegli il tuo Exchange. Se usi solo Bittrex, lo puoi selezionare. (tutti, Bittrex, Poloniex, Binance o Kucoin)
- Exchange Market Choose your market for the output. You can select all the markets you want to trade (BTC,ETH,USDT,BNB,NEO)
- Volume di mercato Puoi scegliere il volume di mercato in BTC. Ottieni solo i mercati con volume es. superiore a 400 BTC.
- Blacklist Puoi creare la tua lista nera per i mercati che non vuoi esportare.