BTC/USD:  1 hour: -0.20% | 2 hours: +0.80% | 6 hours: -1.28% | 12 hours: +1.57% | 24 hours: +2.71%
Zignaly

API

Note: Using the API interface only allowed for ONE user per key. If you use it with your self coded bot, please read YOURTRADINGBOT first.

Visão geral

O MiningHamster fornece uma API REST simples e poderosa para permitir que você obtenha o último sinal da nossa site. Todos os pedidos utilizam a programa/json. A url base é https://mininghamster.com/api/v2/. Todos os pedidos são pedidos GET e todas as respostas vêm em um objeto de resposta padrão.

Começando

Por simplicidade, oferecemos uma maneira fácil de gerenciar o seu método de autenticação da API Key.

$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);

Depreciando

https://www.mininghamster.com/output/getsignal.php?key=API_KEY

Chave de demonstração

Os desenvolvedores podem testar um sinal de saída aleatório que muda a cada 30 minutos.

https://www.mininghamster.com/api/v2/288b2113-28ac-4b14-801f-f4d9cf9d87ad

Visualização 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 o mercado onde apareceu o sinal
lastprice preço de sinal para comprar
signalmode o modo de cálculo de sinal: Modos diferentes
exchange a mercado onde o sinal apareceu. Você pode selecionar sua saída de mercado em suas configurações.
basevolume o volume de base do mercado no BTC
time hora atual do sinal (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

Opções de API

Opcionalmente, você pode fazer as seguintes configurações em seu perfil.