{"id":2056,"date":"2017-05-15T02:24:01","date_gmt":"2017-05-14T23:24:01","guid":{"rendered":"http:\/\/www.gatchev.info\/blog\/?p=2056"},"modified":"2017-05-15T02:24:01","modified_gmt":"2017-05-14T23:24:01","slug":"a-poloniex-api-php-wrapper","status":"publish","type":"post","link":"http:\/\/www.gatchev.info\/blog\/?p=2056","title":{"rendered":"A Poloniex API PHP wrapper"},"content":{"rendered":"<p>A week ago a friend, who is interested in trading in cryptocurrencies, asked me to write for him a <a href=\"http:\/\/www.poloniex.com\" target=\"_blank\">Poloniex<\/a> trading bot.<\/p>\n<p>Initially I decided to implement it over the <a href=\"https:\/\/pastebin.com\/iuezwGRZ\" target=\"_blank\">API PHP wrapper by Compcentral<\/a>. It worked like a charm, but was missing some API calls, probably added by Poloniex later. So I ended up writing my own API wrapper. It implements all API calls currently documented by Poloniex. (And adds some parameters that they haven&#8217;t documented, but can be found in their javascripts. \ud83d\ude42 )<\/p>\n<p>So, being my own project, this PHP API wrapper is now licensed under a <a href=\"https:\/\/www.gnu.org\/licenses\/agpl-3.0.en.html\" target=\"_blank\">free license<\/a>, and <a href=\"http:\/\/www.gatchev.info\/ftp\/public\/Tools\/poloniex_api.zip\" target=\"_blank\">available for download<\/a>. Enjoy! \ud83d\ude42<\/p>\n<p>Of course, if someone feels this worthy of donation, I won&#8217;t refuse a bitcoin or two. \ud83d\ude09<\/p>\n<p>(A shameless boasting: I also threw together a quick Poloniex bot of my own. Not being skilled in cryptocurrency trading, I implemented only some loaning to the margin traders. Tested it against myself &#8211; the beastie turned out better than me! \ud83d\ude42 Not that I am anywhere near good lender, too &#8211; but it is pleasant when your children are smarter than you!)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A week ago a friend, who is interested in trading in cryptocurrencies, asked me to write for him a Poloniex trading bot. Initially I decided to implement it over the API PHP wrapper by Compcentral. It worked like a charm, but was missing some API calls, probably added by Poloniex later. So I ended up [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"hide_page_title":""},"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/www.gatchev.info\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2056"}],"collection":[{"href":"http:\/\/www.gatchev.info\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.gatchev.info\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.gatchev.info\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.gatchev.info\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2056"}],"version-history":[{"count":0,"href":"http:\/\/www.gatchev.info\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2056\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.gatchev.info\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2056"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.gatchev.info\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2056"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.gatchev.info\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2056"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}