API reference · History

List ledger entries

GET/v1/transactions

Every balance change, newest first. from and to may be at most 366 days apart.

Rate-limit class
read
Authentication
Signed

Parameters

  • assetstringqueryoptional

    An upper-case asset symbol.

    Matches ^[A-Z0-9]{1,15}$. Example: BTC.

  • typestring (enum)queryoptional

    One of trade, deposit, withdrawal, fee, gift, giftcode, referral_bonus, loan, hold, other.

  • fromstring (date-time)queryoptional
  • tostring (date-time)queryoptional
  • langstring (enum)queryoptional

    Label language. Default en.

    One of en, is.

  • limitintegerqueryoptional

    Page size, 1 to 100. Default 50.

    1 to 100.

  • cursorstringqueryoptional

    next_cursor from the previous page.

    Matches ^[A-Za-z0-9._~=+/-]{1,512}$.

Responses

200 OK

A page of ledger entries. application/json · TransactionList

  • dataarray of Transaction
    6 properties of each item
    • idstring

      Starts with tx_.

    • typestring (enum)

      One of trade, deposit, withdrawal, fee, gift, giftcode, referral_bonus, loan, hold, other.

    • actionstring
    • labelstring
    • changesarray of object
      3 properties of each item
      • assetstring

        An upper-case asset symbol.

        Matches ^[A-Z0-9]{1,15}$.

      • amountstring (decimal)
      • balance_afterstring (decimal)
    • created_atstring (date-time)
  • next_cursorstringnullable

    Pass as cursor for the next page; null at the end.

    0 to 1024 characters.

Every response carries MK-Request-Id, plus RateLimit-Policy and RateLimit.

Errors

Errors use the error envelope. Match on code.

StatusCodeMeaning
400invalid_requestThe request is malformed: bad JSON, an unknown or invalid field, or a missing header.
401invalid_signatureThe MK-* headers are missing or malformed, the key id is unknown, or the signature doesn't match.
401key_expiredThe key has passed its expiry date.
401key_revokedThe key was revoked.
401timestamp_out_of_rangeMK-Timestamp is more than 30 seconds from the server clock.
401nonce_reusedThis key already used this MK-Nonce.
403ip_not_allowedThe request came from an address outside the key's IP allowlist.
403insufficient_scopeThe key doesn't have the scope this endpoint needs.
403account_restrictedThe account can't use the API right now (for example locked, inactive, or onboarding not finished).
403api_access_disabledAPI access is switched off.
429rate_limitedToo many requests. Wait for Retry-After seconds.
429too_many_concurrent_requestsToo many requests in flight for this key or account.
429key_suspendedThe key is suspended, for example after sustained rate limiting.
500internal_errorSomething went wrong on our side.
502bad_gatewayAn upstream service answered unexpectedly.
503overloadedThe service is overloaded. Retry after Retry-After seconds.
503service_unavailableThe service is temporarily unavailable.
504gateway_timeoutAn upstream service didn't answer in time. A POST may still complete; retry with the same Idempotency-Key.

Request

# Signed by sign-headers.sh: see Authentication
curl "https://public-api.myntkaup.is/v1/transactions?type=trade&limit=20" \
  $(./sign-headers.sh GET "/v1/transactions?type=trade&limit=20" | sed 's/^/-H /')
import { Myntkaup } from "@myntkaup/api";

const client = new Myntkaup(); // reads the key from the environment
for await (const entry of client.transactions.listAll({ type: "trade" })) {
  console.log(entry.created_at, entry.label, entry.changes);
}
from myntkaup import Myntkaup

client = Myntkaup()  # reads the key from the environment
for entry in client.transactions.list_all(type="trade"):
    print(entry["created_at"], entry["label"], entry["changes"])

Response

200 OK
{
  "data": [
    {
      "id": "tx_01JB8X2Q4M7Z3V9K5T1N6R0P2W",
      "type": "trade",
      "action": "buy-btc-usdc",
      "label": "Buy BTC",
      "changes": [
        {
          "asset": "USDC",
          "amount": "-100.00",
          "balance_after": "900.00"
        },
        {
          "asset": "BTC",
          "amount": "0.00104210",
          "balance_after": "0.00104210"
        }
      ],
      "created_at": "2026-11-03T10:15:10Z"
    }
  ],
  "next_cursor": "eyJpZCI6IjY3MjdhMWMzIn0"
}

Base URL https://public-api.myntkaup.is