Building on Dreamcash

Building on Dreamcash refers to any integration that interacts with the Hyperliquid API and includes the Dreamcash builder code. This covers custom trading interfaces, bots, and third-party applications.

You'll need this builder address before continuing:

0x4950994884602d1b6c6d96e4fe30f58205c39395

1. Prerequisites

Before starting, make sure:

  • You have a Hyperliquid account
  • You have already funded it with a small amount of USDC
  • You have the Dreamcash app installed

2. Connect Dreamcash to Hyperliquid

  1. 1Create and fund your Hyperliquid account
  2. 2Go to https://dreamcash.xyz/connect
  3. 3Open the Dreamcash app
  4. 4Import the same wallet used for Hyperliquid

Once connected, Dreamcash will recognize and associate your Hyperliquid trading account.

3. API Endpoint

All trading requests are sent to:

http
POST https://api.hyperliquid.xyz/exchange

Required header:

http
Content-Type: application/json

4. Order Request Schema

A valid order request structure including the required Dreamcash builder block:

json
{
  "action": {
    "type": "order",
    "grouping": "na",
    "orders": [
      {
        "a": 0,
        "b": true,
        "p": "99140",
        "s": "0.00021",
        "r": false,
        "t": {
          "limit": {
            "tif": "Gtc"
          }
        },
        "c": "0x1234567890abcdef1234567890abcdef"
      }
    ],
    "builder": {
      "b": "0x4950994884602d1b6c6d96e4fe30f58205c39395",
      "f": 0
    }
  },
  "nonce": 1764696986349,
  "expiresAfter": 1764697000496,
  "vaultAddress": null,
  "signature": {
    "r": "0xSIGNATURE_R",
    "s": "0xSIGNATURE_S",
    "v": 28
  }
}

Key Values

FieldPurpose
aAsset ID (example: 0 = BTC)
btrue = buy, false = sell
pPrice
sSize
t.limit.tifTime in force (Gtc, Alo, Ioc)
cOptional client order ID
builder.bDreamcash builder address
builder.fBuilder fee — 0 recommended
nonceMillisecond timestamp
signatureValid signature generated by your signing logic

Trading digital assets and derivatives involves significant risk and may result in the loss of your capital. Nothing on this website or in the Dreamcash Application constitutes financial, investment, or trading advice, and users are solely responsible for their decisions. Market data and platform availability are not guaranteed and may be subject to delays or interruptions. This service is not available in all jurisdictions, and users are responsible for complying with applicable laws and the exclusions set forth in the Terms of Use. This website is not directed at, and the Dreamcash Application is not available to, residents of the United Kingdom pursuant to the FCA's financial promotion rules for cryptoassets. This application is not affiliated with or endorsed by Hyperliquid, and trading via Hyperliquid is at the user's own risk. Please review our Terms of Use and Privacy Policy for more information.