Bitcoin Forum
May 30, 2024, 01:45:01 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Price chart script  (Read 618 times)
bram_vnl (OP)
Legendary
*
Offline Offline

Activity: 1148
Merit: 1000


View Profile
September 12, 2016, 09:44:03 AM
 #1

I'm looking for a simpel script to show the charts on my website from a altcoin

example
jacktheking
Legendary
*
Offline Offline

Activity: 1484
Merit: 1001


Personal Text Space Not For Sale


View Profile
September 12, 2016, 09:46:23 AM
 #2

Where do you want your website to fetch the data from? A altcoin trading platform? And does they accept API?

So sad! This profile does not appear as the #1 result (on anonymous) Google searches anymore.

Time to be active on the crypto forums again? Proud to be one of the few Legendary members of the Sparkie Red Dot!

Gonna put this on my resume if I ever join a cryptocurrency/blockchain industry!
bram_vnl (OP)
Legendary
*
Offline Offline

Activity: 1148
Merit: 1000


View Profile
September 12, 2016, 09:50:09 AM
 #3

Where do you want your website to fetch the data from? A altcoin trading platform? And does they accept API?

From bittrex to chart, just for the information
mocacinno
Legendary
*
Offline Offline

Activity: 3402
Merit: 5004


https://merel.mobi => buy facemasks with BTC/LTC


View Profile WWW
September 12, 2016, 09:52:10 AM
 #4

IIRC, i've helped you over PM a long time ago to fetch the data from the NLG-BTC api's of bleutrade.com, bittrex.com and litebit.eu. I've searched my PM archive, and here's the code:

Code:
<?php
$url 
'https://www.litebit.eu/requests/jsonp.php?call=nlg';
$response file_get_contents($url);
$obj json_decode($responsetrue);
echo 
'sell : '$obj['sell'] . '<br>';
?>


Code:
<?php
$url 
'https://bleutrade.com/api/v2/public/getticker?market=NLG_BTC';
$response file_get_contents($url);
$obj json_decode($responsetrue);
echo 
'ask : '$obj['result'][0]['Ask'] . '<br>';
?>


Code:
<?php
$url 
'https://bittrex.com/api/v1.1/public/getmarketsummary?market=btc-nlg';
$response file_get_contents($url);
$obj json_decode($responsetrue);
echo 
'Bid : '$obj['result'][0]['Bid'] . '<br>';
?>


You'll need to save this data (or any other data you can fetch from an api) in your database instead of showing it on your screen, and use one of the open source tools to make a graph...

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
bram_vnl (OP)
Legendary
*
Offline Offline

Activity: 1148
Merit: 1000


View Profile
September 12, 2016, 09:53:53 AM
 #5

IIRC, i've helped you over PM a long time ago to fetch the data from the NLG-BTC api's of bleutrade.com, bittrex.com and litebit.eu. I've searched my PM archive, and here's the code:

Code:
<?php
$url 
'https://www.litebit.eu/requests/jsonp.php?call=nlg';
$response file_get_contents($url);
$obj json_decode($responsetrue);
echo 
'sell : '$obj['sell'] . '<br>';
?>


Code:
<?php
$url 
'https://bleutrade.com/api/v2/public/getticker?market=NLG_BTC';
$response file_get_contents($url);
$obj json_decode($responsetrue);
echo 
'ask : '$obj['result'][0]['Ask'] . '<br>';
?>


Code:
<?php
$url 
'https://bittrex.com/api/v1.1/public/getmarketsummary?market=btc-nlg';
$response file_get_contents($url);
$obj json_decode($responsetrue);
echo 
'Bid : '$obj['result'][0]['Bid'] . '<br>';
?>


You'll need to save this data in your database, and use one of the open source tools to make a graph...

Yes I have your scripts on my website, oke i will look for it
mocacinno
Legendary
*
Offline Offline

Activity: 3402
Merit: 5004


https://merel.mobi => buy facemasks with BTC/LTC


View Profile WWW
September 12, 2016, 09:55:18 AM
 #6

Yes I have your scripts on my website, oke i will look for it

I don't really have loads of time at the moment (so i cannot write the complete script for you at the moment), but if you need help to get started, you can always PM me (in dutch if you want to)

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
bram_vnl (OP)
Legendary
*
Offline Offline

Activity: 1148
Merit: 1000


View Profile
September 12, 2016, 09:57:26 AM
 #7

Yes I have your scripts on my website, oke i will look for it

I don't really have loads of time at the moment (so i cannot write the complete script for you at the moment), but if you need help to get started, you can always PM me (in dutch if you want to)

That will be awesome, first i will make a script to test if it is not oke, i will pm
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!