Traders: Counterparty Due Diligence & Risk Monitoring

See who a counterparty moves money with, how big each relationship is, and whether any of it traces back to a flagged source.

The Goal

Before you trade with a counterparty, check what their wallets say about them. A counterparty can tell you whatever they like, but their on-chain activity is public and cannot be hidden.

One call lists everyone they have moved money with. Two risk screens then score those wallets and the businesses behind them, and one more call shows the route behind any score. Run it once before you open a line, then on a schedule to catch a relationship that becomes risky.

Risk Scoring is an add-on
POST /risk/address/batch, POST /risk/entity/batch and GET /risk/address/{address}/paths need Risk Scoring enabled on your subscription. See Risk Scoring. Step 1 works without it.

Endpoints Used

EndpointWhat it gives youCredits
GET /counterparties/entity/{entity}Everyone they moved money with, sized by USD50 per call
POST /risk/address/batchA risk level and a flagged-source flag for up to 200 wallets5 per row
POST /risk/entity/batchThe same for up to 200 named entities, such as exchanges5 per row
GET /risk/address/{address}/pathsThe hop-by-hop route from one wallet back to the flagged source20 per call

GET /counterparties/address/{address} does the same as the entity form for a single wallet, at the same cost.

Step 1: List their counterparties

Ask who they moved money with over a window. This example uses cumberland, an OTC desk. Find an entity ID with GET /intelligence/search, as shown in Inflow & Outflow Monitoring. timeLast=90d covers the last quarter.

Requestbash
curl "https://api.arkm.com/counterparties/entity/cumberland?timeLast=90d&limit=200" \
  -H "API-Key: YOUR_API_KEY"
Responsejson
{
  "ethereum": [
    {
      "address": {
        "address": "0xaA8ba7D4611437141192e7ceCed531Bc0A133efb",
        "arkhamEntity": { "id": "kraken", "name": "Kraken", "type": "cex" },
        "arkhamLabel": { "name": "Hot Wallet" }
      },
      "usd": 151176731.03, "transactionCount": 49, "flow": "in", "chains": ["ethereum"]
    },
    {
      "address": {
        "address": "0xaE0E8770147AaA6828a0D6f642504663F10F7d1E",
        "contract": false
      },
      "usd": 17193058.85, "transactionCount": 2, "flow": "in", "chains": ["ethereum"]
    },
    {
      "address": {
        "address": "0xeB4B30eCBf7B77334fFB3838Ab59c67b561D3079",
        "arkhamLabel": { "name": "OSL (BC Group) Deposit" },
        "predictedEntity": { "id": "cumberland", "name": "Cumberland DRW", "type": "fund" }
      },
      "usd": 72290765.26, "transactionCount": 80, "flow": "out", "chains": ["ethereum"]
    }
  ]
}
  • Results are grouped by chain. One wallet is one row, so an exchange with several hot wallets appears several times. Add rows up by arkhamEntity.id to see the whole relationship.
  • arkhamEntity is a confirmed name. predictedEntity is Arkham's best guess. arkhamLabel describes the wallet's role, such as Hot Wallet. A row with none of these, like the second one, is a wallet Arkham has not named.
  • A row whose arkhamEntity or predictedEntity is the subject itself is their own account at a venue, like the OSL deposit address above. Skip those. Cumberland has 12 of them in this list.
  • usd and transactionCount cover only the window. flow says who sent to whom: in means they sent to your subject, out means the subject sent to them, all means both.
  • limit defaults to 20 across all chains, which is only the top of the list. Raise it, up to 1000. The endpoint is limited to one call per second.

Keep every address.address that is not the subject's own. That is the list for Step 2.

Step 2: Score the wallets

Send the addresses from Step 1 to the risk batch endpoint, up to 200 per call. The two below are the Kraken hot wallet and the unnamed wallet from Step 1.

Requestbash
curl -X POST "https://api.arkm.com/risk/address/batch" \
  -H "API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"addresses": ["0xaA8ba7D4611437141192e7ceCed531Bc0A133efb", "0xaE0E8770147AaA6828a0D6f642504663F10F7d1E"]}'
Responsejson
{
  "0xaA8ba7D4611437141192e7ceCed531Bc0A133efb": {
    "address": "0xaA8ba7D4611437141192e7ceCed531Bc0A133efb",
    "risk_level": "NONE",
    "is_seed": false
  },
  "0xaE0E8770147AaA6828a0D6f642504663F10F7d1E": {
    "address": "0xaE0E8770147AaA6828a0D6f642504663F10F7d1E",
    "risk_level": "LOW",
    "is_seed": false,
    "hop_distance": 1,
    "greatest_risk_category": "sanctions",
    "sanctions_score": 25,
    "mixed_kyc_service_score": 14,
    "max_score": 25,
    "risk_weighted_incoming_usd": 4948235.19,
    "top_sources": [
      { "seed_address": "0xf66852bC122fD40bFECc63CD48217E88bda12109", "risk_category": "sanctions", "direction": "forward", "hop_distance": 1, "contribution_usd": 3897085.37, "contribution_pct": 50.80, "first_ts": "2020-11-18T00:00:00Z", "last_ts": "2022-11-07T00:00:00Z" },
      { "seed_address": "0xaB5C66752a9e8167967685F1450532fB96d5d24f", "risk_category": "sanctions", "direction": "forward", "hop_distance": 1, "contribution_usd": 549985.46, "contribution_pct": 7.17, "first_ts": "2021-05-17T00:00:00Z", "last_ts": "2021-11-12T00:00:00Z" }
    ]
  }
}
  • risk_level is NONE, LOW, MEDIUM, HIGH, or SEVERE. NONE is the common case and comes back with only two fields. It means no traced exposure was found, not that the wallet is proven clean.
  • is_seed: true means the wallet is itself a flagged source, not just near one. Neither wallet here is a source.
  • hop_distance is how many transfers separate the wallet from the nearest source. 1 means it received money directly from one. greatest_risk_category says what kind of source.
  • top_sources lists the sources behind the score, biggest first. contribution_usd is how much traced money came from that source, and first_ts and last_ts say when. Here the largest source sent $3.9M between 2020 and 2022.
  • Scores cover all history, not just your window.

A short script joins Steps 1 and 2 and prints only the counterparties with something to look at.

Example scriptpython
import requests

API_KEY = "YOUR_API_KEY"
ENTITY = "cumberland"
headers = {"API-Key": API_KEY}

resp = requests.get(f"https://api.arkm.com/counterparties/entity/{ENTITY}",
                    params={"timeLast": "90d", "limit": 200}, headers=headers)
resp.raise_for_status()
rows = [row for chain_rows in resp.json().values() for row in chain_rows]
def own(a):  # the subject's own wallets and deposit addresses
    return (a.get("arkhamEntity") or a.get("predictedEntity") or {}).get("id") == ENTITY
rows = [row for row in rows if not own(row["address"])]
scores = requests.post("https://api.arkm.com/risk/address/batch", headers=headers,
                       json={"addresses": [row["address"]["address"] for row in rows][:200]}).json()
print(f"{len(rows)} counterparties screened")
for row in sorted(rows, key=lambda r: -r["usd"]):
    addr = row["address"]
    score = scores.get(addr["address"], {})
    if score.get("risk_level", "NONE") == "NONE" and not score.get("is_seed"):
        continue
    name = (addr.get("arkhamEntity") or addr.get("arkhamLabel") or {}).get("name") or addr["address"]
    print(f"{name[:42]:42} ${row['usd'] / 1e6:5,.1f}M {row['flow']:4} {score['risk_level']:6} "
          f"seed={score.get('is_seed')} hops={score.get('hop_distance')}")
Outputtext
188 counterparties screened
0xaE0E8770147AaA6828a0D6f642504663F10F7d1E $ 17.2M in   LOW    seed=False hops=1
0xB51Bf9029d778899d42e96ebCdc0498bd061006d $  9.2M in   LOW    seed=False hops=4
0x29b1DB945103DA2313bd83827B00a9eBFe266f3a $  6.0M in   LOW    seed=False hops=2
0xc9F9F694Ae147b1333c4f53266c5ccd5c6E4c04f $  4.0M in   LOW    seed=False hops=2

184 of the 188 counterparties scored NONE. That is what a reputable desk looks like. The four rows above are the ones to read further, and the first one, with the largest amount and the shortest distance to a source, is the one to trace in Step 3.

Two more points about venues before you trace anything:

  • Exchange hot wallets usually score NONE on their own, as Kraken's did above. Exposure shows up on the exchange as a whole. POST /risk/entity/batch with the arkhamEntity.id values from Step 1 returns an entity_risk for each venue, and it describes the venue's whole customer base, not what your counterparty did there. A big exchange at LOW or MEDIUM is normal.
  • HIGH on a venue your counterparty uses is worth noting in the file, but it is about the venue. OSL, an OTC desk Cumberland uses, scores HIGH for sanctions with 1,408 exposed addresses and no seeds. Your counterparty's own exposure is still the Step 2 result.

Step 3: Trace the flagged wallet

For the wallet that scored in Step 2, ask for the routes back to the source.

Requestbash
curl "https://api.arkm.com/risk/address/0xaE0E8770147AaA6828a0D6f642504663F10F7d1E/paths" \
  -H "API-Key: YOUR_API_KEY"
Responsejson
{
  "address": "0xaE0E8770147AaA6828a0D6f642504663F10F7d1E",
  "paths": [
    {
      "seed_address": "0xf66852bC122fD40bFECc63CD48217E88bda12109",
      "risk_category": "sanctions",
      "direction": "forward",
      "hop_distance": 1,
      "contribution_usd": 3897085.37,
      "path_nodes": [
        { "address": "0xf66852bC122fD40bFECc63CD48217E88bda12109", "hop_distance": 0 },
        { "address": "0xaE0E8770147AaA6828a0D6f642504663F10F7d1E", "hop_distance": 1 }
      ]
    },
    {
      "seed_address": "0x6748F50f686bfbcA6Fe8ad62b22228b87F31ff2b",
      "risk_category": "sanctions",
      "direction": "forward",
      "hop_distance": 3,
      "contribution_usd": 84656.14,
      "path_nodes": [
        { "address": "0x6748F50f686bfbcA6Fe8ad62b22228b87F31ff2b", "hop_distance": 0 },
        { "address": "0x0708F87A089a91C65d48721Aa941084648562287", "hop_distance": 1 },
        { "address": "0x28846f1Ec065eEa239152213373bb58B1C9Fc93B", "hop_distance": 2 },
        { "address": "0xaE0E8770147AaA6828a0D6f642504663F10F7d1E", "hop_distance": 3 }
      ]
    }
  ]
}
  • Up to ten routes come back, biggest contribution_usd first. path_nodes lists the wallets from the source to yours, one per hop.
  • direction: forward means the source sent toward this wallet. backward means this wallet sent toward the source.
  • Look up seed_address with GET /intelligence/address/{address} to see what it is. Here it is an HTX hot wallet, which Arkham flags as a sanctions source. So this wallet received $3.9M directly from HTX, in 2020 to 2022, and then sent Cumberland $17.2M this quarter.
  • contribution_usd is traced over all time. It is not a slice of the window's usd from Step 1.

Reading the results

Put the four steps together into one row per counterparty that scored. For Cumberland this quarter:

CounterpartySent / receivedLevelDistanceSourceWhen
0xaE0E...7d1E (unnamed)$17.2M inLOW1 hopHTX hot wallet, $3.9M2020 to 2022
0xB51B...006d (unnamed)$9.2M inLOW4 hops
0x29b1...6f3a (predicted B2C2)$6.0M inLOW2 hops
0xc9F9...c04f (unnamed)$4.0M inLOW2 hops
  • Most rows score NONE, and that is normal. For a reputable desk, expect a handful of LOW rows and nothing above. A MEDIUM or higher on a named party, or any is_seed: true, is the result to escalate.
  • Distance and date matter as much as the level. One hop from a source with recent dates is direct dealing. Three hops and money from years ago is background exposure.
  • Venues are context, not findings. A HIGH on an exchange came from its customers. Your counterparty's own dealings with that exchange are already covered by its Step 2 rows.
  • State the window. A 90 day read returns fewer counterparties than a full year. Say which window your numbers came from.
  • Compare runs. Save the table and diff it next time. A new name, a level that changed, or a relationship that stopped is what to look for.
  • A busy subject may not return. A large exchange or DEX over a long window can fail. Shorten timeLast and try again.

Try an Example

Look through an example dashboard: Counterparty Due Diligence & Risk Monitoring Dashboard

Next Steps