Bitcoin Forum
November 20, 2017, 04:22:24 PM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: MTGox API help for a noob  (Read 662 times)
iameric
Newbie
*
Offline Offline

Activity: 28


View Profile
March 22, 2013, 08:01:24 PM
 #1

Hi guys I'm Eric and I have just a few questions about MTGox API.

I currently have a PHP file which is loaded by a CRON job every minute which uses MtGox API v1 Ticker to grab the high, low, last, buy, sell, and volume.

However I was wanting to use periods of 15M, so I need the opening price but I'm not quite sure exactly how to find that.

Any advice would be most appreciated.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1511194944
Hero Member
*
Offline Offline

Posts: 1511194944

View Profile Personal Message (Offline)

Ignore
1511194944
Reply with quote  #2

1511194944
Report to moderator
gweedo
Legendary
*
Offline Offline

Activity: 1246


Java, PHP, HTML/CSS Programmer for Hire!


View Profile WWW
March 22, 2013, 08:08:55 PM
 #2

Hi guys I'm Eric and I have just a few questions about MTGox API.

I currently have a PHP file which is loaded by a CRON job every minute which uses MtGox API v1 Ticker to grab the high, low, last, buy, sell, and volume.

However I was wanting to use periods of 15M, so I need the opening price but I'm not quite sure exactly how to find that.

Any advice would be most appreciated.

Well your using the 15 minute period so the opens would happen on 00, 15, 30, 45 of the times. The closed would be 14, 29,44,59


Want to earn 2500 SATOSHIS per hour? Come Chat and Chill in https://goseemybits.com/lobby
iameric
Newbie
*
Offline Offline

Activity: 28


View Profile
March 22, 2013, 08:12:50 PM
 #3

Depending on your webhost, it should be under the CRON jobs cpanel itself.
I appreciate yoru input I am using cPanel, CRON jobs is located there but I am moreso looking for what API functions I need to use to find the opening price of a certain period.

I get how to find the "last" price based on the ticker but not the open price which may not be the same as the previous last.

Hi guys I'm Eric and I have just a few questions about MTGox API.

I currently have a PHP file which is loaded by a CRON job every minute which uses MtGox API v1 Ticker to grab the high, low, last, buy, sell, and volume.

However I was wanting to use periods of 15M, so I need the opening price but I'm not quite sure exactly how to find that.

Any advice would be most appreciated.

Well your using the 15 minute period so the opens would happen on 00, 15, 30, 45 of the times. The closed would be 14, 29,44,59


Thank you.  You're right absolutely right about that but how did I find the open price of minute 00 since the previous "last" doesn't necessarily equal the next open.
gweedo
Legendary
*
Offline Offline

Activity: 1246


Java, PHP, HTML/CSS Programmer for Hire!


View Profile WWW
March 22, 2013, 08:15:14 PM
 #4

Depending on your webhost, it should be under the CRON jobs cpanel itself.
I appreciate yoru input I am using cPanel, CRON jobs is located there but I am moreso looking for what API functions I need to use to find the opening price of a certain period.

I get how to find the "last" price based on the ticker but not the open price which may not be the same as the previous last.

Hi guys I'm Eric and I have just a few questions about MTGox API.

I currently have a PHP file which is loaded by a CRON job every minute which uses MtGox API v1 Ticker to grab the high, low, last, buy, sell, and volume.

However I was wanting to use periods of 15M, so I need the opening price but I'm not quite sure exactly how to find that.

Any advice would be most appreciated.

Well your using the 15 minute period so the opens would happen on 00, 15, 30, 45 of the times. The closed would be 14, 29,44,59


Thank you.  You're right absolutely right about that but how did I find the open price of minute 00 since the previous "last" doesn't necessarily equal the next open.

You can get the historical data and parse that from a 3rd party, but using the Mt Gox api to get the last open price is not possible.

Want to earn 2500 SATOSHIS per hour? Come Chat and Chill in https://goseemybits.com/lobby
iameric
Newbie
*
Offline Offline

Activity: 28


View Profile
March 22, 2013, 08:22:08 PM
 #5

Depending on your webhost, it should be under the CRON jobs cpanel itself.
I appreciate yoru input I am using cPanel, CRON jobs is located there but I am moreso looking for what API functions I need to use to find the opening price of a certain period.

I get how to find the "last" price based on the ticker but not the open price which may not be the same as the previous last.

Hi guys I'm Eric and I have just a few questions about MTGox API.

I currently have a PHP file which is loaded by a CRON job every minute which uses MtGox API v1 Ticker to grab the high, low, last, buy, sell, and volume.

However I was wanting to use periods of 15M, so I need the opening price but I'm not quite sure exactly how to find that.

Any advice would be most appreciated.

Well your using the 15 minute period so the opens would happen on 00, 15, 30, 45 of the times. The closed would be 14, 29,44,59


Thank you.  You're right absolutely right about that but how did I find the open price of minute 00 since the previous "last" doesn't necessarily equal the next open.

You can get the historical data and parse that from a 3rd party, but using the Mt Gox api to get the last open price is not possible.
I gotcha I'll have to check a few out but I suppose there might be some sort of delay which might be problematic, but I suppose that would depend on the API.

I was told that I could easily scrape trades from the MtGox v1 API, I guess perhaps using some comparing I could figure this out?  I've never worked with trade.php I suppose now's when I start.

I was just hoping somebody had already dealt with this and had a particularly simple solution.
iameric
Newbie
*
Offline Offline

Activity: 28


View Profile
March 22, 2013, 11:07:22 PM
 #6

Can anybody point me in the right direction to find that data for the chart on the right: http://bitcoin.clarkmoody.com/
botsofbitcoin
Member
**
Offline Offline

Activity: 62



View Profile WWW
March 22, 2013, 11:26:32 PM
 #7

Perhaps not a huge amount of help but you might try asking over on the Bitcoin StackExchange http://bitcoin.stackexchange.com/ . Seems like the sort of thing that would go down well there, and they're in need of support during their beta phase.

See my localbitcoins ads here: https://localbitcoins.com/accounts/profile/botsofbitcoin/?ch=2mk
Visit Bots of Bitcoin here: http://www.botsofbitcoin.com/
Follow on Twitter: @botsofbitcoin
Puppet
Legendary
*
Offline Offline

Activity: 966


View Profile
March 22, 2013, 11:33:20 PM
 #8

Perhaps not a huge amount of help but you might try asking over on the Bitcoin StackExchange http://bitcoin.stackexchange.com/ . Seems like the sort of thing that would go down well there, and they're in need of support during their beta phase.

Its the order book; ie market depth. You can get a subset from that using the HTTP api; or a full set if you dont call it more than 5x per hour.
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!