CCXT library drops AAX Exchange

Quick solution notes for people who still use Laravel/PHP’s “ccxt/ccxt” library to access AAX exchange. The exchange’s API was delisted due to the likely insolvency, but for those who still need that for code

#!/bin/sh
curl -o vendor/ccxt/ccxt/php/aax.php https://raw.githubusercontent.com/ccxt/ccxt/2.2.63/php/aax.php
if [ -z `cat vendor/ccxt/ccxt/php/Exchange.php  | grep aax` ]; then
#       sed "/^.*'ascendex'.*/i         \'aax\'," vendor/ccxt/ccxt/php/Exchange.php > /tmp/Exchange.php
        echo "Add 'aax', line to vendor/ccxt/ccxt/php/Exchange.php"
fi

Leave a Reply

Your email address will not be published. Required fields are marked *