Skip to content

Instantly share code, notes, and snippets.

@SlowestTimelord
Created April 30, 2026 01:44
Show Gist options
  • Select an option

  • Save SlowestTimelord/1c0893696b6a0208175ebf8c97b50f61 to your computer and use it in GitHub Desktop.

Select an option

Save SlowestTimelord/1c0893696b6a0208175ebf8c97b50f61 to your computer and use it in GitHub Desktop.
dexie Websocket Streaming API doc

wss://api.dexie.space/v1/stream

Event Type Content Notes
status Current block height, tx fees and dexie full node sync status Emitted every block.
offer Full offer object Every offer that changes its status is emitted immediately. Use the status field to determine the reason, e.g. status 0 means new offer.
market Full market object Containts stats for each liquidity depth level. Emitted for every market update.

Stream Examples

Status Event:
{
  "type": "status",
  "data": {
    "height": 6370933,
    "synced": true,
    "fees": {
      "min": 0.000008,
      "recommended": 0.000396602,
      "fpc": 0.9915046876744802,
      "min_fpc": 0,
      "level": 1
    },
    "mempool_size": 4,
    "app_version": "e43fae42",
    "date": "2024-12-19T13:56:49.513Z"
  }
}
Offer Event:
{
  "type": "offer",
  "data": {
    "id": "3V77SGaRVqEfAwKofpDMw2riUCVsr4Au5itLBu7XqBxk",
    "status": 0,
    "offer": "offer1qqr83wcuu2rykcmqvpsxygqq56eremxsa8we6g4ugyhn0jpgj97kalnjedvh9aewljx2a23m0gklq8jvrk7f6wj6lw8adl4rkhlk3mflttacl4h7lur64as8zlhqhn8h04883476dz7x6mny6jzdcga33n4s8n884cxcekcemz6mk3jk4v925myecmq583l7dnms6tjfp3lk9uvsu02avqamakqdju4k5nqwvf7dntpdp2nzk3z5z38hnugj9vaq9nnt5lakkn6rx3wnxz9j2xac32u88es7tvjl8za02exnla0gu2t72sp99unf6a92mre4n2nylkaj70caudd7hp990xja6he65see3tph2muj4adlgh593jcpyg2g9tru0pjr9k6lmyywda0xj0h3st8zt9ed5ct7r03cal78njuhjx8e0lzlxjnv40vdcu0xat57m22nnhlyglhqjdha6xell08zghj02xemnnpkmahnqvzgxt7h6uqrk5vn88yha2qsmhksxtzhfgcgmwhgd3gzthrrl2l2xj86mayel666c4e9f8gylc9vajm29eqr49rlgxey32weu26yensajcgr6c9rdu9llhlst4d88pthlkhchn5uprytnamm7wlrwz7zue9lasmlrqhrjfhla3dvmt4sg4rg7dlcr4mw5ulhlu48a6ltr7gc3vqllnj8aa6xuehw8xf0g6k9keujvecdy7q45rxxluteehmlaakcenaz0wmdchc4w600dhj7vfjn477jkwz369l88jll73l37tel7m2zqeeeuw3sgp2zln7u7m5ddx7spu9jcrnu3zuara0yavjwmz03fwtfj88a7tantje65unllk7c9cjle8kpqq8dxttxxymged5xq2kjjstu549anjm0lj2pxj7glqn9p0mdj269flwhu6zx597devyhcmwh5ahymk7gym4u0yruspna9fxkwnmk64en4udz00ptnju23f88ec6y80gmza8tdv4anl9p42m599l7hndqvhkahn4vl9amj9sqzjscksqnssfqz",
    "involved_coins": [
      "0x24e5942e366a73905a90efe58969101e6db58b120289bbf9ac7c7883677ccb32",
      "0xce0d6447cbaa303941648bbe5c425dac6c8ad7f13ab5703f897e4757e0cefd1f"
    ],
    "date_found": "2024-12-19T11:44:26.714Z",
    "date_completed": null,
    "date_pending": null,
    "date_expiry": null,
    "block_expiry": null,
    "spent_block_index": null,
    "price": 15750,
    "offered": [
      {
        "id": "xch",
        "code": "XCH",
        "name": "Chia",
        "amount": 20
      }
    ],
    "requested": [
      {
        "id": "a628c1c2c6fcb74d53746157e438e108eab5c0bb3e5c80ff9b1910b3e4832913",
        "code": "SBX",
        "name": "Spacebucks",
        "amount": 315000
      }
    ],
    "fees": 0,
    "mempool": null,
    "related_offers": [],
    "mod_version": 2,
    "trade_id": "0x58f1d343a7f42b1d30f2354792511835033d45c9ebac998cb168e2e7115aec85",
    "known_taker": null,
    "input_coins": {
      "xch": [
        {
          "id": "0x24e5942e366a73905a90efe58969101e6db58b120289bbf9ac7c7883677ccb32",
          "amount": 27500640000000,
          "puzzle_hash": "0x18b678b388ccd5cbb7659542fc59f00e1f85bd5f9bdc920d4915369d033cf7d8",
          "parent_coin_info": "0xe1c49306fd1d5803af3793dc30a20ca4cb409f8601b8ffc6430b0c010ffa5f0d"
        }
      ]
    },
    "output_coins": {
      "0xa628c1c2c6fcb74d53746157e438e108eab5c0bb3e5c80ff9b1910b3e4832913": [
        {
          "id": "0xce0d6447cbaa303941648bbe5c425dac6c8ad7f13ab5703f897e4757e0cefd1f",
          "amount": 315000000,
          "puzzle_hash": "0xee30c04a418a6bdc9b9e3a720253d13052442eedd548c60f9db9a9cfbb97e277",
          "parent_coin_info": "0x0000000000000000000000000000000000000000000000000000000000000000",
          "inner_puzzle_hash": "0xe892c94278bcf31a74afeef4f9415f857e131b0d1b47e940670034af3324f51a"
        }
      ]
    }
  }
}
Market Event:
{
  "type": "market",
  "data": {
    "id": "e816ee18ce2337c4128449bc539fbbe2ecfdd2098c4e7cab4667e223c3bdc23d",
    "code": "HOA",
    "name": "HOA COIN",
    "prices": {
      "buy": [
        {
          "depth": 0,
          "price": 0.0001875,
          "change": {
            "daily": -0.07967931937172777,
            "weekly": -0.05181250000000003,
            "monthly": -0.415,
            "yearly": 17.75
          }
        },
        {
          "depth": 1,
          "price": 0.00019165582303188027,
          "change": {
            "daily": -0.05928097333828405,
            "weekly": -0.030940244795055354,
            "monthly": -0.40203383214053356,
            "yearly": 18.165582303188025
          }
        },
        {
          "depth": 5,
          "price": 0.00019165582303188027,
          "change": {
            "daily": -0.05928097333828405,
            "weekly": -0.030940244795055354,
            "monthly": -0.4025798187962032,
            "yearly": 18.165582303188025
          }
        },
        {
          "depth": 10,
          "price": 0.00019165582303188027,
          "change": {
            "daily": -0.060049911565079696,
            "weekly": -0.031104426020328084,
            "monthly": -0.41135769027946534,
            "yearly": 18.165582303188025
          }
        },
        {
          "depth": 25,
          "price": 0.00019874710659867172,
          "change": {
            "daily": -0.025271669452321267,
            "weekly": 0.0008024765623595455,
            "monthly": -0.41170453732786894,
            "yearly": 18.87471065986717
          }
        },
        {
          "depth": 50,
          "price": 0.0002138001829570539,
          "change": {
            "daily": -0.049512148714215554,
            "weekly": 0.07572012630798583,
            "monthly": -0.4559630117696966,
            "yearly": null
          }
        },
        {
          "depth": 100,
          "price": 0.00029613771779855223,
          "change": {
            "daily": -0.05470072146037414,
            "weekly": 0.4094224995302593,
            "monthly": -0.4374751372611755,
            "yearly": null
          }
        }
      ],
      "sell": [
        {
          "depth": 0,
          "price": 0.0001791277258566978,
          "change": {
            "daily": -0.025545171339563914,
            "weekly": 0.03535825545171336,
            "monthly": -0.3961662144508091,
            "yearly": 19.471740097908324
          }
        },
        {
          "depth": 1,
          "price": 0.00017457655542512158,
          "change": {
            "daily": -0.04948884789535471,
            "weekly": 0.009738326824944226,
            "monthly": -0.41150806316370314,
            "yearly": 19.94918665101459
          }
        },
        {
          "depth": 5,
          "price": 0.0001732782606201417,
          "change": {
            "daily": -0.03827411565326449,
            "weekly": 0.021990065912189945,
            "monthly": -0.4022463190202849,
            "yearly": 22.103768082685562
          }
        },
        {
          "depth": 10,
          "price": 0.0001732782606201417,
          "change": {
            "daily": -0.03277900277611417,
            "weekly": 0.04566884064703577,
            "monthly": -0.40190035196830576,
            "yearly": 81.38470766519816
          }
        },
        {
          "depth": 25,
          "price": 0.00017325273585678028,
          "change": {
            "daily": -0.020521322353103544,
            "weekly": 0.0693852409862016,
            "monthly": -0.3959419736263456,
            "yearly": 157.22671892952485
          }
        },
        {
          "depth": 50,
          "price": 0.0001714185279325077,
          "change": {
            "daily": -0.016092337182053548,
            "weekly": 0.06725165448221804,
            "monthly": -0.3942754771412767,
            "yearly": 155.55158981680424
          }
        },
        {
          "depth": 100,
          "price": 0.00017000117198845676,
          "change": {
            "daily": -0.014151682961100887,
            "weekly": 0.24885699107432854,
            "monthly": -0.3494752132939083,
            "yearly": null
          }
        }
      ],
      "high": {
        "daily": 0.0002105263157894737
      },
      "low": {
        "daily": 0.0001787709497206704
      },
      "last": {
        "price": 0.000183534347142108,
        "date": "2024-12-19T11:26:42.000Z",
        "change": {
          "daily": -0.0347246984792869,
          "weekly": 0.06404254434161935,
          "monthly": -0.3912781934585551,
          "yearly": 17.634449731869562
        }
      },
      "avg": [
        {
          "depth": 0,
          "price": 0.0001833138629283489,
          "change": {
            "daily": -0.05400275133862278,
            "weekly": -0.01113495913820121,
            "monthly": -0.40594720336786727,
            "yearly": 18.553478712357215
          }
        },
        {
          "depth": 1,
          "price": 0.0001831161892285009,
          "change": {
            "daily": -0.05463852763208029,
            "weekly": -0.011966292807240781,
            "monthly": -0.4065877911136026,
            "yearly": 18.976311552200098
          }
        },
        {
          "depth": 5,
          "price": 0.00018246704182601098,
          "change": {
            "daily": -0.04942210304620243,
            "weekly": -0.006508667577000188,
            "monthly": -0.4024215126069158,
            "yearly": 19.85337620868697
          }
        },
        {
          "depth": 10,
          "price": 0.00018246704182601098,
          "change": {
            "daily": -0.04729546018989074,
            "weekly": 0.00389273513851538,
            "monthly": -0.40690472307462844,
            "yearly": 29.151663662452727
          }
        },
        {
          "depth": 25,
          "price": 0.000185999921227726,
          "change": {
            "daily": -0.023065019916192135,
            "weekly": 0.03161562363757641,
            "monthly": -0.404466990621031,
            "yearly": 32.52870774675428
          }
        },
        {
          "depth": 50,
          "price": 0.0001926093554447808,
          "change": {
            "daily": -0.03492531729381448,
            "weekly": 0.07193520258700661,
            "monthly": -0.4301378869596465,
            "yearly": null
          }
        },
        {
          "depth": 100,
          "price": 0.0002330694448935045,
          "change": {
            "daily": -0.040304769939400055,
            "weekly": 0.3462953092051688,
            "monthly": -0.40828277514133177,
            "yearly": null
          }
        }
      ]
    },
    "incentives": true,
    "liquidity": {
      "ask": [
        0.075,
        0.075,
        18.2739128,
        46.409912800000015
      ],
      "bid": [
        0.69,
        0.69,
        75.34400000000001,
        129.480602210737
      ]
    },
    "pair_id": "xch",
    "total_offered": {
      "xch": 207.391623022067,
      "e816ee18ce2337c4128449bc539fbbe2ecfdd2098c4e7cab4667e223c3bdc23d": 597592.129
    },
    "volume": {
      "xch": {
        "daily": 12.383792496984,
        "weekly": 183.731089387176,
        "monthly": 1498.775310130929,
        "yearly": 17787.871873296666
      },
      "e816ee18ce2337c4128449bc539fbbe2ecfdd2098c4e7cab4667e223c3bdc23d": {
        "daily": 66162.543,
        "weekly": 949740.162,
        "monthly": 7065883.867,
        "yearly": 109313509.558
      }
    }
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment