Bitcoin Forum

Local => India => Topic started by: S_D on February 18, 2017, 12:14:35 PM



Title: Historic Raw Exchange Data - BTC/INR
Post by: S_D on February 18, 2017, 12:14:35 PM
Hey guys,

I am looking for raw exchange data for BTC INR pair for exchanges in India.
Similar to data displayed after clicking 'Load raw data' on following page.

http://lookpic.com/O/i2/430/jVMaLEhH.png

https://bitcoincharts.com/charts/localbtcINR#rg60ztgSzm1g10zm2g25zv

I am sure its possible with API these guys provide and am not sure how.
Can someone do it for me, or tell me how to do it.

I am also willing to give away the final consolidated sheet containing volume and price for each day.


Update:

Site
Status
Unocoin.comVol/OHLC since 01/12/2016 acquired. Seeking more historical data.
BTCxIndia.comVol/OHLC since 01/12/2016 acquired. Seeking more historical data.
LocalBitcoins.com            Data since 20/3/2013 acquired.
CoinSecure.inPending. Possible with API, seeking help.
ZebPay.comPending.


Title: Re: Raw Exchange Data - BTC/INR
Post by: S_D on February 19, 2017, 02:43:02 AM
No ones interested in how much India traded everyday ?
Really ???


Title: Re: Raw Exchange Data - BTC/INR
Post by: Benson Samuel on February 19, 2017, 05:10:08 AM
No ones interested in how much India traded everyday ?
Really ???

Can get OHLC data easily from Coinsecure API.


Title: Re: Raw Exchange Data - BTC/INR
Post by: newIndia on February 19, 2017, 10:30:48 AM
No ones interested in how much India traded everyday ?
Really ???

Here u get the INR volume of every week on LBC - https://coin.dance/volume/localbitcoins/INR

No API, but data can be exported to XLS file.


Title: Re: Raw Exchange Data - BTC/INR
Post by: S_D on February 19, 2017, 12:19:33 PM
No ones interested in how much India traded everyday ?
Really ???

Here u get the INR volume of every week on LBC - https://coin.dance/volume/localbitcoins/INR

No API, but data can be exported to XLS file.

Umm, thanks?
Evidently LBC data is available to me. I am looking for data from Coinsecure & Zebpay. (Also Unocoin and other which is highly unlikely)

No ones interested in how much India traded everyday ?
Really ???

Can get OHLC data easily from Coinsecure API.

Exactly I am sure its easy just don't know how :P


Title: Re: Raw Exchange Data - BTC/INR
Post by: Benson Samuel on February 20, 2017, 02:27:53 AM

Exactly I am sure its easy just don't know how :P

Will try to do a short script to pull the ohlc data when I get some time.
If you want to give it a poke, its websocket call to
wss://coinsecure.in/websocket
The message packet required is
{"method": "daily"}

"daily" can be substituted with
minutely
hourly
daily
weekly
monthly
yearly
full

Let me know if this helps.


Title: Re: Raw Exchange Data - BTC/INR
Post by: vaibhavsingh on March 03, 2017, 02:13:08 PM
there are many websites online for that just Google em dude ;)


Title: Re: Raw Exchange Data - BTC/INR
Post by: S_D on March 04, 2017, 06:33:30 AM
there are many websites online for that just Google em dude ;)

Actually nope, I am looking for INR exchange specific data.
Pass on the link if you found it already.

P.S. Still interested in data, I am not prog savvy as Benson. Maybe someone could understand what he said and help me


Title: Re: Historic Raw Exchange Data - BTC/INR
Post by: S_D on March 23, 2017, 03:25:41 AM
BUMP!


Title: Re: Historic Raw Exchange Data - BTC/INR
Post by: cracxme on March 28, 2017, 01:39:19 PM
Created little program to fetch data from coinsecure via websocket:

Use the following message as provided by Benson earlier

{"method": "daily"}

"daily" can be substituted with
minutely
hourly
daily
weekly
monthly
yearly
full


index.html
Code:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>WebSockets for Coinsecure</title>

<link rel="stylesheet" href="style.css">
</head>
<body>
<div id="page-wrapper">
<h1>WebSockets for Coinsecure.in
</h1>

<div id="status">Connecting...</div>

<ul id="messages"></ul>

<form id="message-form" action="#" method="post">
<textarea id="message" placeholder="Write your message here..." required></textarea>
<button type="submit">Send Message</button>
<button type="button" id="close">Close Connection</button>
</form>
</div>
<font size="2" color="yellow"><center><b>Created by <a href="https://bitcointalk.org/index.php?action=profile;u=923338" style="color:white">cracxme</a> <b></center></font></center>
<script src="app.js"></script>
</body>
</html>


app.js
Code:
window.onload = function() {

  // Get references to elements on the page.
  var form = document.getElementById('message-form');
  var messageField = document.getElementById('message');
  var messagesList = document.getElementById('messages');
  var socketStatus = document.getElementById('status');
  var closeBtn = document.getElementById('close');


  // Create a new WebSocket.
  var socket = new WebSocket('wss://coinsecure.in/websocket');


  // Handle any errors that occur.
  socket.onerror = function(error) {
    console.log('WebSocket Error: ' + error);
  };


  // Show a connected message when the WebSocket is opened.
  socket.onopen = function(event) {
    socketStatus.innerHTML = 'Connected to: ' + event.currentTarget.URL;
    socketStatus.className = 'open';
  };


  // Handle messages sent by the server.
  socket.onmessage = function(event) {
    var message = event.data;
    messagesList.innerHTML += '<li class="received"><span>Received:</span>' +
                               message + '</li>';
  };


  // Show a disconnected message when the WebSocket is closed.
  socket.onclose = function(event) {
    socketStatus.innerHTML = 'Disconnected from WebSocket.';
    socketStatus.className = 'closed';
  };


  // Send a message when the form is submitted.
  form.onsubmit = function(e) {
    e.preventDefault();

    // Retrieve the message from the textarea.
    var message = messageField.value;

    // Send the message through the WebSocket.
    socket.send(message);

    // Add the message to the messages list.
    messagesList.innerHTML += '<li class="sent"><span>Sent:</span>' + message +
                              '</li>';

    // Clear out the message field.
    messageField.value = '';

    return false;
  };


  // Close the WebSocket connection when the close button is clicked.
  closeBtn.onclick = function(e) {
    e.preventDefault();

    // Close the WebSocket.
    socket.close();

    return false;
  };

};

style.css
Code:
*, *:before, *:after {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

html {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 100%;
  background: #333;
}

#page-wrapper {
  width: 100%;
  background: #FFF;
  padding: 1em;
  margin: 1em auto;
  border-top: 5px solid #69c773;
  box-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

h1 {
margin-top: 0;
}

#status {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.open {
  color: green;
}

.closed {
  color: red;
}


ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}

ul li {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #EEE;
}

ul li:first-child {
  border-top: 1px solid #EEE;
}

ul li span {
  display: inline-block;
  width: 90px;
  font-weight: bold;
  color: #999;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sent {
  background-color: #F7F7F7;
}

.received {}

#message-form {
  margin-top: 1.5rem;
}

textarea {
  width: 100%;
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #D9D9D9;
  border-radius: 3px;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1);
  min-height: 100px;
  margin-bottom: 1rem;
}

button {
  display: inline-block;
  border-radius: 3px;
  border: none;
  font-size: 0.9rem;
  padding: 0.6rem 1em;
  color: white;
  margin: 0 0.25rem;
  text-align: center;
  background: #BABABA;
  border-bottom: 1px solid #999;
}

button[type="submit"] {
  background: #86b32d;
  border-bottom: 1px solid #5d7d1f;
}

button:hover {
  opacity: 0.75;
  cursor: pointer;
}



When socket is connected, it will show ticker values by default, but you can get other values by sending specific messages and edit app.js file according to your requirements


Hope it helps :)


Title: Re: Historic Raw Exchange Data - BTC/INR
Post by: S_D on March 30, 2017, 05:17:20 AM
Hope it helps :)
Kudos!
Oh sure it does, thanks a lot. I have been looking for this for months now.
Though this didn't give me daily OHLC & volume data since the inception of coinsecure.in the data still helps.


Title: Re: Historic Raw Exchange Data - BTC/INR
Post by: legendster on April 05, 2017, 03:00:43 AM
Don't call it raw dude, you will have the wrong eyeballs rolling in here otherwise.


Title: Re: Historic Raw Exchange Data - BTC/INR
Post by: S_D on April 05, 2017, 06:19:09 AM
Don't call it raw dude, you will have the wrong eyeballs rolling in here otherwise.
Hahaha thanks for heads up those guys will indeed visit my topic.

Just in case RAW representatives visit my thread:
@RAWreps - Hello there! You are doing a great job, *Salutes*


Title: Re: Historic Raw Exchange Data - BTC/INR
Post by: gpoddar on November 09, 2017, 10:28:13 AM
Hi S_D, did you manage to get the data? If so, could you please share it with me? been trying to get my hands on the same data. Thanks a lot!


Title: Re: Historic Raw Exchange Data - BTC/INR
Post by: S_D on November 12, 2017, 04:47:19 AM
Hi S_D, did you manage to get the data? If so, could you please share it with me? been trying to get my hands on the same data. Thanks a lot!
Still looking for most data, however you can have what I got PM me your request I'll add that to my todo list to update the sheet. :)