Author

Topic: New open source PHP Bitcoin bot - For retreiving market/currency data ... (Read 2646 times)

member
Activity: 117
Merit: 10
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
member
Activity: 117
Merit: 10
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
member
Activity: 117
Merit: 10
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.
member
Activity: 117
Merit: 10
Various minor updates committed for those following.
member
Activity: 117
Merit: 10
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
Jump to: