Crypto::Exchange::Binance::Spot::API - Binance Spot API
my $binance = Crypto::Exchange::Binance::Spot::API->new;
Get Prices
$hash = $binance->prices(pair => { coin => 'XRP', base => 'GBP' }); Got: $hash = { last_price => 1234, pair => {coin => 'XRP', base => 'GBP'} }
Get Wallet Balances
$hash = $binance->balances(); Got: $hash = { XRP => { available => 123, in_order => 0, staking => 0 }, GBP => { available => 321, in_order => 0, staking => 0 }, }
Get the opening orders
$list = $binance->list_open_orders(pair => { coin => 'XRP', base => 'GBP' }); Got: $list = [ { pair => { coin => 'XRP', base => 'GBP' }, order_id => 123, external_id => 'YOUR OWN DEFINED ID', buy_or_sell => 'buy|sell', order_qty => 55, filled_qty => 54, timestamp => 131321321321, filled_qty => 131231321321, }, ... ];
git@github.com:mvu8912/perl5-crypto-exchange-binance-spot-api.git
To install Crypto::Exchange::Binance::Spot::API, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Crypto::Exchange::Binance::Spot::API
CPAN shell
perl -MCPAN -e shell install Crypto::Exchange::Binance::Spot::API
For more information on module installation, please visit the detailed CPAN module installation guide.