NAME
Finance::Indodax - Trade with Indodax.com using Perl
This document describes version 0.011 of Finance::Indodax (from Perl distribution Finance-Indodax), released on 2018-06-13.
Indodax, https://www.indodax.com (previously Bitcoin Indonesia, bitcoin.co.id) is an Indonesian Bitcoin exchange. This module provides a Perl wrapper for Indodax's Trade API.
new
Constructor.
get_ticker
Public API. The API method name is .
Arguments:
pair => str
Optional, e.g. eth_btc. Default: btc_idr.
get_trades
Public API. The API method name is .
Arguments:
pair => str
Optional, e.g. eth_btc. Default: btc_idr.
get_depth
Public API. The API method name is .
Arguments:
pair => str
Optional, e.g. eth_btc. Default: btc_idr.
get_price_history
Public API (undocumented). The API method name is either or .
This function returns an array of records. Each record is an array with the following data:
Arguments:
pair => str
Optional, e.g. eth_btc. Default: btc_idr.
Note: pairs other than "btc_idr" do not seem to be supported at this time (404 response).
period => str (all|day, default: day)
Specify period. means since exchange began operation (Feb 2014). means in the last ~24h.
tapi
General method to call API methods. Syntax:
For example:
is equivalent to:
get_info
This method give information about balance and server's timestamp. The API method name is .
Arguments:
get_tx_history
This method give information about history of deposit and withdraw. The API method name is .
Arguments:
get_trade_history
This method give information about bitcoin transaction in buying and selling history. The API method name is .
Arguments:
count => int
from_id => int
to_id => int
order => "asc" | "desc"
since => epoch
end => epoch
pair => str (required)
get_open_orders
This method give information about existing open order. The API method name is .
Arguments:
pair => str (required)
create_order
This method use to make a new order. The API method name is .
Arguments:
pair => str (required)
type => str (required)
Either "buy" or "sell".
price => num (required)
Price (in Rp) per bitcoin.
idr => num (required when type=buy)
Amount of IDR you want to buy.
btc => num (required when type=sell)
Amount of BTC you want to sell.
cancel_order
This method cancel existing open order. The API method name is .
Arguments:
pair => pair (required)
type => str (required)
Either "buy" or "sell".
order_id => num (required)
get_order
Get information about a specific order. The API method name is .
Arguments:
pair => str (required)
order_id => num (required)
Please visit the project's homepage at https://metacpan.org/release/Finance-Indodax.
Source repository is at https://github.com/perlancar/perl-Finance-BTCIndo.
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Finance-Indodax
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
API documentation, https://vip.bitcoin.co.id/downloads/BITCOINCOID-API-DOCUMENTATION.pdf
CLI that uses this module, for more convenience daily usage on the command-line: indodax (from App::indodax distribution).
perlancar <perlancar@cpan.org>
This software is copyright (c) 2018, 2017 by perlancar@cpan.org.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
-
-