From 93c69ce9f400da910c5fe541b13d7f446071bce7 Mon Sep 17 00:00:00 2001 From: Kjell Thomas <3432677+ktpx@users.noreply.github.com> Date: Tue, 6 Sep 2022 23:14:18 +0200 Subject: [PATCH 1/3] Update README.md --- README.md | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 1bb5ee9..09bc3bc 100644 --- a/README.md +++ b/README.md @@ -11,14 +11,25 @@ URL: https://www.firi.com Examples: ``` +# Create a new API object. my $api = Miraiex::API->new( apikey => ); -``` -``` -my $result = $api->market_trade_history( market => $market, - count => $count ); - + +my %data = ( market => "btcnok", count => 100 ); +my $result = $api->market_trade_history(%data); + my $result = get_balances(); +... + + my %body = ( + 'market' => $market, + 'type' => $side, # bid / ask + 'price' => $price, + 'amount' => $amount, + ); + + my $result = $api->create_order(%body); + ``` All calls returns a reference to an array of hashes. See the [API](https://developers.miraiex.com/#/README) documentation for From bb7d35ce3cfede7c8d13044124de147e35451071 Mon Sep 17 00:00:00 2001 From: Kjell Thomas <3432677+ktpx@users.noreply.github.com> Date: Wed, 7 Sep 2022 12:18:44 +0200 Subject: [PATCH 2/3] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 09bc3bc..83873e9 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,8 @@ URL: https://www.firi.com Examples: ``` +use Firi::API; + # Create a new API object. my $api = Miraiex::API->new( apikey => ); From 375e518a7ba01f519a9f33a2ee6c95084844abf3 Mon Sep 17 00:00:00 2001 From: Kjell Thomas <3432677+ktpx@users.noreply.github.com> Date: Wed, 7 Sep 2022 12:19:25 +0200 Subject: [PATCH 3/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 83873e9..a9d9caf 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ Examples: use Firi::API; # Create a new API object. -my $api = Miraiex::API->new( apikey => ); +my $api = Firi::API->new( apikey => ); my %data = ( market => "btcnok", count => 100 ); my $result = $api->market_trade_history(%data);