Nadex-API This is the first release of this module (version 0.01). It does not depend on any exotic modules. So, installation is straightforward as outlined in the INSTALLATION section of this document. Use this module to login to the North American Derivatives Exchange, send orders to the exchange, check the account balance, get price quotes, get information about currently available contracts, and check on open positions. It isn't clear whether the use of this module to access your Nadex account runs afoul of any Nadex Member Rules. So, use at your own risk. Here's a sample of code that could be used to submit an order to buy 5 GBP/USD > 1.5020 (3PM) contracts at a price of $34.50: use Nadex::API; my $client = Nadex::API->new; # must login before using any other methods provided by the module $client->login(username => 'yourusername', password => 'yourpassword'); # get the unique identifier for the contract to be bought my $epic = $client->get_epic( instrument => 'GBP/USD', type => 'binary', period => 'Daily', time => '3pm', strike => '1.5020' ); # send the order to the exchange my $order_id = $client->create_order( epic => $epic, size => 5, direction => 'buy', price => 34.50 ); # get information about the newly created order; note that this # call may fail if the order is no longer an order; in other words, # the order could get filled immediately, in which case, there is no # longer an order but rather an open position my $order = $client->retrieve_order( order_id => $order_id ); # display some key facts about the pending order (if it is still pending) print join(" ", $order->order_id, $order->direction, $order->size, $order->contract, $order->price), "\n"; INSTALLATION To install this module, run the following commands: perl Makefile.PL make make test make install SUPPORT AND DOCUMENTATION After installing, you can find documentation for this module with the perldoc command. perldoc Nadex::API It will also be useful to review the documentation for the following modules using perldoc. perldoc Nadex::Order perldoc Nadex::Position perldoc Nadex::Contract You can also look for information at: RT, CPAN's request tracker (report bugs here) http://rt.cpan.org/NoAuth/Bugs.html?Dist=Nadex-API AnnoCPAN, Annotated CPAN documentation http://annocpan.org/dist/Nadex-API CPAN Ratings http://cpanratings.perl.org/d/Nadex-API Search CPAN http://search.cpan.org/dist/Nadex-API/ LICENSE AND COPYRIGHT Copyright (C) 2015 mhandisi This program is free software; you can redistribute it and/or modify it under the terms of the the Artistic License (2.0). You may obtain a copy of the full license at: L Any use, modification, and distribution of the Standard or Modified Versions is governed by this Artistic License. By using, modifying or distributing the Package, you accept this license. Do not use, modify, or distribute the Package, if you do not accept this license. If your Modified Version has been derived from a Modified Version made by someone other than you, you are nevertheless required to ensure that your Modified Version complies with the requirements of this license. This license does not grant you the right to use any trademark, service mark, tradename, or logo of the Copyright Holder. This license includes the non-exclusive, worldwide, free-of-charge patent license to make, have made, use, offer to sell, sell, import and otherwise transfer the Package with respect to any patent claims licensable by the Copyright Holder that are necessarily infringed by the Package. If you institute patent litigation (including a cross-claim or counterclaim) against any party alleging that the Package constitutes direct or contributory patent infringement, then this Artistic License to you shall terminate on the date that such litigation is filed. Disclaimer of Warranty: THE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS "AS IS' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES. THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT PERMITTED BY YOUR LOCAL LAW. UNLESS REQUIRED BY LAW, NO COPYRIGHT HOLDER OR CONTRIBUTOR WILL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THE PACKAGE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.