NAME
Finance::CampBX - Access to the CampBX bitcoin trading API
VERSION
version 0.2
SYNOPSIS
use Finance::CampBX; my $campbx = new Finance::CampBX;
DESCRIPTION
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.
Methods
- ticker
-
$campbx->ticker()
- depth
-
$campbx->depth()
- balance
-
$campbx->balance($userid, $password) Set $userid to your CampBX account user ID. Set $password to your CampBX account password.
- orders
-
$campbx->orders($userid, $password)
- margins
-
$campbx->margins($userid, $password)
- getbtcaddress
-
$campbx->getbtcaddress($userid, $password)
- quicktrade
-
$campbx->quicktrade($userid, $password, $trademode, $quantity, $price) Set $mode to 'QuickBuy' or 'QuickSell'.
- cancelorder
-
$campbx->cancelorder($userid, $password, $type, $orderid) Set $type to 'Buy' or 'Sell'.
- sendtobtc
-
$campbx->sendtobtc($userid, $password, $btcaddress, $btcamount) Set $btcaddress to valid recepient bitcoin address.
- sendtoaccount
-
$campbx->sendtoaccount($userid, $password, $recepientid, $btcamount) Set $recepientid to valid recepient CampBX account ID.
- new
-
Returns a new Finance::CampBX object
- sendrequest
-
Used to send requests to CampBX
SEE ALSO
https://campbx.com/api.php
AUTHOR
Rick Bragg, <rbragg@gmnet.net> www.GreenMountainNetwork.com
COPYRIGHT AND LICENSE
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.