Bitcoin Forum
December 08, 2016, 08:21:07 AM *
News: Latest stable version of Bitcoin Core: 0.13.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: New open source PHP Bitcoin bot - For retreiving market/currency data ...  (Read 2398 times)
mr-sk
Member
**
Offline Offline

Activity: 67



View Profile WWW
June 11, 2011, 11:21:42 PM
 #1

Hey,

Thought you all might like to get ahold of this open source PHP bot I've created. It currently fetches ticker data from MtGox and currency data from Bitcoincharts.
It also allows you to set alerts, so when the price hits a certain point you'll be notified.

Its still pretty basic, but I plan on adding a lot of additional functionality in the coming weeks.
Enjoy: https://github.com/mr-sk/Botcoin

If nothing else, code is commented and well structure so I think it servers as a good starting point for building your own bots.
Current functionality:

Supported public commands:
!help Display the help menu.
!currency Display weighted currency values.
!ticker Display

Supported private commands:
!join Join the pre-set channel.
!shutdown Quit IRC / leave the server.
!part Leave the channel, stay connected to server.

- sk

Botcoin - An Open Source PHP Bitcoin bot for retrieving market data.
Enjoy it, please donate: 1K2JWmpd75ehXxco1SWtGLaceQsRytpyEv
1481185267
Hero Member
*
Offline Offline

Posts: 1481185267

View Profile Personal Message (Offline)

Ignore
1481185267
Reply with quote  #2

1481185267
Report to moderator
1481185267
Hero Member
*
Offline Offline

Posts: 1481185267

View Profile Personal Message (Offline)

Ignore
1481185267
Reply with quote  #2

1481185267
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
mr-sk
Member
**
Offline Offline

Activity: 67



View Profile WWW
June 12, 2011, 02:21:27 PM
 #2

Various minor updates committed for those following.

Botcoin - An Open Source PHP Bitcoin bot for retrieving market data.
Enjoy it, please donate: 1K2JWmpd75ehXxco1SWtGLaceQsRytpyEv
mr-sk
Member
**
Offline Offline

Activity: 67



View Profile WWW
June 14, 2011, 04:05:42 AM
 #3

Decent update, v0.2.

Includes a !trading command that pulls mtGox data and computes some EOD volume and pricing, along with total $USD value.
This will become less accurate as mtGox trims the API data, so depending on when you make the request, you may see very low volume even though you know otherwise, such as 12:01AM.

Also added a way to reset alerts and see all current alerts.
Enjoy!

COMMANDS
--------
Supported public commands:

     * Supported public commands:
     * !help      Display the help menu.
     * !currency  Display weighted currency values.
     * !ticker    Display ticker values (high, low, bid, ask, etc).
     * !trading   Displays detailed trading data for the last 3x days.
     * !set       Set a watch for a high or low price.
     * !check     Inspect each 'set' price and see if it should be triggered.
     * !clear     Removes all 'set's.
     * !show      Display (to nick) the value of the high/low lists.


Supported private commands:

     * Supported private commands:
     * !join     Join the pre-set channel.
     * !shutdown Quit IRC / leave the server.
     * !part     Leave the channel, stay connected to server.

Botcoin - An Open Source PHP Bitcoin bot for retrieving market data.
Enjoy it, please donate: 1K2JWmpd75ehXxco1SWtGLaceQsRytpyEv
mr-sk
Member
**
Offline Offline

Activity: 67



View Profile WWW
June 15, 2011, 03:00:50 AM
 #4

Updated to version 0.3. Added TradeHill trading data & some improved error handling (Found out the hardway with MtGox down all day).
Example of output:

Code:
<@sk> !trading
<@b0tc0in> Todays MtGox | W-EOD:$19.6 V:11.2 | V:31695.114 | USD value:96519.4976 | Avg V:6.2925 for 5037 transactions
<@b0tc0in> Todays TradeHill | W-EOD:$19.00000000 V:25.00000000 | V:1026.817 | USD value:5060.0504 | Avg V:3.8030 for 270 transactions
<@sk> !ticker
<@b0tc0in> High:20.5 Low:18.001 Vol:33276 Bid:19.4 Ask:19.5 Last:19.4065 Spread:0.1
<@sk> !set high 21.00
<@sk> !set low 18.00

Project: https://github.com/mr-sk/Botcoin

Botcoin - An Open Source PHP Bitcoin bot for retrieving market data.
Enjoy it, please donate: 1K2JWmpd75ehXxco1SWtGLaceQsRytpyEv
mr-sk
Member
**
Offline Offline

Activity: 67



View Profile WWW
June 17, 2011, 08:20:51 PM
 #5

Updated to v0.4.


0.4: Improved bitcoin / currency precision. Cleaned up command output.

Code:
< b0tc0in2> Todays MtGox | W-EOD:$14.00 V:61 | V:70,712 | $121311.03 | Avg V:9 for 7871 transactions
< b0tc0in2> Todays TradeHill | W-EOD:$15.20 V:13 | V:1,133 | $3454.41 | Avg V:5 for 221 transactions
< b0tc0in2> ($) High:18.85 Low:13 Vol:105,294 Bid:14.0001 Ask:14.0802 Last:14.0001 Spread:0.080100


https://github.com/mr-sk/Botcoin

Botcoin - An Open Source PHP Bitcoin bot for retrieving market data.
Enjoy it, please donate: 1K2JWmpd75ehXxco1SWtGLaceQsRytpyEv
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!