Finance::CampBX - Access to the CampBX bitcoin trading API
version 0.2
use Finance::CampBX; my $campbx = new Finance::CampBX;
Stub documentation for Finance::CampBX.
Note from the CampBX Website: Please do not abuse the API interface with brute-forcing bots, and ensure that there is at least 500 millisecond latency between two calls. We may revoke the API access without notice for accounts violating this requirement.
$campbx->ticker()
$campbx->depth()
$campbx->balance($userid, $password) Set $userid to your CampBX account user ID. Set $password to your CampBX account password.
$campbx->orders($userid, $password)
$campbx->margins($userid, $password)
$campbx->getbtcaddress($userid, $password)
$campbx->quicktrade($userid, $password, $trademode, $quantity, $price) Set $mode to 'QuickBuy' or 'QuickSell'.
$campbx->cancelorder($userid, $password, $type, $orderid) Set $type to 'Buy' or 'Sell'.
$campbx->sendtobtc($userid, $password, $btcaddress, $btcamount) Set $btcaddress to valid recepient bitcoin address.
$campbx->sendtoaccount($userid, $password, $recepientid, $btcamount) Set $recepientid to valid recepient CampBX account ID.
Returns a new Finance::CampBX object
Used to send requests to CampBX
https://campbx.com/api.php
Rick Bragg, <rbragg@gmnet.net> www.GreenMountainNetwork.com
Copyright (C) 2012 by Rick Bragg
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.12.4 or, at your option, any later version of Perl 5 you may have available.
To install Finance::CampBX, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Finance::CampBX
CPAN shell
perl -MCPAN -e shell install Finance::CampBX
For more information on module installation, please visit the detailed CPAN module installation guide.