Changelog

Currency Swaps

Make a swap at market rate from one currency to another. You can fetch the latest market rate using the "rates" endpoint.

The following pairs are enabled implicitly and explicitly for exchange on the Striga platform. The Ticker column references the symbol to use when interacting with exchange functions on the platform. Please note, additional tickers may be found but trading is not allowed for "CUSTODY" only tokens such as 1INCH, MATIC, LINK, UNI, SUSHI. Only the tickers listed below can be used for trading.

PairTicker
USDC/EURUSDCEUR
USDT/EURUSDTEUR
USDC/USDTUSDCUSDT
BTC/USDTBTCUSDT
BTC/USDCBTCUSDC
BTC/EURBTCEUR
ETH/EURETHEUR
BUSD/EURBUSDEUR
BNB/EURBNBEUR

Please note that the amount sent in any transaction is denominated in the lowest divisible unit of the currency being sent (Eg: cents, satoshis or wei).

📘

v1 Minimum Trade Values

Please note that all orders will not go through unless they meet the minimum order size provided by our liquidity partners, which is usually on the order of 10 EUR equivalent.

Minimum trade values are applied on the value of the order, i.e. the amount of currency that is received as the result of a swap.

Currently the minimum order sizes are as follows -

EUR: 10,
USD: 10,
USDT: 10,
USDC: 10,
BTC: 0.001,
ETH: 0.01,
BUSD: 10,
BNB: 0.01

The API returns a property order which contains id, credit, debit and price with sub fields respectively. The order.id field is only present when there is a multi-currency transaction, i.e. a swap from one currency to another. In this case, the direction and ticker values are also present. The amountFloat value under credit and debit depict the value in whole currencies (EUR, BTC etc.). The amount value depicts the value in the smallest divisible unit.

An example response is shown below -

{
    "id": "1c721c03-e34a-4073-a7ec-eab99e017f7d",
    "sourceAccountId": "0148ae0856b1457ff3b59f2ac965b58e",
    "destinationAccountId": "ec7d87e7109dcc0ab6d04650762fb72f",
    "memo": "implement web-enabled synergies",
    "status": "COMMITTED",
    "txType": "CURRENCY_EXCHANGE",
    "order": {
        "id": "e165a7e2-3dee-46bc-9025-5e5c8c389eea",
        "price": "24104.93",
        "type": "buy",
        "ticker": "BTCEUR",
        "debit": {
            "currency": "EUR",
            "amountFloat": "7264.32",
            "amount": "726432"
        },
        "credit": {
            "currency": "BTC",
            "amountFloat": "0.30136241",
            "amount": "30136241"
        }
    },
    "datetime": "2023-08-23T11:35:06.057Z",
    "balanceBefore": {
        "balance": "726432",
        "currency": "cents"
    },
    "balanceAfter": {
        "balance": "0",
        "currency": "cents"
    },
    "sourceSyncedOwnerId": "b2ccf978-2da7-4ac9-9db7-5398c4c6b212",
    "destinationSyncedOwnerId": "b2ccf978-2da7-4ac9-9db7-5398c4c6b212",
    "feeEstimate": {
        "totalFee": "7389",
        "networkFee": "0",
        "ourFee": "0",
        "theirFee": "7389",
        "feeCurrency": "EUR",
        "fixedFeeDetails": {
            "amount": "50",
            "exchangeRate": "1"
        },
        "percentageFeeDetails": {
            "amount": "7339"
        }
    }
}

Ticker interpretation

JSON TradeMap -

The following trademap can be used on your application to cleanly calculate prices on buying/selling crypto currencies according to Striga's ticker structure.

toCurrency: {
    BTC: {
      fromCurrency: {
        EUR: {
          direction: 'buy',
          ticker: 'BTCEUR,
        },
        USDT: {
          direction: 'buy',
          ticker: 'BTCUSDT,
        },
        USDC: {
          direction: 'buy',
          ticker: 'BTCUSDC,
        },
      },
    },
    EUR: {
      fromCurrency: {
        USDT: {
          direction: 'sell',
          ticker: 'USDTEUR,
        },
        USDC: {
          direction: 'sell',
          ticker: 'USDCEUR,
        },
        BTC: {
          direction: 'sell',
          ticker: 'BTCEUR,
        },
        ETH: {
          direction: 'sell',
          ticker: 'ETHEUR,
        },
        BUSD: {
          direction: 'buy',
          ticker: 'BUSDEUR,
        },
        BNB: {
          direction: 'sell',
          ticker: 'BNBEUR',
        },
      },
    },
    USDT: {
      fromCurrency: {
        EUR: {
          direction: 'buy',
          ticker: 'USDTEUR,
        },
        USDC: {
          direction: 'sell',
          ticker: 'USDCUSDT,
        },
        BTC: {
          direction: 'sell',
          ticker: 'BTCUSDT,
        },
      },
    },
    USDC: {
      fromCurrency: {
        USDT: {
          direction: 'buy',
          ticker: 'USDCUSDT,
        },
        EUR: {
          direction: 'buy',
          ticker: 'USDCEUR,
        },
        BTC: {
          direction: 'sell',
          ticker: 'BTCUSDC,
        },
      },
    },
    ETH: {
      fromCurrency: {
        EUR: {
          direction: 'buy',
          ticker: 'ETHEUR,
        },
      },
    },
    BUSD: {
      fromCurrency: {
        EUR: {
          direction: 'sell',
          ticker: 'BUSDEUR,
        },
      },
    },
    BNB: {
      fromCurrency: {
        EUR: {
          direction: 'buy',
          ticker: 'BNBEUR',
        },
      },
    },