{
  "openapi": "3.1.0",
  "info": {
    "title": "LocalCoinSwap Exchange API",
    "version": "2",
    "description": "\n# Introduction\nUse this API to search offers, manage your own offers, run trades and their\nchat, and use your LocalCoinSwap wallet, with an API key instead of the\nwebsite.\n\nAll trading is non-custodial: escrow is funded and released from your own\nwallet, so trade actions need your signatures (see \"Signing trades\").\nSupported coins are listed at `/api/v2/currencies/active-cryptos/`.\n\nEvery operation has curl, Python and JavaScript samples. They read your key\nfrom the `LCS_API_KEY` environment variable, so you can run them as they\nare. The whole spec is at\n[`/openapi.json`](https://localcoinswap.com/openapi.json) for client\ngenerators; for coding agents, see \"Coding agents\".\n\nWe try to keep changes backwards compatible, but the API can change at short\nnotice. Questions, or a use case the API doesn't cover: email\n[dev@localcoinswap.com](mailto:dev@localcoinswap.com).\n\n# Authentication\n\nAPI calls use an API key, not your website login token. A key does not expire\nwhen you log out, and it is not deleted with old login sessions. You can have\nup to five active keys.\n\n1. How to create an API key:\n    - Register on [LocalCoinSwap](https://localcoinswap.com/register/)\n    - Turn on the authenticator app under [Security](https://localcoinswap.com/preferences/security)\n    - Open [Preferences \u2192 API](https://localcoinswap.com/preferences/api-token)\n    - Enter a name, choose the key's access, and enter the 6-digit authenticator\n      code, then click **Create key**\n    - Copy the secret immediately. It is shown once and looks like `lcs_<prefix>_<secret>`\n2. Send that secret on every request in the `Authorization` header:\n```HTTP\nAuthorization: ApiKey lcs_a1b2c3d4_your_secret\n```\n   Keep it in an environment variable rather than in code. The samples use\n   `LCS_API_KEY`:\n```bash\nexport LCS_API_KEY=\"lcs_a1b2c3d4_your_secret\"\ncurl https://api.localcoinswap.com/api/v2/trades/list/ \\\n  --header \"Authorization: ApiKey $LCS_API_KEY\"\n```\n3. A missing or invalid key returns HTTP 401:\n```HTTP\nWWW-Authenticate: ApiKey\n```\n```json\n{\n    \"message\": \"Authentication credentials were not provided.\",\n    \"code\": \"not_authenticated\",\n    \"error\": true\n}\n```\n\nEach key has scopes that limit what it can do:\n\n| Scope | Allows |\n|-------|--------|\n| `read` | `GET` requests outside the wallet endpoints. Every key has it. |\n| `trade` | Writes: offers, trades, chat, feedback, notifications. |\n| `wallet` | Wallet endpoints: sign and broadcast transactions, read encrypted keys, set referral payouts. |\n\nThe wallet endpoints are everything under `/api/v2/wallets/`,\n`/api/v2/legacy-wallets/`, `/api/v2/eth-push-tx/`, `/api/v2/trade-utxos/` and\n`/api/v2/profile/encrypted-blob/`, plus `PATCH /api/v2/referrals/overview/`\n(it sets where referral payouts go). Wallet balances and the referral\noverview only need `read`.\n\nA request outside the key's scopes returns HTTP 403 with code `api_key_scope`.\nKeys created before scopes existed have all three.\n\nWithin its scopes, an API key can call the same endpoints as a logged-in user,\nexcept account security. Password changes, email changes, MFA, creating or\nrevoking keys, setting or resetting the wallet PIN, and resetting wallets\nrequire the website session. API-key traffic is limited to 60 requests per\nminute per account, in addition to any limit on the endpoint itself.\n\nRevoke a key from the same API page when you no longer use it. The list shows when each key was last used.\n\n# Rate limits\n\n- API keys: 60 requests per minute per account, shared by all of the\n  account's keys.\n- Calls without a key (public endpoints): 120 requests per minute per IP.\n- Some endpoints have a lower limit of their own, shown on the endpoint as\n  **Rate limit** and in its `x-rateLimit` extension. For example, trade\n  status allows 2 requests per minute, and wallet balance and wallet reads\n  share 30 per minute across all coins.\n\nOver a limit, the API returns HTTP 429 with code `throttled` and a\n`Retry-After` header in seconds.\n\n# Errors\n\nErrors are JSON with `\"error\": true`.\n\n- 400 (invalid request): each failing field maps to a list of\n  `{message, code}`, and errors about the request as a whole are under\n  `non_field_errors`:\n```json\n{\n    \"fiat_amount\": [{\"message\": \"This field is required.\", \"code\": \"required\"}],\n    \"error\": true\n}\n```\n- Every other error has a readable `message` and a stable `code` to match\n  on (`detail` repeats the message):\n```json\n{\n    \"message\": \"This API key does not have the trade scope.\",\n    \"code\": \"api_key_scope\",\n    \"detail\": \"This API key does not have the trade scope.\",\n    \"error\": true\n}\n```\n\nMatch on `code`, not `message`; messages may be reworded or translated.\n\n# Signing trades\n\nTrades are non-custodial: the escrow is a smart contract, and moving funds\nin or out of it needs your signature. This covers the v2 escrow contracts\nfor ETH and ERC20 tokens (trades with `tx_meta.escrow_version` `\"v2\"`),\nBNB and BEP20 tokens, and TRC20 tokens. Sign with the private key of your\ntrade address: `seller_meta.address` if you're the seller,\n`buyer_meta.address` if you're the buyer.\n\n## Approval and escrow transactions\n\nThe seller funds the escrow with a transaction the API builds:\n\n1. Tokens only: PATCH the trade to `TRANSFER_APPROVED`. Sign\n   `tx_meta.approve_unsigned_tx` and PATCH `WAITING_FOR_MIN_APPROVE_CONFIRMS`\n   with it.\n2. PATCH `CRYPTO_ESC`. Sign `tx_meta.escrow_unsigned_tx` and PATCH\n   `WAITING_FOR_MIN_ESCROW_CONFIRMS` with it.\n\nTo sign one:\n\n- ETH, ERC20, BNB, BEP20: a legacy (EIP-155) transaction with `chainId`,\n  `to`, `value`, `gas` (the gas limit), `gasPrice`, `nonce` and `data`.\n  `value` and `gasPrice` are decimal strings in wei. Send the raw signed\n  transaction hex as `signed_txn`.\n- TRC20: sign `txID` (the SHA-256 of `raw_data`) with secp256k1. The\n  signature is `r`, `s` and the recovery id (0 or 1) as 65 bytes of hex,\n  without `0x`. Add it to the transaction's `signature` list, then send\n  the whole transaction object as `trx_signed_txn` and the signature as\n  `signed_txn`.\n\n## Release, cancel and dispute signatures\n\nReleasing the escrow, cancelling it and disputing are signed messages, not\ntransactions. LocalCoinSwap submits them to the contract. Every message\nstarts from `tx_meta.trade_hash`, which is set once the escrow is prepared.\n\n| Action | Who | Message | Sent as |\n| --- | --- | --- | --- |\n| Release to the buyer | Seller | relay, instruction `0x01` | `signed_relay_signature` with status `FUND_RECEIVED` |\n| Cancel after escrow | Buyer | relay, instruction `0x02` | `cancellation_signature` with status `CANCELLED` |\n| Dispute | Either | dispute | `extra_data` on `openDispute` |\n\nThe message hash is `keccak256` of the ABI-encoded values:\n\n- Relay (ETH, ERC20, BNB, BEP20): `abi.encode(uint256 2, uint256 chainId,\n  address escrow, bytes32 tradeHash, uint8 instruction, uint128\n  maxGasPrice, uint256 deadline)`.\n- Relay (TRC20): the same without `maxGasPrice`: `abi.encode(uint256 2,\n  uint256 chainId, address escrow, bytes32 tradeHash, uint8 instruction,\n  uint256 deadline)`.\n- Dispute (all of them): `abi.encode(uint256 3, uint256 chainId, address\n  escrow, bytes32 tradeHash, uint256 deadline)`.\n\nFor `deadline`, use `2^256 - 1` (no expiry). A dispute can use an earlier\ndeadline in unix seconds, but then add it to `extra_data` as\n`dispute_deadline`. Relays always use `2^256 - 1`.\n\nSign the hash as an Ethereum personal message (EIP-191, `\"\\x19Ethereum\nSigned Message:\\n32\"` + hash). This is what `eth_account`'s\n`encode_defunct(primitive=hash)` and ethers' `signMessage(arrayify(hash))`\ndo. TRC20 uses the same signature scheme. Send `{\"r\": \"0x\u2026\", \"s\": \"0x\u2026\",\n\"v\": 27}` (`v` is 27 or 28). `signed_relay_signature` and\n`cancellation_signature` take it as an object, and the dispute's\n`extra_data` takes it as a JSON string.\n\n| Coin | `chainId` | `escrow` | `maxGasPrice` (wei) |\n| --- | --- | --- | --- |\n| ETH | 1 | `0x3a362a1966FF5aAB35298E1565bDa2c9FB124e41` | 500000000000 |\n| ERC20 tokens | 1 | `0xCcB2718d633Ed28bDF0639134380e2f5B05162b5` | 500000000000 |\n| BNB | 56 | `0xD92b329584eF5485cb5719870f13F05E2eFbf055` | 5100000000 |\n| BEP20 tokens | 56 | `0x769b7deE146565F8C98682f6bdD4dF6DABa2F27e` | 5100000000 |\n| TRC20 tokens | 728126428 | `TX2diN6aM1Ym5GRQWvZWrXrxNDWyFD4WuZ` | none |\n\nFor TRC20, encode the escrow as its 20-byte address: the base58 address\ndecoded, without the leading `0x41`.\n\nIn Python, for an ETH release:\n```python\nfrom eth_abi import encode\nfrom eth_account import Account\nfrom eth_account.messages import encode_defunct\nfrom eth_utils import keccak, to_checksum_address\n\nMAX = 2**256 - 1\nmessage = keccak(encode(\n    [\"uint256\", \"uint256\", \"address\", \"bytes32\", \"uint8\", \"uint128\", \"uint256\"],\n    [2, 1, to_checksum_address(\"0x3a362a1966FF5aAB35298E1565bDa2c9FB124e41\"),\n     bytes.fromhex(trade[\"tx_meta\"][\"trade_hash\"].removeprefix(\"0x\")),\n     0x01, 500_000_000_000, MAX],\n))\nsigned = Account.sign_message(encode_defunct(primitive=message), private_key)\nsignature = {\"r\": f\"0x{signed.r:064x}\", \"s\": f\"0x{signed.s:064x}\", \"v\": signed.v}\n```\n\n# camelCase keys\n\nRequests and responses use snake_case keys. To send and receive camelCase\ninstead, add this header (or `?key_case=camel` while debugging):\n```HTTP\nX-Key-Case: camel\n```\n\n# Coding agents\n\nTo build against this API with a coding agent (Claude Code, Codex, Cursor\nand others), give it the reference, not your key:\n\n- [`/llms.txt`](https://localcoinswap.com/llms.txt) indexes the reference,\n  and [`/llms-full.txt`](https://localcoinswap.com/llms-full.txt) is all of\n  it as one Markdown file. [`/openapi.json`](https://localcoinswap.com/openapi.json)\n  is the spec.\n- Create a key with the narrowest scope the job needs: `read` to watch\n  offers and trades, `trade` to manage offers and run trades, `wallet` only\n  if the agent's code must sign or broadcast transactions.\n- Set `LCS_API_KEY` in the environment the agent's code runs in. Don't\n  paste the key into the chat, a prompt or a file the agent commits.\n\nAdd this to your project's `AGENTS.md` (or `CLAUDE.md`):\n```markdown\n## LocalCoinSwap API\n- Reference: https://localcoinswap.com/llms-full.txt\n  (OpenAPI spec: https://localcoinswap.com/openapi.json).\n- Base URL https://api.localcoinswap.com. Every request sends\n  `Authorization: ApiKey $LCS_API_KEY`.\n- Read the key from the `LCS_API_KEY` environment variable. Never print,\n  log or commit it, and never ask me to paste it.\n- A 403 with code `api_key_scope` means the key lacks a scope. Stop and tell\n  me; don't look for another way round.\n- Trades are non-custodial: funding, release, cancel and dispute are signed\n  with the trade address's private key (\"Signing trades\"). Ask me before\n  anything signs a transaction or moves funds.\n- Back off on 429 for `Retry-After` seconds. API keys share 60 requests a\n  minute per account.\n```\n",
    "termsOfService": "https://localcoinswap.com/terms-of-service",
    "contact": {
      "email": "dev@localcoinswap.com"
    }
  },
  "paths": {
    "/api/v2/currencies/{symbol}/": {
      "get": {
        "operationId": "getCurrency",
        "description": "Returns full detail of a currency by slug, for example `BTC` or\n`USDT-TRC20`. A symbol such as `ETH` or `USD` also works when only one\ncurrency has it. Symbols shared across chains, such as `USDT`, return\n400 with the matching slugs.\n\n**API key scope:** `read`",
        "summary": "Currency details.",
        "parameters": [
          {
            "in": "path",
            "name": "symbol",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "tags": [
          "Market data"
        ],
        "security": [
          {
            "ApiKey": []
          },
          {}
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CurrencyWithMeta"
                },
                "examples": {
                  "Response": {
                    "value": {
                      "id": 3,
                      "title": "LCS Cryptoshares",
                      "symbol": "LCS",
                      "symbol_filename": "lcs.svg",
                      "is_crypto": true,
                      "metadata": {
                        "banner_image": "/media/currency/start_trading_lcs.png",
                        "about": "Cryptoshares (LCS) are the native currency of the LocalCoinSwap platform",
                        "official_website": "https://localcoinswap.com/",
                        "initial_release": 1523750400,
                        "min_unit_name": "None",
                        "total_supply": 72732420,
                        "circulating_supply": 40211430,
                        "cmc_analytics": {
                          "id": 3,
                          "symbol": "LCS",
                          "usd_price": "0.0093986938",
                          "usd_market_cap": "492841.1945892310",
                          "usd_volume_24h": "8037.5140275405",
                          "percent_change_1h": "0.9349020000",
                          "percent_change_24h": "2.4310200000",
                          "percent_change_7d": "26.4646000000",
                          "usd_last_updated": 1597384689,
                          "last_updated": 1597384789
                        }
                      },
                      "slug": "lcs-cryptoshares-LCS"
                    }
                  }
                }
              }
            },
            "description": ""
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "curl --request GET 'https://api.localcoinswap.com/api/v2/currencies/LCS/' \\\n  --header \"Authorization: ApiKey $LCS_API_KEY\"\n"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import os\n\nimport requests\n\nresponse = requests.request(\n    \"GET\",\n    \"https://api.localcoinswap.com/api/v2/currencies/LCS/\",\n    headers={\"Authorization\": f\"ApiKey {os.environ['LCS_API_KEY']}\"},\n)\nprint(response.status_code, response.text)\n"
          },
          {
            "lang": "javascript",
            "label": "JavaScript",
            "source": "const response = await fetch(\"https://api.localcoinswap.com/api/v2/currencies/LCS/\", {\n  method: \"GET\",\n  headers: {\n    Authorization: `ApiKey ${process.env.LCS_API_KEY}`,\n  },\n});\nconsole.log(response.status, await response.text());\n"
          }
        ],
        "x-apiKeyScope": "read"
      }
    },
    "/api/v2/currencies/active-cryptos/": {
      "get": {
        "operationId": "listCryptos",
        "description": "Get a list of all the cryptos currently active on the\nexchange and their associated information.\n\n**API key scope:** `read`",
        "summary": "Active cryptos on exchange.",
        "parameters": [
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "description": "Number of results to return per page.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "offset",
            "required": false,
            "in": "query",
            "description": "The initial index from which to return the results.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "tags": [
          "Market data"
        ],
        "security": [
          {
            "ApiKey": []
          },
          {}
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginatedCurrencyList"
                },
                "examples": {
                  "Response": {
                    "value": {
                      "count": 123,
                      "next": "http://api.example.org/accounts/?offset=400&limit=100",
                      "previous": "http://api.example.org/accounts/?offset=200&limit=100",
                      "results": [
                        {
                          "id": 1,
                          "title": "Bitcoin",
                          "symbol": "BTC",
                          "symbol_filename": "btc.svg",
                          "is_crypto": true,
                          "slug": "bitcoin-BTC",
                          "active_status": "currency_active"
                        }
                      ]
                    }
                  }
                }
              }
            },
            "description": ""
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "curl --request GET 'https://api.localcoinswap.com/api/v2/currencies/active-cryptos/' \\\n  --header \"Authorization: ApiKey $LCS_API_KEY\"\n"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import os\n\nimport requests\n\nresponse = requests.request(\n    \"GET\",\n    \"https://api.localcoinswap.com/api/v2/currencies/active-cryptos/\",\n    headers={\"Authorization\": f\"ApiKey {os.environ['LCS_API_KEY']}\"},\n)\nprint(response.status_code, response.text)\n"
          },
          {
            "lang": "javascript",
            "label": "JavaScript",
            "source": "const response = await fetch(\"https://api.localcoinswap.com/api/v2/currencies/active-cryptos/\", {\n  method: \"GET\",\n  headers: {\n    Authorization: `ApiKey ${process.env.LCS_API_KEY}`,\n  },\n});\nconsole.log(response.status, await response.text());\n"
          }
        ],
        "x-apiKeyScope": "read"
      }
    },
    "/api/v2/currencies/fiat-currencies/": {
      "get": {
        "operationId": "listFiatCurrencies",
        "description": "List of local (fiat) currencies supported on the platform.\n\n**API key scope:** `read`",
        "summary": "Local currencies.",
        "parameters": [
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "description": "Number of results to return per page.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "offset",
            "required": false,
            "in": "query",
            "description": "The initial index from which to return the results.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "tags": [
          "Market data"
        ],
        "security": [
          {
            "ApiKey": []
          },
          {}
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginatedMinimalCurrencyList"
                },
                "examples": {
                  "Response": {
                    "value": {
                      "count": 123,
                      "next": "http://api.example.org/accounts/?offset=400&limit=100",
                      "previous": "http://api.example.org/accounts/?offset=200&limit=100",
                      "results": [
                        {
                          "title": "Afghan Afghani",
                          "symbol": "AFN",
                          "symbol_filename": "None",
                          "is_crypto": false
                        }
                      ]
                    }
                  }
                }
              }
            },
            "description": ""
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "curl --request GET 'https://api.localcoinswap.com/api/v2/currencies/fiat-currencies/' \\\n  --header \"Authorization: ApiKey $LCS_API_KEY\"\n"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import os\n\nimport requests\n\nresponse = requests.request(\n    \"GET\",\n    \"https://api.localcoinswap.com/api/v2/currencies/fiat-currencies/\",\n    headers={\"Authorization\": f\"ApiKey {os.environ['LCS_API_KEY']}\"},\n)\nprint(response.status_code, response.text)\n"
          },
          {
            "lang": "javascript",
            "label": "JavaScript",
            "source": "const response = await fetch(\"https://api.localcoinswap.com/api/v2/currencies/fiat-currencies/\", {\n  method: \"GET\",\n  headers: {\n    Authorization: `ApiKey ${process.env.LCS_API_KEY}`,\n  },\n});\nconsole.log(response.status, await response.text());\n"
          }
        ],
        "x-apiKeyScope": "read"
      }
    },
    "/api/v2/legacy-wallets/non-custodial/{currency_slug}/": {
      "get": {
        "operationId": "getLegacyWallet",
        "description": "After a wallet reset your previous addresses and their encrypted keys\nstay here, with the archived account data\n(`profile_crypto_data_history`) that decrypts them, so you can move\nwhat's left to `encrypted_wallet_address`, your current address. 404 if\nyour wallets were never reset.\n\n**Rate limit:** 30 per minute\n\n**API key scope:** `wallet`",
        "summary": "Get your old wallet.",
        "parameters": [
          {
            "in": "path",
            "name": "currency_slug",
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-zA-Z-]+$"
            },
            "required": true
          }
        ],
        "tags": [
          "Wallet"
        ],
        "security": [
          {
            "ApiKey": []
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LegacyNcWallet"
                },
                "examples": {
                  "Response": {
                    "value": {
                      "crypto_balance": "0.420000000000000000",
                      "crypto_balance_base_unit": "420000000000000000",
                      "confirmed_balance_base_unit": "420000000000000000",
                      "fiat_balance": "2730.0000",
                      "crypto_slug": "ETH",
                      "local_currency_symbol": "AUD",
                      "unit_amount_in_local_currency": "6500.0000",
                      "address_balance_map": {
                        "0x7D1f14c29825b052004A5eF02d8F0BC7E2c9A2A0": "0.42"
                      },
                      "address_list": [
                        "0x7D1f14c29825b052004A5eF02d8F0BC7E2c9A2A0"
                      ],
                      "address_enc_keys": [
                        {
                          "address": "0x7D1f14c29825b052004A5eF02d8F0BC7E2c9A2A0",
                          "encrypted_private_key": "3b9f6c...",
                          "encrypted_private_key_iv": "a41c09e2b7d35f18c6e04a92d1f7b305"
                        }
                      ],
                      "network_fees": {
                        "min": "1.4",
                        "max": "5.2",
                        "recommended": "4.4"
                      },
                      "can_withdraw_free": true,
                      "free_withdrawal_reset_seconds": 0,
                      "encrypted_wallet_address": "0x2B5AD5c4795c026514f8317c7a215E218DcCD6cF",
                      "profile_crypto_data_history": {
                        "id": 812,
                        "created": "2026-04-20T08:11:02.118204Z",
                        "modified": "2026-04-20T08:11:02.118204Z",
                        "salt": "9d2c...",
                        "iterations": 100000,
                        "initialization_vector": "5e8a...",
                        "encrypted_account_key": "c41f...",
                        "public_identity_key": "04ab...",
                        "encrypted_mnemonic": "77d0...",
                        "encrypted_mnemonic_256": "1a9e...",
                        "encrypted_mnemonic_iv": "f03b..."
                      }
                    }
                  }
                }
              }
            },
            "description": ""
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "curl --request GET 'https://api.localcoinswap.com/api/v2/legacy-wallets/non-custodial/ETH/' \\\n  --header \"Authorization: ApiKey $LCS_API_KEY\"\n"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import os\n\nimport requests\n\nresponse = requests.request(\n    \"GET\",\n    \"https://api.localcoinswap.com/api/v2/legacy-wallets/non-custodial/ETH/\",\n    headers={\"Authorization\": f\"ApiKey {os.environ['LCS_API_KEY']}\"},\n)\nprint(response.status_code, response.text)\n"
          },
          {
            "lang": "javascript",
            "label": "JavaScript",
            "source": "const response = await fetch(\"https://api.localcoinswap.com/api/v2/legacy-wallets/non-custodial/ETH/\", {\n  method: \"GET\",\n  headers: {\n    Authorization: `ApiKey ${process.env.LCS_API_KEY}`,\n  },\n});\nconsole.log(response.status, await response.text());\n"
          }
        ],
        "x-rateLimit": [
          {
            "requests": 30,
            "seconds": 60
          }
        ],
        "x-apiKeyScope": "wallet"
      }
    },
    "/api/v2/notifs/": {
      "get": {
        "operationId": "listNotifications",
        "description": "Newest first, at most 20 per page. `inbox` picks a tab: `unread`, or\n`trades`, `swaps` and `account` by `event`; the default `all` includes\nevery event. `has_unseen` says whether any notification, in any tab,\nis still unseen. `metadata` carries the related object, such as\n`trade_uuid` for trade events.\n\n**API key scope:** `read`",
        "summary": "List your notifications.",
        "parameters": [
          {
            "in": "query",
            "name": "inbox",
            "schema": {
              "type": "string",
              "enum": [
                "account",
                "all",
                "swaps",
                "trades",
                "unread"
              ],
              "default": "all"
            }
          },
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "description": "Number of results to return per page.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "offset",
            "required": false,
            "in": "query",
            "description": "The initial index from which to return the results.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "tags": [
          "Notifications"
        ],
        "security": [
          {
            "ApiKey": []
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginatedNotifList"
                },
                "examples": {
                  "Response": {
                    "value": {
                      "count": 18,
                      "offset": 0,
                      "limit": 5,
                      "has_unseen": true,
                      "inbox": "all",
                      "results": [
                        {
                          "id": 318825,
                          "unread": true,
                          "title": "Trade Chat #f3c6120b | hal_f | 250.00 AUD",
                          "description": "Paid by bank transfer, reference LCS-4821.",
                          "event": "TRADE_MSG",
                          "metadata": {
                            "trade_uuid": "f3c6120b-d63a-4a1f-9d18-f181c4be29c2"
                          },
                          "since": "5 minutes"
                        }
                      ]
                    }
                  }
                }
              }
            },
            "description": ""
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "curl --request GET 'https://api.localcoinswap.com/api/v2/notifs/?inbox=trades&limit=20' \\\n  --header \"Authorization: ApiKey $LCS_API_KEY\"\n"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import os\n\nimport requests\n\nresponse = requests.request(\n    \"GET\",\n    \"https://api.localcoinswap.com/api/v2/notifs/?inbox=trades&limit=20\",\n    headers={\"Authorization\": f\"ApiKey {os.environ['LCS_API_KEY']}\"},\n)\nprint(response.status_code, response.text)\n"
          },
          {
            "lang": "javascript",
            "label": "JavaScript",
            "source": "const response = await fetch(\"https://api.localcoinswap.com/api/v2/notifs/?inbox=trades&limit=20\", {\n  method: \"GET\",\n  headers: {\n    Authorization: `ApiKey ${process.env.LCS_API_KEY}`,\n  },\n});\nconsole.log(response.status, await response.text());\n"
          }
        ],
        "x-apiKeyScope": "read"
      }
    },
    "/api/v2/notifs/read/": {
      "post": {
        "operationId": "markAllNotificationsRead",
        "description": "Sets `unread` to false on every notification. It doesn't change\n`has_unseen`; mark them seen for that.\n\n**API key scope:** `trade`",
        "summary": "Mark all notifications read.",
        "tags": [
          "Notifications"
        ],
        "security": [
          {
            "ApiKey": []
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotifStatus"
                },
                "examples": {
                  "Response": {
                    "value": {
                      "status": true
                    }
                  }
                }
              }
            },
            "description": ""
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "curl --request POST 'https://api.localcoinswap.com/api/v2/notifs/read/' \\\n  --header \"Authorization: ApiKey $LCS_API_KEY\"\n"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import os\n\nimport requests\n\nresponse = requests.request(\n    \"POST\",\n    \"https://api.localcoinswap.com/api/v2/notifs/read/\",\n    headers={\"Authorization\": f\"ApiKey {os.environ['LCS_API_KEY']}\"},\n)\nprint(response.status_code, response.text)\n"
          },
          {
            "lang": "javascript",
            "label": "JavaScript",
            "source": "const response = await fetch(\"https://api.localcoinswap.com/api/v2/notifs/read/\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `ApiKey ${process.env.LCS_API_KEY}`,\n  },\n});\nconsole.log(response.status, await response.text());\n"
          }
        ],
        "x-apiKeyScope": "trade"
      }
    },
    "/api/v2/notifs/read/{notif_id}/": {
      "post": {
        "operationId": "markNotificationRead",
        "description": "Sets its `unread` to false. 404 if it isn't one of yours.\n\n**API key scope:** `trade`",
        "summary": "Mark one notification read.",
        "parameters": [
          {
            "in": "path",
            "name": "notif_id",
            "schema": {
              "type": "string",
              "pattern": "^[0-9]+$"
            },
            "required": true
          }
        ],
        "tags": [
          "Notifications"
        ],
        "security": [
          {
            "ApiKey": []
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotifStatus"
                },
                "examples": {
                  "Response": {
                    "value": {
                      "status": true
                    }
                  }
                }
              }
            },
            "description": ""
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "curl --request POST 'https://api.localcoinswap.com/api/v2/notifs/read/318825/' \\\n  --header \"Authorization: ApiKey $LCS_API_KEY\"\n"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import os\n\nimport requests\n\nresponse = requests.request(\n    \"POST\",\n    \"https://api.localcoinswap.com/api/v2/notifs/read/318825/\",\n    headers={\"Authorization\": f\"ApiKey {os.environ['LCS_API_KEY']}\"},\n)\nprint(response.status_code, response.text)\n"
          },
          {
            "lang": "javascript",
            "label": "JavaScript",
            "source": "const response = await fetch(\"https://api.localcoinswap.com/api/v2/notifs/read/318825/\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `ApiKey ${process.env.LCS_API_KEY}`,\n  },\n});\nconsole.log(response.status, await response.text());\n"
          }
        ],
        "x-apiKeyScope": "trade"
      }
    },
    "/api/v2/notifs/seen/": {
      "post": {
        "operationId": "markAllNotificationsSeen",
        "description": "Clears `has_unseen` (the website's red dot on the bell). Notifications\nstay `unread` until you mark them read.\n\n**API key scope:** `trade`",
        "summary": "Mark all notifications seen.",
        "tags": [
          "Notifications"
        ],
        "security": [
          {
            "ApiKey": []
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotifStatus"
                },
                "examples": {
                  "Response": {
                    "value": {
                      "status": true
                    }
                  }
                }
              }
            },
            "description": ""
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "curl --request POST 'https://api.localcoinswap.com/api/v2/notifs/seen/' \\\n  --header \"Authorization: ApiKey $LCS_API_KEY\"\n"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import os\n\nimport requests\n\nresponse = requests.request(\n    \"POST\",\n    \"https://api.localcoinswap.com/api/v2/notifs/seen/\",\n    headers={\"Authorization\": f\"ApiKey {os.environ['LCS_API_KEY']}\"},\n)\nprint(response.status_code, response.text)\n"
          },
          {
            "lang": "javascript",
            "label": "JavaScript",
            "source": "const response = await fetch(\"https://api.localcoinswap.com/api/v2/notifs/seen/\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `ApiKey ${process.env.LCS_API_KEY}`,\n  },\n});\nconsole.log(response.status, await response.text());\n"
          }
        ],
        "x-apiKeyScope": "trade"
      }
    },
    "/api/v2/offers/": {
      "get": {
        "operationId": "listMyOffers",
        "description": "Your offers, active and paused, with view and trade stats. In this\nlist `trading_type`, `coin_currency`, `fiat_currency` and\n`payment_method` are internal IDs; fetch one offer for the full objects.\n\n**API key scope:** `read`",
        "summary": "List your offers.",
        "parameters": [
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "description": "Number of results to return per page.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "offset",
            "required": false,
            "in": "query",
            "description": "The initial index from which to return the results.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "trading_type",
            "schema": {
              "type": "string",
              "enum": [
                "buy",
                "sell"
              ]
            },
            "description": "Only `buy` or only `sell` offers."
          }
        ],
        "tags": [
          "Offers"
        ],
        "security": [
          {
            "ApiKey": []
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginatedMyOfferList"
                },
                "examples": {
                  "Response": {
                    "value": {
                      "active_page": 1,
                      "count": 18,
                      "next": null,
                      "previous": null,
                      "offset": 0,
                      "limit": 5,
                      "total_pages": 4,
                      "results": [
                        {
                          "uuid": "cd6e7394-9b75-4f5e-9652-542befe5c55d",
                          "is_active": true,
                          "created_by": 8324323,
                          "trading_type": 2,
                          "coin_currency": 1,
                          "fiat_currency": 10001,
                          "payment_method": 32,
                          "custodial_type": 1,
                          "location_name": "Adelaide",
                          "country_code": "AU",
                          "min_trade_size": "50.0000000000",
                          "max_trade_size": "3000.0000000000",
                          "headline": "",
                          "hidden": false,
                          "sms_required": false,
                          "minimum_feedback": "0",
                          "price_formula_value": "104328.51",
                          "current_margin_percentage": "2.5000000000",
                          "slug": "buy-btc-for-usd-in-australia",
                          "stats": {
                            "lifetime": {
                              "views": 412,
                              "trades_started": 9,
                              "trades_completed": 7,
                              "trades_cancelled": 2,
                              "completion_rate": 0.78,
                              "volume_usd": "6120.00",
                              "last_viewed_at": "2026-11-03T18:22:10Z",
                              "last_trade_at": "2026-11-02T09:41:55Z"
                            },
                            "last_30d": {
                              "views": 120,
                              "trades_started": 3,
                              "trades_completed": 3,
                              "trades_cancelled": 0,
                              "completion_rate": 1.0,
                              "volume_usd": "2150.00"
                            },
                            "views_measured_since": "2026-10-24",
                            "window_days": 30
                          }
                        }
                      ]
                    }
                  }
                }
              }
            },
            "description": ""
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "curl --request GET 'https://api.localcoinswap.com/api/v2/offers/?trading_type=sell' \\\n  --header \"Authorization: ApiKey $LCS_API_KEY\"\n"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import os\n\nimport requests\n\nresponse = requests.request(\n    \"GET\",\n    \"https://api.localcoinswap.com/api/v2/offers/?trading_type=sell\",\n    headers={\"Authorization\": f\"ApiKey {os.environ['LCS_API_KEY']}\"},\n)\nprint(response.status_code, response.text)\n"
          },
          {
            "lang": "javascript",
            "label": "JavaScript",
            "source": "const response = await fetch(\"https://api.localcoinswap.com/api/v2/offers/?trading_type=sell\", {\n  method: \"GET\",\n  headers: {\n    Authorization: `ApiKey ${process.env.LCS_API_KEY}`,\n  },\n});\nconsole.log(response.status, await response.text());\n"
          }
        ],
        "x-apiKeyScope": "read"
      },
      "post": {
        "operationId": "createOffer",
        "description": "Create a trade offer for others to respond to.\nThis can be done only by authenticated users.\n\n**API key scope:** `trade`",
        "summary": "Create offer.",
        "tags": [
          "Offers"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OfferCreateRequest"
              },
              "examples": {
                "Request": {
                  "value": {
                    "trading_type": "sell",
                    "coin_currency": "BTC",
                    "fiat_currency": "USD",
                    "payment_method": "bank-transfers",
                    "country_code": "AU",
                    "location_name": "Adelaide",
                    "min_trade_size": 50,
                    "max_trade_size": 2000,
                    "pricing_type": "MARGIN",
                    "pricing_market": "cmc",
                    "pricing_expression": "2",
                    "trading_hours_type": "daily",
                    "trading_hours_json": {
                      "anyday": {
                        "from": "08:30",
                        "to": "21:00"
                      }
                    }
                  }
                }
              }
            }
          },
          "required": true
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OfferCreate"
                },
                "examples": {
                  "Response": {
                    "value": {
                      "trading_type": {
                        "slug": "sell",
                        "name": "sell",
                        "opposite_name": "buy"
                      },
                      "coin_currency": {
                        "title": "Bitcoin",
                        "symbol": "BTC",
                        "token_standard": null,
                        "symbol_filename": "btc.svg",
                        "is_crypto": true,
                        "slug": "BTC"
                      },
                      "fiat_currency": {
                        "title": "United States Dollar",
                        "symbol": "USD",
                        "token_standard": null,
                        "symbol_filename": null,
                        "is_crypto": false,
                        "slug": "united-states-dollar"
                      },
                      "payment_method": {
                        "name": "Bank Transfer",
                        "slug": "bank-transfers"
                      },
                      "uuid": "cd6e7394-9b75-4f5e-9652-542befe5c55d",
                      "slug": "buy-btc-for-usd-in-australia",
                      "country_code": "AU",
                      "location_name": "Adelaide",
                      "min_trade_size": 50,
                      "max_trade_size": 2000,
                      "trading_conditions": "",
                      "trading_condition_keys": [],
                      "headline": "",
                      "hidden": false,
                      "enforced_sizes": "",
                      "blocked_countries": "",
                      "automatic_cancel_time": 240,
                      "sms_required": false,
                      "minimum_feedback": 0
                    }
                  }
                }
              }
            },
            "description": ""
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "curl --request POST 'https://api.localcoinswap.com/api/v2/offers/' \\\n  --header \"Authorization: ApiKey $LCS_API_KEY\" \\\n  --header 'Content-Type: application/json' \\\n  --data-raw '{\"trading_type\": \"sell\", \"coin_currency\": \"BTC\", \"fiat_currency\": \"USD\", \"payment_method\": \"bank-transfers\", \"country_code\": \"AU\", \"location_name\": \"Adelaide\", \"min_trade_size\": 50, \"max_trade_size\": 2000, \"pricing_type\": \"MARGIN\", \"pricing_market\": \"cmc\", \"pricing_expression\": \"2\", \"trading_hours_type\": \"daily\", \"trading_hours_json\": {\"anyday\": {\"from\": \"08:30\", \"to\": \"21:00\"}}}'\n"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import os\n\nimport requests\n\nresponse = requests.request(\n    \"POST\",\n    \"https://api.localcoinswap.com/api/v2/offers/\",\n    headers={\"Authorization\": f\"ApiKey {os.environ['LCS_API_KEY']}\"},\n    json={\n        \"trading_type\": \"sell\",\n        \"coin_currency\": \"BTC\",\n        \"fiat_currency\": \"USD\",\n        \"payment_method\": \"bank-transfers\",\n        \"country_code\": \"AU\",\n        \"location_name\": \"Adelaide\",\n        \"min_trade_size\": 50,\n        \"max_trade_size\": 2000,\n        \"pricing_type\": \"MARGIN\",\n        \"pricing_market\": \"cmc\",\n        \"pricing_expression\": \"2\",\n        \"trading_hours_type\": \"daily\",\n        \"trading_hours_json\": {\n            \"anyday\": {\n                \"from\": \"08:30\",\n                \"to\": \"21:00\",\n            },\n        },\n    },\n)\nprint(response.status_code, response.text)\n"
          },
          {
            "lang": "javascript",
            "label": "JavaScript",
            "source": "const response = await fetch(\"https://api.localcoinswap.com/api/v2/offers/\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `ApiKey ${process.env.LCS_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\n    \"trading_type\": \"sell\",\n    \"coin_currency\": \"BTC\",\n    \"fiat_currency\": \"USD\",\n    \"payment_method\": \"bank-transfers\",\n    \"country_code\": \"AU\",\n    \"location_name\": \"Adelaide\",\n    \"min_trade_size\": 50,\n    \"max_trade_size\": 2000,\n    \"pricing_type\": \"MARGIN\",\n    \"pricing_market\": \"cmc\",\n    \"pricing_expression\": \"2\",\n    \"trading_hours_type\": \"daily\",\n    \"trading_hours_json\": {\n      \"anyday\": {\n        \"from\": \"08:30\",\n        \"to\": \"21:00\"\n      }\n    }\n  }),\n});\nconsole.log(response.status, await response.text());\n"
          }
        ],
        "x-apiKeyScope": "trade"
      }
    },
    "/api/v2/offers/{uuid}/": {
      "get": {
        "operationId": "getOffer",
        "description": "Anyone can read an offer, including hidden and paused ones, given its\nUUID. The `msg_on_trade_*` automatic messages are only returned to the\noffer's creator; everyone else gets `null`.\n\n**API key scope:** `read`",
        "summary": "Get an offer.",
        "parameters": [
          {
            "in": "path",
            "name": "uuid",
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Offer uuid"
            },
            "required": true
          }
        ],
        "tags": [
          "Offers"
        ],
        "security": [
          {
            "ApiKey": []
          },
          {}
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OfferRead"
                },
                "examples": {
                  "Response": {
                    "value": {
                      "uuid": "cd6e7394-9b75-4f5e-9652-542befe5c55d",
                      "slug": "buy-btc-for-usd-in-australia",
                      "is_active": true,
                      "created_by": {
                        "username": "satoshi_au",
                        "activity_status": "active",
                        "activity_tooltip": "online",
                        "is_email_verified": true,
                        "is_phone_verified": true,
                        "phone_country_code": "AU",
                        "avg_response_time": 4,
                        "completed_trades": 182,
                        "platform_volume": 96000,
                        "feedback_score": "99.20000",
                        "last_seen": 1793817600,
                        "is_legacy": false,
                        "bio": "",
                        "user_uuid": "e98f2078-a4e7-4f59-908f-b5513be95bd6",
                        "on_holiday": false,
                        "hide_from_google": false,
                        "date_joined": "2021-06-21T05:24:49.500000Z",
                        "profile_image": "https://pwa-cdn.localcoinswap.com/default_user.jpg",
                        "is_kyc_verified": true,
                        "xp_level": "EXPERT"
                      },
                      "trading_type": {
                        "id": 2,
                        "slug": "sell",
                        "name": "sell",
                        "action_name": "Selling",
                        "opposite_name": "buy",
                        "opposite_action_name": "Buying"
                      },
                      "coin_currency": {
                        "title": "Bitcoin",
                        "symbol": "BTC",
                        "token_standard": null,
                        "symbol_filename": "btc.svg",
                        "is_crypto": true,
                        "slug": "BTC"
                      },
                      "fiat_currency": {
                        "title": "United States Dollar",
                        "symbol": "USD",
                        "token_standard": null,
                        "symbol_filename": null,
                        "is_crypto": false,
                        "slug": "united-states-dollar"
                      },
                      "payment_method": {
                        "name": "Bank Transfer",
                        "slug": "bank-transfers"
                      },
                      "location_name": "Adelaide",
                      "country_code": "AU",
                      "custodial_type": 1,
                      "min_trade_size": "50.0000000000",
                      "max_trade_size": "3000.0000000000",
                      "trading_conditions": "Bank transfers from accounts in your own name only.",
                      "trading_condition_keys": [],
                      "headline": "Fast BTC by bank transfer",
                      "hidden": false,
                      "enforced_sizes": "",
                      "blocked_countries": "",
                      "automatic_cancel_time": "240",
                      "sms_required": false,
                      "minimum_feedback": "0",
                      "price_formula": {
                        "display_formula": "2.5",
                        "prefix_formula": "exchange.btcusd|v||exchange.usdusd|v||*|o||1.025|n||*|o",
                        "pricing_type": "MARGIN",
                        "market": "cmc"
                      },
                      "price_formula_value": "104328.51",
                      "trading_hours_localised": "Mon - Sun: 8:30 am  - 9:00 pm <br />\n",
                      "trading_hours_type": "daily",
                      "trading_hours_json": {
                        "anyday": {
                          "from": "8:30",
                          "to": "21:0"
                        }
                      },
                      "current_margin_percentage": "2.5000000000",
                      "msg_on_trade_accepted": null,
                      "msg_on_trade_escrowed": null,
                      "msg_on_trade_released": null
                    }
                  }
                }
              }
            },
            "description": ""
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "curl --request GET 'https://api.localcoinswap.com/api/v2/offers/cd6e7394-9b75-4f5e-9652-542befe5c55d/'\n"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import requests\n\nresponse = requests.request(\n    \"GET\",\n    \"https://api.localcoinswap.com/api/v2/offers/cd6e7394-9b75-4f5e-9652-542befe5c55d/\",\n)\nprint(response.status_code, response.text)\n"
          },
          {
            "lang": "javascript",
            "label": "JavaScript",
            "source": "const response = await fetch(\"https://api.localcoinswap.com/api/v2/offers/cd6e7394-9b75-4f5e-9652-542befe5c55d/\", {\n  method: \"GET\",\n});\nconsole.log(response.status, await response.text());\n"
          }
        ],
        "x-apiKeyScope": "read"
      },
      "patch": {
        "operationId": "updateOffer",
        "description": "Send only the fields you want to change. The coin, fiat currency,\npayment method and trade type can't be changed; create a new offer\ninstead. `pricing_type` and `pricing_expression` must be sent together,\nas must `trading_hours_type` and `trading_hours_json`.\nSend `is_active` to pause or resume the offer.\n\nReturns 404 for offers you didn't create.\n\n**API key scope:** `trade`",
        "summary": "Update your offer.",
        "parameters": [
          {
            "in": "path",
            "name": "uuid",
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Offer uuid"
            },
            "required": true
          }
        ],
        "tags": [
          "Offers"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PatchedOfferUpdateRequest"
              },
              "examples": {
                "Request": {
                  "value": {
                    "max_trade_size": 3000,
                    "pricing_type": "MARGIN",
                    "pricing_expression": "2.5"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MyOffer"
                },
                "examples": {
                  "Response": {
                    "value": {
                      "uuid": "cd6e7394-9b75-4f5e-9652-542befe5c55d",
                      "is_active": true,
                      "created_by": 8324323,
                      "trading_type": 2,
                      "coin_currency": 1,
                      "fiat_currency": 10001,
                      "payment_method": 32,
                      "custodial_type": 1,
                      "location_name": "Adelaide",
                      "country_code": "AU",
                      "min_trade_size": "50.0000000000",
                      "max_trade_size": "3000.0000000000",
                      "headline": "",
                      "hidden": false,
                      "sms_required": false,
                      "minimum_feedback": "0",
                      "price_formula_value": "104328.51",
                      "current_margin_percentage": "2.5000000000",
                      "slug": "buy-btc-for-usd-in-australia",
                      "stats": {
                        "lifetime": {
                          "views": 412,
                          "trades_started": 9,
                          "trades_completed": 7,
                          "trades_cancelled": 2,
                          "completion_rate": 0.78,
                          "volume_usd": "6120.00",
                          "last_viewed_at": "2026-11-03T18:22:10Z",
                          "last_trade_at": "2026-11-02T09:41:55Z"
                        },
                        "last_30d": {
                          "views": 120,
                          "trades_started": 3,
                          "trades_completed": 3,
                          "trades_cancelled": 0,
                          "completion_rate": 1.0,
                          "volume_usd": "2150.00"
                        },
                        "views_measured_since": "2026-10-24",
                        "window_days": 30
                      }
                    }
                  }
                }
              }
            },
            "description": ""
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "curl --request PATCH 'https://api.localcoinswap.com/api/v2/offers/cd6e7394-9b75-4f5e-9652-542befe5c55d/' \\\n  --header \"Authorization: ApiKey $LCS_API_KEY\" \\\n  --header 'Content-Type: application/json' \\\n  --data-raw '{\"max_trade_size\": 3000, \"pricing_type\": \"MARGIN\", \"pricing_expression\": \"2.5\"}'\n"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import os\n\nimport requests\n\nresponse = requests.request(\n    \"PATCH\",\n    \"https://api.localcoinswap.com/api/v2/offers/cd6e7394-9b75-4f5e-9652-542befe5c55d/\",\n    headers={\"Authorization\": f\"ApiKey {os.environ['LCS_API_KEY']}\"},\n    json={\n        \"max_trade_size\": 3000,\n        \"pricing_type\": \"MARGIN\",\n        \"pricing_expression\": \"2.5\",\n    },\n)\nprint(response.status_code, response.text)\n"
          },
          {
            "lang": "javascript",
            "label": "JavaScript",
            "source": "const response = await fetch(\"https://api.localcoinswap.com/api/v2/offers/cd6e7394-9b75-4f5e-9652-542befe5c55d/\", {\n  method: \"PATCH\",\n  headers: {\n    Authorization: `ApiKey ${process.env.LCS_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\n    \"max_trade_size\": 3000,\n    \"pricing_type\": \"MARGIN\",\n    \"pricing_expression\": \"2.5\"\n  }),\n});\nconsole.log(response.status, await response.text());\n"
          }
        ],
        "x-apiKeyScope": "trade"
      },
      "delete": {
        "operationId": "deleteOffer",
        "description": "Deleted offers disappear from search and can't be restored. Trades\nalready open on the offer carry on. Returns 404 for offers you didn't\ncreate.\n\n**API key scope:** `trade`",
        "summary": "Delete your offer.",
        "parameters": [
          {
            "in": "path",
            "name": "uuid",
            "schema": {
              "type": "string",
              "format": "uuid",
              "title": "Offer uuid"
            },
            "required": true
          }
        ],
        "tags": [
          "Offers"
        ],
        "security": [
          {
            "ApiKey": []
          }
        ],
        "responses": {
          "204": {
            "description": "Offer deleted"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "curl --request DELETE 'https://api.localcoinswap.com/api/v2/offers/cd6e7394-9b75-4f5e-9652-542befe5c55d/' \\\n  --header \"Authorization: ApiKey $LCS_API_KEY\"\n"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import os\n\nimport requests\n\nresponse = requests.request(\n    \"DELETE\",\n    \"https://api.localcoinswap.com/api/v2/offers/cd6e7394-9b75-4f5e-9652-542befe5c55d/\",\n    headers={\"Authorization\": f\"ApiKey {os.environ['LCS_API_KEY']}\"},\n)\nprint(response.status_code, response.text)\n"
          },
          {
            "lang": "javascript",
            "label": "JavaScript",
            "source": "const response = await fetch(\"https://api.localcoinswap.com/api/v2/offers/cd6e7394-9b75-4f5e-9652-542befe5c55d/\", {\n  method: \"DELETE\",\n  headers: {\n    Authorization: `ApiKey ${process.env.LCS_API_KEY}`,\n  },\n});\nconsole.log(response.status, await response.text());\n"
          }
        ],
        "x-apiKeyScope": "trade"
      }
    },
    "/api/v2/offers/bulk/": {
      "post": {
        "operationId": "createOffers",
        "description": "Create up to 100 offers in one request. Fields shared by every offer\ngo at the top level, as for a single create; `combos` lists the\noffers, each with its own coin, fiat currency, payment method,\nlocation, price or sizes. Each offer is validated and created on its\nown, so some can fail while the rest succeed: check `failed`.\nThe request fails as a whole only if `combos` is empty, too long, or\nwould take you over your offer limit.\n\n**API key scope:** `trade`",
        "summary": "Create several offers.",
        "tags": [
          "Offers"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BulkOfferCreateRequest"
              },
              "examples": {
                "Request": {
                  "value": {
                    "trading_type": "sell",
                    "fiat_currency": "USD",
                    "payment_method": "bank-transfers",
                    "country_code": "AU",
                    "location_name": "Adelaide",
                    "min_trade_size": 50,
                    "max_trade_size": 2000,
                    "pricing_type": "MARGIN",
                    "pricing_market": "cmc",
                    "pricing_expression": "2",
                    "trading_hours_type": "daily",
                    "trading_hours_json": {
                      "anyday": {
                        "from": "08:30",
                        "to": "21:00"
                      }
                    },
                    "combos": [
                      {
                        "coin_currency": "BTC"
                      },
                      {
                        "coin_currency": "ETH",
                        "pricing_expression": "2.5"
                      },
                      {
                        "coin_currency": "USDT-ERC20",
                        "payment_method": "paypal"
                      }
                    ]
                  }
                }
              }
            }
          },
          "required": true
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkOfferCreateResponse"
                }
              }
            },
            "description": ""
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "curl --request POST 'https://api.localcoinswap.com/api/v2/offers/bulk/' \\\n  --header \"Authorization: ApiKey $LCS_API_KEY\" \\\n  --header 'Content-Type: application/json' \\\n  --data-raw '{\"trading_type\": \"sell\", \"fiat_currency\": \"USD\", \"payment_method\": \"bank-transfers\", \"country_code\": \"AU\", \"location_name\": \"Adelaide\", \"min_trade_size\": 50, \"max_trade_size\": 2000, \"pricing_type\": \"MARGIN\", \"pricing_market\": \"cmc\", \"pricing_expression\": \"2\", \"trading_hours_type\": \"daily\", \"trading_hours_json\": {\"anyday\": {\"from\": \"08:30\", \"to\": \"21:00\"}}, \"combos\": [{\"coin_currency\": \"BTC\"}, {\"coin_currency\": \"ETH\", \"pricing_expression\": \"2.5\"}, {\"coin_currency\": \"USDT-ERC20\", \"payment_method\": \"paypal\"}]}'\n"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import os\n\nimport requests\n\nresponse = requests.request(\n    \"POST\",\n    \"https://api.localcoinswap.com/api/v2/offers/bulk/\",\n    headers={\"Authorization\": f\"ApiKey {os.environ['LCS_API_KEY']}\"},\n    json={\n        \"trading_type\": \"sell\",\n        \"fiat_currency\": \"USD\",\n        \"payment_method\": \"bank-transfers\",\n        \"country_code\": \"AU\",\n        \"location_name\": \"Adelaide\",\n        \"min_trade_size\": 50,\n        \"max_trade_size\": 2000,\n        \"pricing_type\": \"MARGIN\",\n        \"pricing_market\": \"cmc\",\n        \"pricing_expression\": \"2\",\n        \"trading_hours_type\": \"daily\",\n        \"trading_hours_json\": {\n            \"anyday\": {\n                \"from\": \"08:30\",\n                \"to\": \"21:00\",\n            },\n        },\n        \"combos\": [\n            {\n                \"coin_currency\": \"BTC\",\n            },\n            {\n                \"coin_currency\": \"ETH\",\n                \"pricing_expression\": \"2.5\",\n            },\n            {\n                \"coin_currency\": \"USDT-ERC20\",\n                \"payment_method\": \"paypal\",\n            },\n        ],\n    },\n)\nprint(response.status_code, response.text)\n"
          },
          {
            "lang": "javascript",
            "label": "JavaScript",
            "source": "const response = await fetch(\"https://api.localcoinswap.com/api/v2/offers/bulk/\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `ApiKey ${process.env.LCS_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\n    \"trading_type\": \"sell\",\n    \"fiat_currency\": \"USD\",\n    \"payment_method\": \"bank-transfers\",\n    \"country_code\": \"AU\",\n    \"location_name\": \"Adelaide\",\n    \"min_trade_size\": 50,\n    \"max_trade_size\": 2000,\n    \"pricing_type\": \"MARGIN\",\n    \"pricing_market\": \"cmc\",\n    \"pricing_expression\": \"2\",\n    \"trading_hours_type\": \"daily\",\n    \"trading_hours_json\": {\n      \"anyday\": {\n        \"from\": \"08:30\",\n        \"to\": \"21:00\"\n      }\n    },\n    \"combos\": [\n      {\n        \"coin_currency\": \"BTC\"\n      },\n      {\n        \"coin_currency\": \"ETH\",\n        \"pricing_expression\": \"2.5\"\n      },\n      {\n        \"coin_currency\": \"USDT-ERC20\",\n        \"payment_method\": \"paypal\"\n      }\n    ]\n  }),\n});\nconsole.log(response.status, await response.text());\n"
          }
        ],
        "x-apiKeyScope": "trade"
      }
    },
    "/api/v2/offers/dryrun-expression/": {
      "post": {
        "operationId": "previewAdvancedPrice",
        "description": "The formula expression is directly passed into this endpoint to compute the result.\nThis can be done only by authenticated users.\n\n**API key scope:** `read`",
        "summary": "Calculate advanced price.",
        "tags": [
          "Offers"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DryrunPricingExpressionRequest"
              },
              "examples": {
                "Request": {
                  "value": {
                    "expression": "market.binance.btcusdt.ask + (market.binance.btcusdt.ask * 0.1)"
                  }
                }
              }
            }
          },
          "required": true
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DryrunPricingFormulaResponse"
                },
                "examples": {
                  "Response": {
                    "value": {
                      "price": "12863.983"
                    }
                  }
                }
              }
            },
            "description": ""
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "curl --request POST 'https://api.localcoinswap.com/api/v2/offers/dryrun-expression/' \\\n  --header \"Authorization: ApiKey $LCS_API_KEY\" \\\n  --header 'Content-Type: application/json' \\\n  --data-raw '{\"expression\": \"market.binance.btcusdt.ask + (market.binance.btcusdt.ask * 0.1)\"}'\n"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import os\n\nimport requests\n\nresponse = requests.request(\n    \"POST\",\n    \"https://api.localcoinswap.com/api/v2/offers/dryrun-expression/\",\n    headers={\"Authorization\": f\"ApiKey {os.environ['LCS_API_KEY']}\"},\n    json={\n        \"expression\": \"market.binance.btcusdt.ask + (market.binance.btcusdt.ask * 0.1)\",\n    },\n)\nprint(response.status_code, response.text)\n"
          },
          {
            "lang": "javascript",
            "label": "JavaScript",
            "source": "const response = await fetch(\"https://api.localcoinswap.com/api/v2/offers/dryrun-expression/\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `ApiKey ${process.env.LCS_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\n    \"expression\": \"market.binance.btcusdt.ask + (market.binance.btcusdt.ask * 0.1)\"\n  }),\n});\nconsole.log(response.status, await response.text());\n"
          }
        ],
        "x-apiKeyScope": "read"
      }
    },
    "/api/v2/offers/dryrun-formula/": {
      "post": {
        "operationId": "previewMarketPrice",
        "description": "We create a formula expression from the parameters passed and then compute\nthe result. This can be done only by authenticated users.\n\n**API key scope:** `read`",
        "summary": "Get price for market.",
        "tags": [
          "Offers"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DryrunPricingFormulaRequest"
              },
              "examples": {
                "Request": {
                  "value": {
                    "pricing_market": "cmc",
                    "coin_currency": "ETH",
                    "fiat_currency": "USD",
                    "margin_percent": "10"
                  }
                }
              }
            }
          },
          "required": true
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DryrunPricingFormulaResponse"
                },
                "examples": {
                  "Response": {
                    "value": {
                      "price": "3712.48"
                    }
                  }
                }
              }
            },
            "description": ""
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "curl --request POST 'https://api.localcoinswap.com/api/v2/offers/dryrun-formula/' \\\n  --header \"Authorization: ApiKey $LCS_API_KEY\" \\\n  --header 'Content-Type: application/json' \\\n  --data-raw '{\"pricing_market\": \"cmc\", \"coin_currency\": \"ETH\", \"fiat_currency\": \"USD\", \"margin_percent\": \"10\"}'\n"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import os\n\nimport requests\n\nresponse = requests.request(\n    \"POST\",\n    \"https://api.localcoinswap.com/api/v2/offers/dryrun-formula/\",\n    headers={\"Authorization\": f\"ApiKey {os.environ['LCS_API_KEY']}\"},\n    json={\n        \"pricing_market\": \"cmc\",\n        \"coin_currency\": \"ETH\",\n        \"fiat_currency\": \"USD\",\n        \"margin_percent\": \"10\",\n    },\n)\nprint(response.status_code, response.text)\n"
          },
          {
            "lang": "javascript",
            "label": "JavaScript",
            "source": "const response = await fetch(\"https://api.localcoinswap.com/api/v2/offers/dryrun-formula/\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `ApiKey ${process.env.LCS_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\n    \"pricing_market\": \"cmc\",\n    \"coin_currency\": \"ETH\",\n    \"fiat_currency\": \"USD\",\n    \"margin_percent\": \"10\"\n  }),\n});\nconsole.log(response.status, await response.text());\n"
          }
        ],
        "x-apiKeyScope": "read"
      }
    },
    "/api/v2/offers/payment-methods/": {
      "get": {
        "operationId": "listPaymentMethods",
        "description": "List of payment methods supported for offer listing.\n\n**API key scope:** `read`",
        "summary": "Payment methods.",
        "parameters": [
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "description": "Number of results to return per page.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "offset",
            "required": false,
            "in": "query",
            "description": "The initial index from which to return the results.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "tags": [
          "Market data"
        ],
        "security": [
          {
            "ApiKey": []
          },
          {}
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginatedMinimalPaymentMethodList"
                },
                "examples": {
                  "Response": {
                    "value": {
                      "active_page": 1,
                      "count": 18,
                      "next": null,
                      "previous": null,
                      "offset": 0,
                      "limit": 5,
                      "total_pages": 4,
                      "results": [
                        {
                          "name": "Abra",
                          "slug": "abra"
                        }
                      ]
                    }
                  }
                }
              }
            },
            "description": ""
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "curl --request GET 'https://api.localcoinswap.com/api/v2/offers/payment-methods/' \\\n  --header \"Authorization: ApiKey $LCS_API_KEY\"\n"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import os\n\nimport requests\n\nresponse = requests.request(\n    \"GET\",\n    \"https://api.localcoinswap.com/api/v2/offers/payment-methods/\",\n    headers={\"Authorization\": f\"ApiKey {os.environ['LCS_API_KEY']}\"},\n)\nprint(response.status_code, response.text)\n"
          },
          {
            "lang": "javascript",
            "label": "JavaScript",
            "source": "const response = await fetch(\"https://api.localcoinswap.com/api/v2/offers/payment-methods/\", {\n  method: \"GET\",\n  headers: {\n    Authorization: `ApiKey ${process.env.LCS_API_KEY}`,\n  },\n});\nconsole.log(response.status, await response.text());\n"
          }
        ],
        "x-apiKeyScope": "read"
      }
    },
    "/api/v2/offers/search/": {
      "get": {
        "operationId": "searchOffers",
        "description": "Search through publicly listed trade offers.\nSupports sorting and filtering based on with multiple parameter combinations.\n\nOn Popularity sorts (``ordering`` includes ``reputation``) for lightly\nfiltered searches, results are reordered so each page shows at most\n``POPULARITY_MAX_OFFERS_PER_USER_PER_PAGE`` offers from the same user.\nPrice sorts and heavily filtered searches (coin + payment method) are\nunchanged.\n\n**API key scope:** `read`",
        "summary": "Search all offers.",
        "parameters": [
          {
            "in": "query",
            "name": "coin_currency",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "explode": true,
            "style": "form"
          },
          {
            "in": "query",
            "name": "country_code",
            "schema": {
              "type": "string"
            },
            "description": "\nTo prioritize given country in the list. If no offers found in the\ngiven country then other relevant offers may still show up.\n"
          },
          {
            "in": "query",
            "name": "country_code_exact",
            "schema": {
              "type": "string"
            },
            "description": "\nTo filter by given country, returns empty if no offers in given country.\n"
          },
          {
            "in": "query",
            "name": "created_by",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "in": "query",
            "name": "fiat_currency",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "explode": true,
            "style": "form"
          },
          {
            "in": "query",
            "name": "hide_new",
            "schema": {
              "type": "string"
            },
            "description": "Whether to hide offers from new users or not."
          },
          {
            "in": "query",
            "name": "last_seen",
            "schema": {
              "type": "string"
            },
            "description": "\n        Filter by last seen time of the trader.\n        Supported input: `\"30mins\"`, `\"24hours\"`, `\"1week\"`, `\"2weeks\"`, `\"1month\"`"
          },
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "description": "Number of results to return per page.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "offset",
            "required": false,
            "in": "query",
            "description": "The initial index from which to return the results.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "ordering",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "-coin_currency__priority",
                  "-coin_currency__symbol",
                  "-country_first",
                  "-created_by__completed_trades",
                  "-current_price_usd",
                  "-fiat_currency__priority",
                  "-fiat_currency__symbol",
                  "-local_currency_first",
                  "-payment_method__name",
                  "-payment_method__priority",
                  "-reputation",
                  "coin_currency__priority",
                  "coin_currency__symbol",
                  "country_first",
                  "created_by__completed_trades",
                  "current_price_usd",
                  "fiat_currency__priority",
                  "fiat_currency__symbol",
                  "local_currency_first",
                  "payment_method__name",
                  "payment_method__priority",
                  "reputation"
                ]
              }
            },
            "description": "Ordering\n\n* `coin_currency__priority` - Coin currency  priority\n* `-coin_currency__priority` - Coin currency  priority (descending)\n* `fiat_currency__priority` - Fiat currency  priority\n* `-fiat_currency__priority` - Fiat currency  priority (descending)\n* `coin_currency__symbol` - Coin currency  symbol\n* `-coin_currency__symbol` - Coin currency  symbol (descending)\n* `fiat_currency__symbol` - Fiat currency  symbol\n* `-fiat_currency__symbol` - Fiat currency  symbol (descending)\n* `payment_method__name` - Payment method  name\n* `-payment_method__name` - Payment method  name (descending)\n* `payment_method__priority` - Payment method  priority\n* `-payment_method__priority` - Payment method  priority (descending)\n* `current_price_usd` - Current price usd\n* `-current_price_usd` - Current price usd (descending)\n* `country_first` - Country first\n* `-country_first` - Country first (descending)\n* `local_currency_first` - Local currency first\n* `-local_currency_first` - Local currency first (descending)\n* `reputation` - Reputation\n* `-reputation` - Reputation (descending)\n* `created_by__completed_trades` - Created by  completed trades\n* `-created_by__completed_trades` - Created by  completed trades (descending)",
            "explode": false,
            "style": "form"
          },
          {
            "in": "query",
            "name": "payment_method",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "explode": true,
            "style": "form"
          },
          {
            "in": "query",
            "name": "trading_type",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "explode": true,
            "style": "form"
          },
          {
            "in": "query",
            "name": "username",
            "schema": {
              "type": "string"
            },
            "description": "Search by username of traders."
          }
        ],
        "tags": [
          "Market data"
        ],
        "security": [
          {
            "ApiKey": []
          },
          {}
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginatedOfferListList"
                },
                "examples": {
                  "Response": {
                    "value": {
                      "active_page": 1,
                      "count": 18,
                      "next": null,
                      "previous": null,
                      "offset": 0,
                      "limit": 5,
                      "total_pages": 4,
                      "results": [
                        {
                          "uuid": "cd6e7394-9b75-4f5e-9652-542befe5c55d",
                          "created_by": {
                            "username": "satoshi_au",
                            "activity_status": "active",
                            "activity_tooltip": "online",
                            "last_seen": 1793817600,
                            "is_legacy": false,
                            "user_uuid": "e98f2078-a4e7-4f59-908f-b5513be95bd6",
                            "hide_from_google": false,
                            "imported_total_trades": null,
                            "imported_volume": null,
                            "completed_trades": 182,
                            "platform_volume": 96000,
                            "feedback_score": "99.20000",
                            "avg_response_time": 4,
                            "is_kyc_verified": true,
                            "xp_level": "EXPERT"
                          },
                          "trading_type": {
                            "slug": "sell",
                            "name": "sell",
                            "opposite_name": "buy"
                          },
                          "coin_currency": {
                            "title": "Bitcoin",
                            "symbol": "BTC",
                            "token_standard": null,
                            "symbol_filename": "btc.svg",
                            "is_crypto": true,
                            "slug": "BTC"
                          },
                          "fiat_currency": {
                            "title": "United States Dollar",
                            "symbol": "USD",
                            "token_standard": null,
                            "symbol_filename": null,
                            "is_crypto": false,
                            "slug": "united-states-dollar"
                          },
                          "payment_method": {
                            "name": "Bank Transfer",
                            "slug": "bank-transfers"
                          },
                          "location_name": "Adelaide",
                          "country_code": "AU",
                          "min_trade_size": "50.0000000000",
                          "max_trade_size": "3000.0000000000",
                          "headline": "Fast BTC by bank transfer",
                          "sms_required": false,
                          "minimum_feedback": "0",
                          "price_formula_value": "104328.51",
                          "current_margin_percentage": "2.5000000000",
                          "slug": "buy-btc-for-usd-in-australia",
                          "automatic_cancel_time": "240",
                          "enforced_sizes": "",
                          "reputation": 1035,
                          "is_featured": false
                        }
                      ]
                    }
                  }
                }
              }
            },
            "description": ""
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "curl --request GET 'https://api.localcoinswap.com/api/v2/offers/search/?coin_currency=BTC&trading_type=sell&fiat_currency=USD'\n"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import requests\n\nresponse = requests.request(\n    \"GET\",\n    \"https://api.localcoinswap.com/api/v2/offers/search/?coin_currency=BTC&trading_type=sell&fiat_currency=USD\",\n)\nprint(response.status_code, response.text)\n"
          },
          {
            "lang": "javascript",
            "label": "JavaScript",
            "source": "const response = await fetch(\"https://api.localcoinswap.com/api/v2/offers/search/?coin_currency=BTC&trading_type=sell&fiat_currency=USD\", {\n  method: \"GET\",\n});\nconsole.log(response.status, await response.text());\n"
          }
        ],
        "x-apiKeyScope": "read"
      }
    },
    "/api/v2/offers/trade-types/": {
      "get": {
        "operationId": "listTradeTypes",
        "description": "The `trading_type` values an offer can have: `buy` or `sell`.\n\n**API key scope:** `read`",
        "summary": "Trade types.",
        "parameters": [
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "description": "Number of results to return per page.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "offset",
            "required": false,
            "in": "query",
            "description": "The initial index from which to return the results.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "tags": [
          "Market data"
        ],
        "security": [
          {
            "ApiKey": []
          },
          {}
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginatedMinimalTradeTypeList"
                },
                "examples": {
                  "Response": {
                    "value": {
                      "active_page": 1,
                      "count": 18,
                      "next": null,
                      "previous": null,
                      "offset": 0,
                      "limit": 5,
                      "total_pages": 4,
                      "results": [
                        {
                          "slug": "buy",
                          "name": "buy",
                          "opposite_name": "sell"
                        }
                      ]
                    }
                  }
                }
              }
            },
            "description": ""
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "curl --request GET 'https://api.localcoinswap.com/api/v2/offers/trade-types/' \\\n  --header \"Authorization: ApiKey $LCS_API_KEY\"\n"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import os\n\nimport requests\n\nresponse = requests.request(\n    \"GET\",\n    \"https://api.localcoinswap.com/api/v2/offers/trade-types/\",\n    headers={\"Authorization\": f\"ApiKey {os.environ['LCS_API_KEY']}\"},\n)\nprint(response.status_code, response.text)\n"
          },
          {
            "lang": "javascript",
            "label": "JavaScript",
            "source": "const response = await fetch(\"https://api.localcoinswap.com/api/v2/offers/trade-types/\", {\n  method: \"GET\",\n  headers: {\n    Authorization: `ApiKey ${process.env.LCS_API_KEY}`,\n  },\n});\nconsole.log(response.status, await response.text());\n"
          }
        ],
        "x-apiKeyScope": "read"
      }
    },
    "/api/v2/referrals/commission-payments/list/": {
      "get": {
        "operationId": "listCommissionPayments",
        "description": "BTC payouts sent to your payout address, newest first, with their\ntransaction hash.\n\n**API key scope:** `read`",
        "summary": "List your commission payouts.",
        "parameters": [
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "description": "Number of results to return per page.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "offset",
            "required": false,
            "in": "query",
            "description": "The initial index from which to return the results.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "tags": [
          "Referrals"
        ],
        "security": [
          {
            "ApiKey": []
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginatedCommissionPaymentListList"
                },
                "examples": {
                  "Response": {
                    "value": {
                      "active_page": 1,
                      "count": 18,
                      "next": null,
                      "previous": null,
                      "offset": 0,
                      "limit": 5,
                      "total_pages": 4,
                      "results": [
                        {
                          "id": 77,
                          "uuid": "1e037200-8b42-4d78-affc-4b6f76ccf479",
                          "to_address": "bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq",
                          "tx_hash": "b6f6991d03df0e2e04dafffcd6bc418aac66049e2cd74b80f14ac86db1e3f0da",
                          "amount": "0.003500000000000000",
                          "created": "2026-10-01T02:00:00Z"
                        }
                      ]
                    }
                  }
                }
              }
            },
            "description": ""
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "curl --request GET 'https://api.localcoinswap.com/api/v2/referrals/commission-payments/list/' \\\n  --header \"Authorization: ApiKey $LCS_API_KEY\"\n"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import os\n\nimport requests\n\nresponse = requests.request(\n    \"GET\",\n    \"https://api.localcoinswap.com/api/v2/referrals/commission-payments/list/\",\n    headers={\"Authorization\": f\"ApiKey {os.environ['LCS_API_KEY']}\"},\n)\nprint(response.status_code, response.text)\n"
          },
          {
            "lang": "javascript",
            "label": "JavaScript",
            "source": "const response = await fetch(\"https://api.localcoinswap.com/api/v2/referrals/commission-payments/list/\", {\n  method: \"GET\",\n  headers: {\n    Authorization: `ApiKey ${process.env.LCS_API_KEY}`,\n  },\n});\nconsole.log(response.status, await response.text());\n"
          }
        ],
        "x-apiKeyScope": "read"
      }
    },
    "/api/v2/referrals/my-referrals/": {
      "get": {
        "operationId": "listReferrals",
        "description": "Newest first, with the trades each completed and the BTC you earned\nfrom them.\n\n**API key scope:** `read`",
        "summary": "List the users you referred.",
        "parameters": [
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "description": "Number of results to return per page.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "offset",
            "required": false,
            "in": "query",
            "description": "The initial index from which to return the results.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "tags": [
          "Referrals"
        ],
        "security": [
          {
            "ApiKey": []
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginatedReferredUsersSerialierList"
                },
                "examples": {
                  "Response": {
                    "value": {
                      "active_page": 1,
                      "count": 18,
                      "next": null,
                      "previous": null,
                      "offset": 0,
                      "limit": 5,
                      "total_pages": 4,
                      "results": [
                        {
                          "completed_trades": 14,
                          "country_code": "AU",
                          "date_joined": "2026-02-03T11:02:41.118204Z",
                          "username": "hal_f",
                          "user_uuid": "11ae74df-3dcb-4752-9114-c8b7774faa49",
                          "earnings": "0.00084000"
                        }
                      ]
                    }
                  }
                }
              }
            },
            "description": ""
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "curl --request GET 'https://api.localcoinswap.com/api/v2/referrals/my-referrals/?limit=20' \\\n  --header \"Authorization: ApiKey $LCS_API_KEY\"\n"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import os\n\nimport requests\n\nresponse = requests.request(\n    \"GET\",\n    \"https://api.localcoinswap.com/api/v2/referrals/my-referrals/?limit=20\",\n    headers={\"Authorization\": f\"ApiKey {os.environ['LCS_API_KEY']}\"},\n)\nprint(response.status_code, response.text)\n"
          },
          {
            "lang": "javascript",
            "label": "JavaScript",
            "source": "const response = await fetch(\"https://api.localcoinswap.com/api/v2/referrals/my-referrals/?limit=20\", {\n  method: \"GET\",\n  headers: {\n    Authorization: `ApiKey ${process.env.LCS_API_KEY}`,\n  },\n});\nconsole.log(response.status, await response.text());\n"
          }
        ],
        "x-apiKeyScope": "read"
      }
    },
    "/api/v2/referrals/overview/": {
      "get": {
        "operationId": "getReferralOverview",
        "description": "Your lifetime, pending and paid referral commission in BTC (and in your\nlocal currency under `fiat_values`), how many users you referred and how\nmany of their trades earned you commission, and your payout settings.\nChanging the payout settings needs the `wallet` scope.\n\n**API key scope:** `read`",
        "summary": "Get your referral overview.",
        "tags": [
          "Referrals"
        ],
        "security": [
          {
            "ApiKey": []
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReferralCommission"
                },
                "examples": {
                  "Response": {
                    "value": {
                      "id": 412,
                      "user": {
                        "username": "satoshi_au",
                        "user_uuid": "e98f2078-a4e7-4f59-908f-b5513be95bd6",
                        "referral_code": "satoshi_au",
                        "local_currency_symbol": "AUD",
                        "hide_from_google": false
                      },
                      "total_amount": "0.004120000000000000",
                      "pending_amount": "0.000620000000000000",
                      "paid_amount": "0.003500000000000000",
                      "opt_in_next_payout": true,
                      "btc_payout_address": "bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq",
                      "show_on_leaderboard": false,
                      "label": null,
                      "fiat_values": {
                        "total_amount": 650.96,
                        "pending_amount": 97.96,
                        "paid_amount": 553.0
                      },
                      "total_referred_users": 9,
                      "total_referred_trades": 37
                    }
                  }
                }
              }
            },
            "description": ""
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "curl --request GET 'https://api.localcoinswap.com/api/v2/referrals/overview/' \\\n  --header \"Authorization: ApiKey $LCS_API_KEY\"\n"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import os\n\nimport requests\n\nresponse = requests.request(\n    \"GET\",\n    \"https://api.localcoinswap.com/api/v2/referrals/overview/\",\n    headers={\"Authorization\": f\"ApiKey {os.environ['LCS_API_KEY']}\"},\n)\nprint(response.status_code, response.text)\n"
          },
          {
            "lang": "javascript",
            "label": "JavaScript",
            "source": "const response = await fetch(\"https://api.localcoinswap.com/api/v2/referrals/overview/\", {\n  method: \"GET\",\n  headers: {\n    Authorization: `ApiKey ${process.env.LCS_API_KEY}`,\n  },\n});\nconsole.log(response.status, await response.text());\n"
          }
        ],
        "x-apiKeyScope": "read"
      }
    },
    "/api/v2/referrals/trade-commissions/list/": {
      "get": {
        "operationId": "listTradeCommissions",
        "description": "One row per trade by a user you referred, newest first: the BTC\ncommission, its `percent` of the trade fee, and whether it has been\npaid out yet.\n\n**API key scope:** `read`",
        "summary": "List your trade commissions.",
        "parameters": [
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "description": "Number of results to return per page.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "offset",
            "required": false,
            "in": "query",
            "description": "The initial index from which to return the results.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "tags": [
          "Referrals"
        ],
        "security": [
          {
            "ApiKey": []
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginatedTradeCommissionListList"
                },
                "examples": {
                  "Response": {
                    "value": {
                      "active_page": 1,
                      "count": 18,
                      "next": null,
                      "previous": null,
                      "offset": 0,
                      "limit": 5,
                      "total_pages": 4,
                      "results": [
                        {
                          "id": 9021,
                          "ref_user": {
                            "username": "hal_f",
                            "timezone": "Australia/Adelaide",
                            "local_currency_symbol": "AUD",
                            "bio": "",
                            "is_staff": false,
                            "is_email_verified": true,
                            "last_seen": 1793817600,
                            "cached_last_seen": 1793817600,
                            "profile_image": "https://pwa-cdn.localcoinswap.com/default_user.jpg",
                            "activity_status": "active",
                            "activity_tooltip": "online",
                            "feedback_score": "100.00000",
                            "completed_trades": 14,
                            "trades_30d": 3,
                            "platform_volume": 3600,
                            "platform_volume_30d": 750,
                            "avg_response_time": 6,
                            "user_uuid": "11ae74df-3dcb-4752-9114-c8b7774faa49",
                            "date_joined": "2026-02-03T11:02:41.118204Z",
                            "is_phone_verified": true,
                            "is_legacy": false,
                            "primary_language": "en",
                            "lang_list": "en",
                            "times_blocked": 0,
                            "times_followed": 0,
                            "imported_total_trades": null,
                            "imported_volume": null,
                            "on_holiday": false,
                            "non_custodial": true,
                            "xp_level": "APPRENTICE",
                            "xp": 14,
                            "stats": {
                              "trades_started": 16,
                              "trades_started_completed": 14
                            }
                          },
                          "trade": {
                            "uuid": "f3c6120b-d63a-4a1f-9d18-f181c4be29c2",
                            "time_created": 1793830445,
                            "coin_currency": {
                              "title": "Ethereum",
                              "symbol": "ETH",
                              "token_standard": null,
                              "symbol_filename": "eth.svg",
                              "is_crypto": true,
                              "slug": "ETH"
                            },
                            "fiat_currency": {
                              "title": "Australian Dollar",
                              "symbol": "AUD",
                              "token_standard": null,
                              "symbol_filename": null,
                              "is_crypto": false,
                              "slug": "australian-dollar"
                            }
                          },
                          "amount": "0.000120000000000000",
                          "percent": "20.000000000000000000",
                          "is_paid": false,
                          "created": "2026-11-03T09:41:55.120000Z"
                        }
                      ]
                    }
                  }
                }
              }
            },
            "description": ""
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "curl --request GET 'https://api.localcoinswap.com/api/v2/referrals/trade-commissions/list/?limit=20' \\\n  --header \"Authorization: ApiKey $LCS_API_KEY\"\n"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import os\n\nimport requests\n\nresponse = requests.request(\n    \"GET\",\n    \"https://api.localcoinswap.com/api/v2/referrals/trade-commissions/list/?limit=20\",\n    headers={\"Authorization\": f\"ApiKey {os.environ['LCS_API_KEY']}\"},\n)\nprint(response.status_code, response.text)\n"
          },
          {
            "lang": "javascript",
            "label": "JavaScript",
            "source": "const response = await fetch(\"https://api.localcoinswap.com/api/v2/referrals/trade-commissions/list/?limit=20\", {\n  method: \"GET\",\n  headers: {\n    Authorization: `ApiKey ${process.env.LCS_API_KEY}`,\n  },\n});\nconsole.log(response.status, await response.text());\n"
          }
        ],
        "x-apiKeyScope": "read"
      }
    },
    "/api/v2/swaps/": {
      "get": {
        "operationId": "listSwaps",
        "description": "Only swaps you created.\n\n**API key scope:** `read`",
        "summary": "List your swaps.",
        "parameters": [
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "description": "Number of results to return per page.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "offset",
            "required": false,
            "in": "query",
            "description": "The initial index from which to return the results.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "tags": [
          "Swaps"
        ],
        "security": [
          {
            "ApiKey": []
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginatedSwapReadList"
                },
                "examples": {
                  "Response": {
                    "value": {
                      "active_page": 1,
                      "count": 18,
                      "next": null,
                      "previous": null,
                      "offset": 0,
                      "limit": 5,
                      "total_pages": 4,
                      "results": [
                        {
                          "provider": "CHANGENOW",
                          "swap_id": "7fb484616da1e8",
                          "user": {
                            "username": "satoshi_au",
                            "activity_status": "active",
                            "activity_tooltip": "online",
                            "is_email_verified": true,
                            "is_phone_verified": true,
                            "phone_country_code": "AU",
                            "avg_response_time": 4,
                            "completed_trades": 182,
                            "platform_volume": 96000,
                            "feedback_score": "99.20000",
                            "last_seen": 1793817600,
                            "is_legacy": false,
                            "bio": "",
                            "user_uuid": "e98f2078-a4e7-4f59-908f-b5513be95bd6",
                            "on_holiday": false,
                            "hide_from_google": false,
                            "date_joined": "2021-06-21T05:24:49.500000Z",
                            "profile_image": "https://pwa-cdn.localcoinswap.com/default_user.jpg",
                            "is_kyc_verified": true,
                            "xp_level": "EXPERT"
                          },
                          "status": "WAITING",
                          "from_crypto": {
                            "title": "Ethereum",
                            "symbol": "ETH",
                            "token_standard": null,
                            "symbol_filename": "eth.svg",
                            "is_crypto": true,
                            "slug": "ETH"
                          },
                          "to_currency": {
                            "title": "Bitcoin",
                            "symbol": "BTC",
                            "token_standard": null,
                            "symbol_filename": "btc.svg",
                            "is_crypto": true,
                            "slug": "BTC"
                          },
                          "from_amount": "0.100000000000000000",
                          "initial_to_amount": "0.003134120000000000",
                          "addresses_json": {
                            "payout_address": "bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq",
                            "refund_address": "0x8456D17ef805E5B75dB839275356973E757f5a3E",
                            "payin_address": "0x85b481F4e3691AD6aFF51Bf8e919dC1C3c0B6D5D"
                          },
                          "uuid": "e96433ff-9b9d-4c05-a98e-8bf726318efd",
                          "tx_json": {},
                          "final_to_amount": null,
                          "created": "2026-11-02T09:14:03.512000Z",
                          "provider_created_at": "2026-11-02T09:14:02Z"
                        }
                      ]
                    }
                  }
                }
              }
            },
            "description": ""
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "curl --request GET 'https://api.localcoinswap.com/api/v2/swaps/' \\\n  --header \"Authorization: ApiKey $LCS_API_KEY\"\n"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import os\n\nimport requests\n\nresponse = requests.request(\n    \"GET\",\n    \"https://api.localcoinswap.com/api/v2/swaps/\",\n    headers={\"Authorization\": f\"ApiKey {os.environ['LCS_API_KEY']}\"},\n)\nprint(response.status_code, response.text)\n"
          },
          {
            "lang": "javascript",
            "label": "JavaScript",
            "source": "const response = await fetch(\"https://api.localcoinswap.com/api/v2/swaps/\", {\n  method: \"GET\",\n  headers: {\n    Authorization: `ApiKey ${process.env.LCS_API_KEY}`,\n  },\n});\nconsole.log(response.status, await response.text());\n"
          }
        ],
        "x-apiKeyScope": "read"
      },
      "post": {
        "operationId": "createSwap",
        "description": "Create a swap trade.\nThis can be done only by authenticated users.\n\n**API key scope:** `trade`",
        "summary": "Create swap.",
        "tags": [
          "Swaps"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SwapCreateRequest"
              },
              "examples": {
                "Request": {
                  "value": {
                    "from_crypto": "ETH",
                    "to_currency": "BTC",
                    "from_amount": "0.1",
                    "initial_to_amount": "0.00313412",
                    "provider": "CHANGENOW",
                    "addresses_json": {
                      "payout_address": "bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq",
                      "refund_address": "0x8456D17ef805E5B75dB839275356973E757f5a3E"
                    }
                  }
                }
              }
            }
          },
          "required": true
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SwapUuid"
                },
                "examples": {
                  "Response": {
                    "value": {
                      "uuid": "e96433ff-9b9d-4c05-a98e-8bf726318efd",
                      "status": "NEW",
                      "provider": "CHANGENOW",
                      "from_crypto": "ETH",
                      "to_currency": "BTC",
                      "from_amount": "0.100000000000000000",
                      "addresses_json": {
                        "payout_address": "bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq",
                        "refund_address": "0x8456D17ef805E5B75dB839275356973E757f5a3E"
                      },
                      "initial_to_amount": "0.003134120000000000",
                      "provider_created_at": null
                    }
                  }
                }
              }
            },
            "description": ""
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "curl --request POST 'https://api.localcoinswap.com/api/v2/swaps/' \\\n  --header \"Authorization: ApiKey $LCS_API_KEY\" \\\n  --header 'Content-Type: application/json' \\\n  --data-raw '{\"from_crypto\": \"ETH\", \"to_currency\": \"BTC\", \"from_amount\": \"0.1\", \"initial_to_amount\": \"0.00313412\", \"provider\": \"CHANGENOW\", \"addresses_json\": {\"payout_address\": \"bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq\", \"refund_address\": \"0x8456D17ef805E5B75dB839275356973E757f5a3E\"}}'\n"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import os\n\nimport requests\n\nresponse = requests.request(\n    \"POST\",\n    \"https://api.localcoinswap.com/api/v2/swaps/\",\n    headers={\"Authorization\": f\"ApiKey {os.environ['LCS_API_KEY']}\"},\n    json={\n        \"from_crypto\": \"ETH\",\n        \"to_currency\": \"BTC\",\n        \"from_amount\": \"0.1\",\n        \"initial_to_amount\": \"0.00313412\",\n        \"provider\": \"CHANGENOW\",\n        \"addresses_json\": {\n            \"payout_address\": \"bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq\",\n            \"refund_address\": \"0x8456D17ef805E5B75dB839275356973E757f5a3E\",\n        },\n    },\n)\nprint(response.status_code, response.text)\n"
          },
          {
            "lang": "javascript",
            "label": "JavaScript",
            "source": "const response = await fetch(\"https://api.localcoinswap.com/api/v2/swaps/\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `ApiKey ${process.env.LCS_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\n    \"from_crypto\": \"ETH\",\n    \"to_currency\": \"BTC\",\n    \"from_amount\": \"0.1\",\n    \"initial_to_amount\": \"0.00313412\",\n    \"provider\": \"CHANGENOW\",\n    \"addresses_json\": {\n      \"payout_address\": \"bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq\",\n      \"refund_address\": \"0x8456D17ef805E5B75dB839275356973E757f5a3E\"\n    }\n  }),\n});\nconsole.log(response.status, await response.text());\n"
          }
        ],
        "x-apiKeyScope": "trade"
      }
    },
    "/api/v2/swaps/{uuid}/": {
      "get": {
        "operationId": "getSwap",
        "description": "Only the swap's creator can read it. Once the swap is `WAITING`,\n`addresses_json.payin_address` holds the address to send funds to.\n\n**API key scope:** `read`",
        "summary": "Get swap by UUID.",
        "parameters": [
          {
            "in": "path",
            "name": "uuid",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "required": true
          }
        ],
        "tags": [
          "Swaps"
        ],
        "security": [
          {
            "ApiKey": []
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SwapRead"
                },
                "examples": {
                  "Response": {
                    "value": {
                      "provider": "CHANGENOW",
                      "swap_id": "7fb484616da1e8",
                      "user": {
                        "username": "satoshi_au",
                        "activity_status": "active",
                        "activity_tooltip": "online",
                        "is_email_verified": true,
                        "is_phone_verified": true,
                        "phone_country_code": "AU",
                        "avg_response_time": 4,
                        "completed_trades": 182,
                        "platform_volume": 96000,
                        "feedback_score": "99.20000",
                        "last_seen": 1793817600,
                        "is_legacy": false,
                        "bio": "",
                        "user_uuid": "e98f2078-a4e7-4f59-908f-b5513be95bd6",
                        "on_holiday": false,
                        "hide_from_google": false,
                        "date_joined": "2021-06-21T05:24:49.500000Z",
                        "profile_image": "https://pwa-cdn.localcoinswap.com/default_user.jpg",
                        "is_kyc_verified": true,
                        "xp_level": "EXPERT"
                      },
                      "status": "WAITING",
                      "from_crypto": {
                        "title": "Ethereum",
                        "symbol": "ETH",
                        "token_standard": null,
                        "symbol_filename": "eth.svg",
                        "is_crypto": true,
                        "slug": "ETH"
                      },
                      "to_currency": {
                        "title": "Bitcoin",
                        "symbol": "BTC",
                        "token_standard": null,
                        "symbol_filename": "btc.svg",
                        "is_crypto": true,
                        "slug": "BTC"
                      },
                      "from_amount": "0.100000000000000000",
                      "initial_to_amount": "0.003134120000000000",
                      "addresses_json": {
                        "payout_address": "bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq",
                        "refund_address": "0x8456D17ef805E5B75dB839275356973E757f5a3E",
                        "payin_address": "0x85b481F4e3691AD6aFF51Bf8e919dC1C3c0B6D5D"
                      },
                      "uuid": "e96433ff-9b9d-4c05-a98e-8bf726318efd",
                      "tx_json": {},
                      "final_to_amount": null,
                      "created": "2026-11-02T09:14:03.512000Z",
                      "provider_created_at": "2026-11-02T09:14:02Z"
                    }
                  }
                }
              }
            },
            "description": ""
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "curl --request GET 'https://api.localcoinswap.com/api/v2/swaps/e96433ff-9b9d-4c05-a98e-8bf726318efd/' \\\n  --header \"Authorization: ApiKey $LCS_API_KEY\"\n"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import os\n\nimport requests\n\nresponse = requests.request(\n    \"GET\",\n    \"https://api.localcoinswap.com/api/v2/swaps/e96433ff-9b9d-4c05-a98e-8bf726318efd/\",\n    headers={\"Authorization\": f\"ApiKey {os.environ['LCS_API_KEY']}\"},\n)\nprint(response.status_code, response.text)\n"
          },
          {
            "lang": "javascript",
            "label": "JavaScript",
            "source": "const response = await fetch(\"https://api.localcoinswap.com/api/v2/swaps/e96433ff-9b9d-4c05-a98e-8bf726318efd/\", {\n  method: \"GET\",\n  headers: {\n    Authorization: `ApiKey ${process.env.LCS_API_KEY}`,\n  },\n});\nconsole.log(response.status, await response.text());\n"
          }
        ],
        "x-apiKeyScope": "read"
      },
      "patch": {
        "operationId": "markSwapFunded",
        "description": "After sending the funds to `addresses_json.payin_address`, move the\nswap from `WAITING` to `FUNDING` and record the pay-in transaction:\n`{\"status\": \"FUNDING\", \"tx_json\": {\"payin_transaction_hash\": \"...\"}}`.\n\nOptional: the swap also progresses once the provider sees the deposit.\nOnly the swap's creator can do this.\n\n**API key scope:** `trade`",
        "summary": "Mark swap as funded.",
        "parameters": [
          {
            "in": "path",
            "name": "uuid",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "required": true
          }
        ],
        "tags": [
          "Swaps"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PatchedSwapUpdateRequest"
              },
              "examples": {
                "Request": {
                  "value": {
                    "status": "FUNDING",
                    "tx_json": {
                      "payin_transaction_hash": "0x9c1e4b7f0d2a6e83f5c1b2a49d7e0f36a8c5b1e2d4f6a7b8"
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SwapRead"
                },
                "examples": {
                  "Response": {
                    "value": {
                      "provider": "CHANGENOW",
                      "swap_id": "7fb484616da1e8",
                      "user": {
                        "username": "satoshi_au",
                        "activity_status": "active",
                        "activity_tooltip": "online",
                        "is_email_verified": true,
                        "is_phone_verified": true,
                        "phone_country_code": "AU",
                        "avg_response_time": 4,
                        "completed_trades": 182,
                        "platform_volume": 96000,
                        "feedback_score": "99.20000",
                        "last_seen": 1793817600,
                        "is_legacy": false,
                        "bio": "",
                        "user_uuid": "e98f2078-a4e7-4f59-908f-b5513be95bd6",
                        "on_holiday": false,
                        "hide_from_google": false,
                        "date_joined": "2021-06-21T05:24:49.500000Z",
                        "profile_image": "https://pwa-cdn.localcoinswap.com/default_user.jpg",
                        "is_kyc_verified": true,
                        "xp_level": "EXPERT"
                      },
                      "status": "FUNDING",
                      "from_crypto": {
                        "title": "Ethereum",
                        "symbol": "ETH",
                        "token_standard": null,
                        "symbol_filename": "eth.svg",
                        "is_crypto": true,
                        "slug": "ETH"
                      },
                      "to_currency": {
                        "title": "Bitcoin",
                        "symbol": "BTC",
                        "token_standard": null,
                        "symbol_filename": "btc.svg",
                        "is_crypto": true,
                        "slug": "BTC"
                      },
                      "from_amount": "0.100000000000000000",
                      "initial_to_amount": "0.003134120000000000",
                      "addresses_json": {
                        "payout_address": "bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq",
                        "refund_address": "0x8456D17ef805E5B75dB839275356973E757f5a3E",
                        "payin_address": "0x85b481F4e3691AD6aFF51Bf8e919dC1C3c0B6D5D"
                      },
                      "uuid": "e96433ff-9b9d-4c05-a98e-8bf726318efd",
                      "tx_json": {
                        "payin_transaction_hash": "0x9c1e4b7f0d2a6e83f5c1b2a49d7e0f36a8c5b1e2d4f6a7b8"
                      },
                      "final_to_amount": null,
                      "created": "2026-11-02T09:14:03.512000Z",
                      "provider_created_at": "2026-11-02T09:14:02Z"
                    }
                  }
                }
              }
            },
            "description": ""
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "curl --request PATCH 'https://api.localcoinswap.com/api/v2/swaps/e96433ff-9b9d-4c05-a98e-8bf726318efd/' \\\n  --header \"Authorization: ApiKey $LCS_API_KEY\" \\\n  --header 'Content-Type: application/json' \\\n  --data-raw '{\"status\": \"FUNDING\", \"tx_json\": {\"payin_transaction_hash\": \"0x9c1e4b7f0d2a6e83f5c1b2a49d7e0f36a8c5b1e2d4f6a7b8\"}}'\n"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import os\n\nimport requests\n\nresponse = requests.request(\n    \"PATCH\",\n    \"https://api.localcoinswap.com/api/v2/swaps/e96433ff-9b9d-4c05-a98e-8bf726318efd/\",\n    headers={\"Authorization\": f\"ApiKey {os.environ['LCS_API_KEY']}\"},\n    json={\n        \"status\": \"FUNDING\",\n        \"tx_json\": {\n            \"payin_transaction_hash\": \"0x9c1e4b7f0d2a6e83f5c1b2a49d7e0f36a8c5b1e2d4f6a7b8\",\n        },\n    },\n)\nprint(response.status_code, response.text)\n"
          },
          {
            "lang": "javascript",
            "label": "JavaScript",
            "source": "const response = await fetch(\"https://api.localcoinswap.com/api/v2/swaps/e96433ff-9b9d-4c05-a98e-8bf726318efd/\", {\n  method: \"PATCH\",\n  headers: {\n    Authorization: `ApiKey ${process.env.LCS_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\n    \"status\": \"FUNDING\",\n    \"tx_json\": {\n      \"payin_transaction_hash\": \"0x9c1e4b7f0d2a6e83f5c1b2a49d7e0f36a8c5b1e2d4f6a7b8\"\n    }\n  }),\n});\nconsole.log(response.status, await response.text());\n"
          }
        ],
        "x-apiKeyScope": "trade"
      }
    },
    "/api/v2/swaps/active-swaps/": {
      "get": {
        "operationId": "listActiveSwaps",
        "description": "Swaps from `WAITING` through `SENDING`: waiting for your deposit or\nbeing exchanged.\n\n**API key scope:** `read`",
        "summary": "List your swaps in progress.",
        "parameters": [
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "description": "Number of results to return per page.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "offset",
            "required": false,
            "in": "query",
            "description": "The initial index from which to return the results.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "tags": [
          "Swaps"
        ],
        "security": [
          {
            "ApiKey": []
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginatedSwapReadList"
                },
                "examples": {
                  "Response": {
                    "value": {
                      "active_page": 1,
                      "count": 18,
                      "next": null,
                      "previous": null,
                      "offset": 0,
                      "limit": 5,
                      "total_pages": 4,
                      "results": [
                        {
                          "provider": "CHANGENOW",
                          "swap_id": "7fb484616da1e8",
                          "user": {
                            "username": "satoshi_au",
                            "activity_status": "active",
                            "activity_tooltip": "online",
                            "is_email_verified": true,
                            "is_phone_verified": true,
                            "phone_country_code": "AU",
                            "avg_response_time": 4,
                            "completed_trades": 182,
                            "platform_volume": 96000,
                            "feedback_score": "99.20000",
                            "last_seen": 1793817600,
                            "is_legacy": false,
                            "bio": "",
                            "user_uuid": "e98f2078-a4e7-4f59-908f-b5513be95bd6",
                            "on_holiday": false,
                            "hide_from_google": false,
                            "date_joined": "2021-06-21T05:24:49.500000Z",
                            "profile_image": "https://pwa-cdn.localcoinswap.com/default_user.jpg",
                            "is_kyc_verified": true,
                            "xp_level": "EXPERT"
                          },
                          "status": "WAITING",
                          "from_crypto": {
                            "title": "Ethereum",
                            "symbol": "ETH",
                            "token_standard": null,
                            "symbol_filename": "eth.svg",
                            "is_crypto": true,
                            "slug": "ETH"
                          },
                          "to_currency": {
                            "title": "Bitcoin",
                            "symbol": "BTC",
                            "token_standard": null,
                            "symbol_filename": "btc.svg",
                            "is_crypto": true,
                            "slug": "BTC"
                          },
                          "from_amount": "0.100000000000000000",
                          "initial_to_amount": "0.003134120000000000",
                          "addresses_json": {
                            "payout_address": "bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq",
                            "refund_address": "0x8456D17ef805E5B75dB839275356973E757f5a3E",
                            "payin_address": "0x85b481F4e3691AD6aFF51Bf8e919dC1C3c0B6D5D"
                          },
                          "uuid": "e96433ff-9b9d-4c05-a98e-8bf726318efd",
                          "tx_json": {},
                          "final_to_amount": null,
                          "created": "2026-11-02T09:14:03.512000Z",
                          "provider_created_at": "2026-11-02T09:14:02Z"
                        }
                      ]
                    }
                  }
                }
              }
            },
            "description": ""
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "curl --request GET 'https://api.localcoinswap.com/api/v2/swaps/e96433ff-9b9d-4c05-a98e-8bf726318efd/' \\\n  --header \"Authorization: ApiKey $LCS_API_KEY\"\n"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import os\n\nimport requests\n\nresponse = requests.request(\n    \"GET\",\n    \"https://api.localcoinswap.com/api/v2/swaps/e96433ff-9b9d-4c05-a98e-8bf726318efd/\",\n    headers={\"Authorization\": f\"ApiKey {os.environ['LCS_API_KEY']}\"},\n)\nprint(response.status_code, response.text)\n"
          },
          {
            "lang": "javascript",
            "label": "JavaScript",
            "source": "const response = await fetch(\"https://api.localcoinswap.com/api/v2/swaps/e96433ff-9b9d-4c05-a98e-8bf726318efd/\", {\n  method: \"GET\",\n  headers: {\n    Authorization: `ApiKey ${process.env.LCS_API_KEY}`,\n  },\n});\nconsole.log(response.status, await response.text());\n"
          }
        ],
        "x-apiKeyScope": "read"
      }
    },
    "/api/v2/swaps/estimate-swap-amount/": {
      "post": {
        "operationId": "estimateSwapAmount",
        "description": "Endpoint to return estimated swap amount for the exchange.\nAlso returns time estimate for trade.\n\n**API key scope:** `read`",
        "summary": "Estimated swap amount.",
        "tags": [
          "Swaps"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EstimateSwapAmountRequest"
              },
              "examples": {
                "Request": {
                  "value": {
                    "from_crypto": "ETH",
                    "to_currency": "BTC",
                    "amount": "1"
                  }
                }
              }
            }
          },
          "required": true
        },
        "security": [
          {
            "ApiKey": []
          },
          {}
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SwapEstimateResponse"
                },
                "examples": {
                  "Response": {
                    "value": {
                      "estimatedAmount": "0.0313412",
                      "transactionSpeedForecast": "10-60",
                      "warningMessage": null
                    }
                  }
                }
              }
            },
            "description": ""
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "curl --request POST 'https://api.localcoinswap.com/api/v2/swaps/estimate-swap-amount/' \\\n  --header 'Content-Type: application/json' \\\n  --data-raw '{\"from_crypto\": \"ETH\", \"to_currency\": \"BTC\", \"amount\": \"1\"}'\n"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import requests\n\nresponse = requests.request(\n    \"POST\",\n    \"https://api.localcoinswap.com/api/v2/swaps/estimate-swap-amount/\",\n    json={\n        \"from_crypto\": \"ETH\",\n        \"to_currency\": \"BTC\",\n        \"amount\": \"1\",\n    },\n)\nprint(response.status_code, response.text)\n"
          },
          {
            "lang": "javascript",
            "label": "JavaScript",
            "source": "const response = await fetch(\"https://api.localcoinswap.com/api/v2/swaps/estimate-swap-amount/\", {\n  method: \"POST\",\n  headers: {\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\n    \"from_crypto\": \"ETH\",\n    \"to_currency\": \"BTC\",\n    \"amount\": \"1\"\n  }),\n});\nconsole.log(response.status, await response.text());\n"
          }
        ],
        "x-apiKeyScope": "read"
      }
    },
    "/api/v2/swaps/min-swap-amount/{from_crypto}/{to_currency}/": {
      "get": {
        "operationId": "getMinSwapAmount",
        "description": "Endpoint to return minimal payment amount required to make a swap.\nIf you try to swap less, the transaction will most likely fail.\n\n**API key scope:** `read`",
        "summary": "Minimal swap amount.",
        "parameters": [
          {
            "in": "path",
            "name": "from_crypto",
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-zA-Z-]+$"
            },
            "required": true
          },
          {
            "in": "path",
            "name": "to_currency",
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-zA-Z-]+$"
            },
            "required": true
          }
        ],
        "tags": [
          "Swaps"
        ],
        "security": [
          {
            "ApiKey": []
          },
          {}
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MinSwapAmountResponse"
                },
                "examples": {
                  "Response": {
                    "value": {
                      "minAmount": "0.0726799"
                    }
                  }
                }
              }
            },
            "description": ""
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "curl --request GET 'https://api.localcoinswap.com/api/v2/swaps/min-swap-amount/ETH/BTC/'\n"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import requests\n\nresponse = requests.request(\n    \"GET\",\n    \"https://api.localcoinswap.com/api/v2/swaps/min-swap-amount/ETH/BTC/\",\n)\nprint(response.status_code, response.text)\n"
          },
          {
            "lang": "javascript",
            "label": "JavaScript",
            "source": "const response = await fetch(\"https://api.localcoinswap.com/api/v2/swaps/min-swap-amount/ETH/BTC/\", {\n  method: \"GET\",\n});\nconsole.log(response.status, await response.text());\n"
          }
        ],
        "x-apiKeyScope": "read"
      }
    },
    "/api/v2/swaps/past-swaps/": {
      "get": {
        "operationId": "listPastSwaps",
        "description": "Swaps that ended: `FINISHED`, `FAILED`, `REFUNDED` or `EXPIRED`.\n\n**API key scope:** `read`",
        "summary": "List your finished swaps.",
        "parameters": [
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "description": "Number of results to return per page.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "offset",
            "required": false,
            "in": "query",
            "description": "The initial index from which to return the results.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "tags": [
          "Swaps"
        ],
        "security": [
          {
            "ApiKey": []
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginatedSwapReadList"
                },
                "examples": {
                  "Response": {
                    "value": {
                      "active_page": 1,
                      "count": 18,
                      "next": null,
                      "previous": null,
                      "offset": 0,
                      "limit": 5,
                      "total_pages": 4,
                      "results": [
                        {
                          "provider": "CHANGENOW",
                          "swap_id": "7fb484616da1e8",
                          "user": {
                            "username": "satoshi_au",
                            "activity_status": "active",
                            "activity_tooltip": "online",
                            "is_email_verified": true,
                            "is_phone_verified": true,
                            "phone_country_code": "AU",
                            "avg_response_time": 4,
                            "completed_trades": 182,
                            "platform_volume": 96000,
                            "feedback_score": "99.20000",
                            "last_seen": 1793817600,
                            "is_legacy": false,
                            "bio": "",
                            "user_uuid": "e98f2078-a4e7-4f59-908f-b5513be95bd6",
                            "on_holiday": false,
                            "hide_from_google": false,
                            "date_joined": "2021-06-21T05:24:49.500000Z",
                            "profile_image": "https://pwa-cdn.localcoinswap.com/default_user.jpg",
                            "is_kyc_verified": true,
                            "xp_level": "EXPERT"
                          },
                          "status": "WAITING",
                          "from_crypto": {
                            "title": "Ethereum",
                            "symbol": "ETH",
                            "token_standard": null,
                            "symbol_filename": "eth.svg",
                            "is_crypto": true,
                            "slug": "ETH"
                          },
                          "to_currency": {
                            "title": "Bitcoin",
                            "symbol": "BTC",
                            "token_standard": null,
                            "symbol_filename": "btc.svg",
                            "is_crypto": true,
                            "slug": "BTC"
                          },
                          "from_amount": "0.100000000000000000",
                          "initial_to_amount": "0.003134120000000000",
                          "addresses_json": {
                            "payout_address": "bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq",
                            "refund_address": "0x8456D17ef805E5B75dB839275356973E757f5a3E",
                            "payin_address": "0x85b481F4e3691AD6aFF51Bf8e919dC1C3c0B6D5D"
                          },
                          "uuid": "e96433ff-9b9d-4c05-a98e-8bf726318efd",
                          "tx_json": {},
                          "final_to_amount": null,
                          "created": "2026-11-02T09:14:03.512000Z",
                          "provider_created_at": "2026-11-02T09:14:02Z"
                        }
                      ]
                    }
                  }
                }
              }
            },
            "description": ""
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "curl --request GET 'https://api.localcoinswap.com/api/v2/swaps/e96433ff-9b9d-4c05-a98e-8bf726318efd/' \\\n  --header \"Authorization: ApiKey $LCS_API_KEY\"\n"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import os\n\nimport requests\n\nresponse = requests.request(\n    \"GET\",\n    \"https://api.localcoinswap.com/api/v2/swaps/e96433ff-9b9d-4c05-a98e-8bf726318efd/\",\n    headers={\"Authorization\": f\"ApiKey {os.environ['LCS_API_KEY']}\"},\n)\nprint(response.status_code, response.text)\n"
          },
          {
            "lang": "javascript",
            "label": "JavaScript",
            "source": "const response = await fetch(\"https://api.localcoinswap.com/api/v2/swaps/e96433ff-9b9d-4c05-a98e-8bf726318efd/\", {\n  method: \"GET\",\n  headers: {\n    Authorization: `ApiKey ${process.env.LCS_API_KEY}`,\n  },\n});\nconsole.log(response.status, await response.text());\n"
          }
        ],
        "x-apiKeyScope": "read"
      }
    },
    "/api/v2/trade-utxos/BTC/": {
      "get": {
        "operationId": "listBtcTradeUtxos",
        "description": "BTC that finished escrows paid to you and that you haven't spent yet, at\nmost 500, with the keys and fee rates needed to sweep them to your wallet.\nYour client builds and signs that transaction and sends it to `publish/`.\n\n**API key scope:** `wallet`",
        "summary": "List BTC trade UTXOs.",
        "tags": [
          "Wallet"
        ],
        "security": [
          {
            "ApiKey": []
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TradeUtxosResponse"
                  }
                },
                "examples": {
                  "Response": {
                    "value": [
                      {
                        "results": [
                          {
                            "secret_uid": "7f3a...",
                            "prev_tx": "0200000001...",
                            "tx_hash": "b6f6991d03df0e2e04dafffcd6bc418aac66049e2cd74b80f14ac86db1e3f0da",
                            "tx_pos": 0,
                            "value": 82000,
                            "witnessScript": "6382012088a8...",
                            "trade": "f3c6120b-d63a-4a1f-9d18-f181c4be29c2",
                            "trade_secret_enc": "04ebbc...",
                            "tradeInstruction": "01",
                            "type": "escrow"
                          }
                        ],
                        "from_address": "bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq",
                        "address_enc_keys": [
                          {
                            "address": "bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq",
                            "encrypted_private_key": "8c21...",
                            "encrypted_private_key_iv": "0d6e4f1a92b37c58e1a0f4d2b6c93e71"
                          }
                        ],
                        "network_fees": {
                          "min": "4.00",
                          "avg": "4.00",
                          "max": "12.00",
                          "recommended": "6.60"
                        },
                        "local_currency_symbol": "AUD",
                        "unit_amount_in_local_currency": "158000.0000"
                      }
                    ]
                  }
                }
              }
            },
            "description": ""
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "curl --request GET 'https://api.localcoinswap.com/api/v2/trade-utxos/BTC/' \\\n  --header \"Authorization: ApiKey $LCS_API_KEY\"\n"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import os\n\nimport requests\n\nresponse = requests.request(\n    \"GET\",\n    \"https://api.localcoinswap.com/api/v2/trade-utxos/BTC/\",\n    headers={\"Authorization\": f\"ApiKey {os.environ['LCS_API_KEY']}\"},\n)\nprint(response.status_code, response.text)\n"
          },
          {
            "lang": "javascript",
            "label": "JavaScript",
            "source": "const response = await fetch(\"https://api.localcoinswap.com/api/v2/trade-utxos/BTC/\", {\n  method: \"GET\",\n  headers: {\n    Authorization: `ApiKey ${process.env.LCS_API_KEY}`,\n  },\n});\nconsole.log(response.status, await response.text());\n"
          }
        ],
        "x-apiKeyScope": "wallet"
      }
    },
    "/api/v2/trades/{uuid}/": {
      "get": {
        "operationId": "getTrade",
        "description": "Full details of a trade you are the buyer or seller of; anyone else gets\n403. `crypto_in_local_currency` is the trade's value in your account's\nlocal currency. `tx_meta`, `buyer_meta` and `seller_meta` carry the\nescrow data each side's wallet needs to fund, release or cancel.\n\n**API key scope:** `read`",
        "summary": "Get a trade.",
        "parameters": [
          {
            "in": "path",
            "name": "uuid",
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
            },
            "required": true
          }
        ],
        "tags": [
          "Trades"
        ],
        "security": [
          {
            "ApiKey": []
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TradeRead"
                },
                "examples": {
                  "Response": {
                    "value": {
                      "id": 22949,
                      "ad": {
                        "uuid": "6ab3a6f8-5a70-41d2-80c9-8f91b27f85bd",
                        "slug": "buy-eth-for-aud-in-australia",
                        "is_active": true,
                        "created_by": {
                          "username": "satoshi_au",
                          "activity_status": "active",
                          "activity_tooltip": "online",
                          "is_email_verified": true,
                          "is_phone_verified": true,
                          "phone_country_code": "AU",
                          "avg_response_time": 4,
                          "completed_trades": 182,
                          "platform_volume": 96000,
                          "feedback_score": "99.20000",
                          "last_seen": 1793817600,
                          "is_legacy": false,
                          "user_uuid": "e98f2078-a4e7-4f59-908f-b5513be95bd6",
                          "hide_from_google": false,
                          "date_joined": "2021-06-21T05:24:49.500000Z",
                          "profile_image": "https://pwa-cdn.localcoinswap.com/default_user.jpg",
                          "bio": "",
                          "on_holiday": false,
                          "is_kyc_verified": true,
                          "xp_level": "EXPERT"
                        },
                        "trading_type": {
                          "id": 2,
                          "slug": "sell",
                          "name": "sell",
                          "action_name": "Selling",
                          "opposite_name": "buy",
                          "opposite_action_name": "Buying"
                        },
                        "coin_currency": {
                          "title": "Ethereum",
                          "symbol": "ETH",
                          "token_standard": null,
                          "symbol_filename": "eth.svg",
                          "is_crypto": true,
                          "slug": "ETH"
                        },
                        "fiat_currency": {
                          "title": "Australian Dollar",
                          "symbol": "AUD",
                          "token_standard": null,
                          "symbol_filename": null,
                          "is_crypto": false,
                          "slug": "australian-dollar"
                        },
                        "payment_method": {
                          "name": "Bank Transfer",
                          "slug": "bank-transfers"
                        },
                        "location_name": "Adelaide",
                        "country_code": "AU",
                        "custodial_type": 1,
                        "min_trade_size": "50.0000000000",
                        "max_trade_size": "3000.0000000000",
                        "trading_conditions": "Bank transfers from accounts in your own name only.",
                        "trading_condition_keys": [],
                        "headline": "Fast ETH by bank transfer",
                        "hidden": false,
                        "enforced_sizes": "",
                        "blocked_countries": "",
                        "automatic_cancel_time": "240",
                        "sms_required": false,
                        "minimum_feedback": "0",
                        "price_formula": {
                          "display_formula": "2.5",
                          "prefix_formula": "exchange.ethaud|v||1.025|n||*|o",
                          "pricing_type": "MARGIN",
                          "market": "cmc"
                        },
                        "price_formula_value": "3048.78",
                        "current_margin_percentage": "2.5000000000"
                      },
                      "status": "FUND_PAID",
                      "status_meta": {},
                      "uuid": "f3c6120b-d63a-4a1f-9d18-f181c4be29c2",
                      "contract_responder": {
                        "username": "hal_f",
                        "activity_status": "active",
                        "activity_tooltip": "online",
                        "is_email_verified": true,
                        "is_phone_verified": true,
                        "phone_country_code": "AU",
                        "avg_response_time": 4,
                        "completed_trades": 12,
                        "platform_volume": 96000,
                        "feedback_score": "99.20000",
                        "last_seen": 1793817600,
                        "is_legacy": false,
                        "user_uuid": "11ae74df-3dcb-4752-9114-c8b7774faa49",
                        "hide_from_google": false,
                        "date_joined": "2021-06-21T05:24:49.500000Z",
                        "profile_image": "https://pwa-cdn.localcoinswap.com/default_user.jpg"
                      },
                      "buyer": {
                        "username": "hal_f",
                        "activity_status": "active",
                        "activity_tooltip": "online",
                        "is_email_verified": true,
                        "is_phone_verified": true,
                        "phone_country_code": "AU",
                        "avg_response_time": 4,
                        "completed_trades": 12,
                        "platform_volume": 96000,
                        "feedback_score": "99.20000",
                        "last_seen": 1793817600,
                        "is_legacy": false,
                        "user_uuid": "11ae74df-3dcb-4752-9114-c8b7774faa49",
                        "hide_from_google": false,
                        "date_joined": "2021-06-21T05:24:49.500000Z",
                        "profile_image": "https://pwa-cdn.localcoinswap.com/default_user.jpg"
                      },
                      "seller": {
                        "username": "satoshi_au",
                        "activity_status": "active",
                        "activity_tooltip": "online",
                        "is_email_verified": true,
                        "is_phone_verified": true,
                        "phone_country_code": "AU",
                        "avg_response_time": 4,
                        "completed_trades": 182,
                        "platform_volume": 96000,
                        "feedback_score": "99.20000",
                        "last_seen": 1793817600,
                        "is_legacy": false,
                        "user_uuid": "e98f2078-a4e7-4f59-908f-b5513be95bd6",
                        "hide_from_google": false,
                        "date_joined": "2021-06-21T05:24:49.500000Z",
                        "profile_image": "https://pwa-cdn.localcoinswap.com/default_user.jpg"
                      },
                      "disputed_by": null,
                      "fiat_amount": "250.000000000000000000",
                      "coin_amount": "0.082000000000000000",
                      "time_of_expiry": 1793844845,
                      "time_created": 1793830445,
                      "coin_currency": {
                        "title": "Ethereum",
                        "symbol": "ETH",
                        "token_standard": null,
                        "symbol_filename": "eth.svg",
                        "is_crypto": true,
                        "slug": "ETH",
                        "id": 2,
                        "chain": null,
                        "active_status": "currency_active"
                      },
                      "fiat_currency": {
                        "title": "Australian Dollar",
                        "symbol": "AUD",
                        "token_standard": null,
                        "symbol_filename": null,
                        "is_crypto": false,
                        "slug": "australian-dollar",
                        "id": 10002,
                        "chain": null,
                        "active_status": "currency_active"
                      },
                      "crypto_in_usd": "164.120000000000000000",
                      "responder_geo": {},
                      "tx_meta": {
                        "escrow_version": "v2",
                        "escrow_contract": "0x3a362a1966FF5aAB35298E1565bDa2c9FB124e41",
                        "trade_hash": "0x5d0f2c7a1b9e48c3a6f1d2e0b7c4a9f8e3d2c1b0a9f8e7d6c5b4a39281706f5e",
                        "escrow_unsigned_tx": {
                          "to": "0x3a362a1966FF5aAB35298E1565bDa2c9FB124e41",
                          "data": "0x6c1b3f2a...",
                          "value": "82820000000000000",
                          "nonce": 27,
                          "gas": 180000,
                          "gasPrice": "4400000000",
                          "chainId": 1
                        },
                        "escrow_signed_tx": "0x02f9017201..."
                      },
                      "buyer_meta": {
                        "address": "0x7D1f14c29825b052004A5eF02d8F0BC7E2c9A2A0",
                        "wallet_type": "webwallet",
                        "address_pubkey": "04a3f1c2...",
                        "public_key": "03b7e94d..."
                      },
                      "seller_meta": {
                        "address": "0x2B5AD5c4795c026514f8317c7a215E218DcCD6cF",
                        "wallet_type": "webwallet",
                        "address_pubkey": "04c81e5b...",
                        "public_key": "02f4a6d1..."
                      },
                      "non_custodial": true,
                      "amount_to_escrow": "0.082820000000000000",
                      "fees": "0.000820000000000000",
                      "btc_escrow_data": null,
                      "eth_escrow_data": {
                        "approve_tx": null,
                        "escrow_tx": "0x9c1e4b7f0d2a6e83f5c1b2a49d7e0f36a8c5b1e2d4f6a7b8c9d0e1f2a3b4c5d6",
                        "release_tx": null,
                        "dispute_tx": null,
                        "cancel_tx": null
                      },
                      "multisig_escrow_data": null,
                      "local_currency_symbol": "AUD",
                      "crypto_in_local_currency": "250.12"
                    }
                  }
                }
              }
            },
            "description": ""
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "curl --request GET 'https://api.localcoinswap.com/api/v2/trades/f3c6120b-d63a-4a1f-9d18-f181c4be29c2/' \\\n  --header \"Authorization: ApiKey $LCS_API_KEY\"\n"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import os\n\nimport requests\n\nresponse = requests.request(\n    \"GET\",\n    \"https://api.localcoinswap.com/api/v2/trades/f3c6120b-d63a-4a1f-9d18-f181c4be29c2/\",\n    headers={\"Authorization\": f\"ApiKey {os.environ['LCS_API_KEY']}\"},\n)\nprint(response.status_code, response.text)\n"
          },
          {
            "lang": "javascript",
            "label": "JavaScript",
            "source": "const response = await fetch(\"https://api.localcoinswap.com/api/v2/trades/f3c6120b-d63a-4a1f-9d18-f181c4be29c2/\", {\n  method: \"GET\",\n  headers: {\n    Authorization: `ApiKey ${process.env.LCS_API_KEY}`,\n  },\n});\nconsole.log(response.status, await response.text());\n"
          }
        ],
        "x-apiKeyScope": "read"
      }
    },
    "/api/v2/trades/{uuid}/feedback/": {
      "get": {
        "operationId": "getTradeFeedback",
        "description": "The feedback you left on this trade, or 404 if you haven't left any.\n\n**API key scope:** `read`",
        "summary": "Get your feedback on a trade.",
        "parameters": [
          {
            "in": "path",
            "name": "uuid",
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
            },
            "required": true
          }
        ],
        "tags": [
          "Feedback"
        ],
        "security": [
          {
            "ApiKey": []
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TradeFeedbackRead"
                },
                "examples": {
                  "Response": {
                    "value": {
                      "feedback_for": {
                        "username": "satoshi_au",
                        "local_currency_symbol": "AUD",
                        "bio": "",
                        "is_staff": false,
                        "user_uuid": "e98f2078-a4e7-4f59-908f-b5513be95bd6",
                        "date_joined": "2021-06-21T05:24:49.500000Z",
                        "primary_language": "en",
                        "non_custodial": true,
                        "hide_from_google": false
                      },
                      "rating": "5.0",
                      "feedback": "Fast and friendly.",
                      "feedback_by": {
                        "username": "hal_f",
                        "local_currency_symbol": "AUD",
                        "bio": "",
                        "is_staff": false,
                        "user_uuid": "11ae74df-3dcb-4752-9114-c8b7774faa49",
                        "date_joined": "2024-02-03T11:02:41.118204Z",
                        "primary_language": "en",
                        "non_custodial": true,
                        "hide_from_google": false
                      },
                      "id": 7780,
                      "rating_percentage": 100.0,
                      "time_created": 1793832100,
                      "trade": "f3c6120b-d63a-4a1f-9d18-f181c4be29c2"
                    }
                  }
                }
              }
            },
            "description": ""
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "curl --request GET 'https://api.localcoinswap.com/api/v2/trades/f3c6120b-d63a-4a1f-9d18-f181c4be29c2/feedback/' \\\n  --header \"Authorization: ApiKey $LCS_API_KEY\"\n"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import os\n\nimport requests\n\nresponse = requests.request(\n    \"GET\",\n    \"https://api.localcoinswap.com/api/v2/trades/f3c6120b-d63a-4a1f-9d18-f181c4be29c2/feedback/\",\n    headers={\"Authorization\": f\"ApiKey {os.environ['LCS_API_KEY']}\"},\n)\nprint(response.status_code, response.text)\n"
          },
          {
            "lang": "javascript",
            "label": "JavaScript",
            "source": "const response = await fetch(\"https://api.localcoinswap.com/api/v2/trades/f3c6120b-d63a-4a1f-9d18-f181c4be29c2/feedback/\", {\n  method: \"GET\",\n  headers: {\n    Authorization: `ApiKey ${process.env.LCS_API_KEY}`,\n  },\n});\nconsole.log(response.status, await response.text());\n"
          }
        ],
        "x-apiKeyScope": "read"
      }
    },
    "/api/v2/trades/{uuid}/invoice/": {
      "get": {
        "operationId": "getTradeReceipt",
        "description": "The PDF receipt of a completed trade (including one completed by dispute\nresolution). Only the buyer, the seller or staff can download it; anyone\nelse, and trades that aren't completed, get a 404.\n\n**Rate limit:** 100 per day\n\n**API key scope:** `read`",
        "summary": "Download a trade receipt.",
        "parameters": [
          {
            "in": "path",
            "name": "uuid",
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
            },
            "required": true
          }
        ],
        "tags": [
          "Trades"
        ],
        "security": [
          {
            "ApiKey": []
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            },
            "description": ""
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "curl --request GET 'https://api.localcoinswap.com/api/v2/trades/f3c6120b-d63a-4a1f-9d18-f181c4be29c2/invoice/' \\\n  --header \"Authorization: ApiKey $LCS_API_KEY\"\n"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import os\n\nimport requests\n\nresponse = requests.request(\n    \"GET\",\n    \"https://api.localcoinswap.com/api/v2/trades/f3c6120b-d63a-4a1f-9d18-f181c4be29c2/invoice/\",\n    headers={\"Authorization\": f\"ApiKey {os.environ['LCS_API_KEY']}\"},\n)\nprint(response.status_code, response.text)\n"
          },
          {
            "lang": "javascript",
            "label": "JavaScript",
            "source": "const response = await fetch(\"https://api.localcoinswap.com/api/v2/trades/f3c6120b-d63a-4a1f-9d18-f181c4be29c2/invoice/\", {\n  method: \"GET\",\n  headers: {\n    Authorization: `ApiKey ${process.env.LCS_API_KEY}`,\n  },\n});\nconsole.log(response.status, await response.text());\n"
          }
        ],
        "x-rateLimit": [
          {
            "requests": 100,
            "seconds": 86400
          }
        ],
        "x-apiKeyScope": "read"
      }
    },
    "/api/v2/trades/{uuid}/status/": {
      "get": {
        "operationId": "getTradeStatus",
        "description": "Just the `uuid` and `status`. API keys can't use the WebSocket feeds the\nwebsite uses, so poll this to follow a trade, at most twice a minute per\naccount. Buyer, seller or staff only; anyone else gets a 404.\n\n**Rate limit:** 2 per minute\n\n**API key scope:** `read`",
        "summary": "Get a trade's status.",
        "parameters": [
          {
            "in": "path",
            "name": "uuid",
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
            },
            "required": true
          }
        ],
        "tags": [
          "Trades"
        ],
        "security": [
          {
            "ApiKey": []
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TradeUuid"
                },
                "examples": {
                  "Response": {
                    "value": {
                      "uuid": "f3c6120b-d63a-4a1f-9d18-f181c4be29c2",
                      "status": "FUND_PAID"
                    }
                  }
                }
              }
            },
            "description": ""
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "curl --request GET 'https://api.localcoinswap.com/api/v2/trades/f3c6120b-d63a-4a1f-9d18-f181c4be29c2/status/' \\\n  --header \"Authorization: ApiKey $LCS_API_KEY\"\n"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import os\n\nimport requests\n\nresponse = requests.request(\n    \"GET\",\n    \"https://api.localcoinswap.com/api/v2/trades/f3c6120b-d63a-4a1f-9d18-f181c4be29c2/status/\",\n    headers={\"Authorization\": f\"ApiKey {os.environ['LCS_API_KEY']}\"},\n)\nprint(response.status_code, response.text)\n"
          },
          {
            "lang": "javascript",
            "label": "JavaScript",
            "source": "const response = await fetch(\"https://api.localcoinswap.com/api/v2/trades/f3c6120b-d63a-4a1f-9d18-f181c4be29c2/status/\", {\n  method: \"GET\",\n  headers: {\n    Authorization: `ApiKey ${process.env.LCS_API_KEY}`,\n  },\n});\nconsole.log(response.status, await response.text());\n"
          }
        ],
        "x-rateLimit": [
          {
            "requests": 2,
            "seconds": 60
          }
        ],
        "x-apiKeyScope": "read"
      }
    },
    "/api/v2/trades/dispute/{uuid}/": {
      "post": {
        "operationId": "openDispute",
        "description": "Moves the trade to `DISPUTED` and opens a ticket for staff, who\ndecide who gets the escrow. Only the buyer or seller can dispute, and\nonly once the escrow is funded. Withdraw it with `withdrawDispute`.\n\nWhat to send besides `description` depends on the coin, because\nstaff settle on chain with your signatures:\n\n- ETH and ERC20 on the v2 escrow, BNB, BEP20, TRX, TRC20:\n  `extra_data` with your dispute signature (**required**).\n- LTC: `release_signature` and `cancel_signature`.\n- BTC: nothing else; the escrow secrets are already held.\n\n**API key scope:** `trade`",
        "summary": "Open a dispute.",
        "parameters": [
          {
            "in": "path",
            "name": "uuid",
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
            },
            "required": true
          }
        ],
        "tags": [
          "Trades"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DisputeRequest"
              },
              "examples": {
                "Request": {
                  "value": {
                    "description": "I paid by bank transfer 2 hours ago; seller is not replying.",
                    "extra_data": "{\"r\": \"0x1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f\", \"s\": \"0x2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e\", \"v\": 27}"
                  }
                }
              }
            }
          },
          "required": true
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DisputeOpened"
                },
                "examples": {
                  "Response": {
                    "value": {
                      "message": "Ticket generated successfully"
                    }
                  }
                }
              }
            },
            "description": ""
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "curl --request POST 'https://api.localcoinswap.com/api/v2/trades/dispute/f3c6120b-d63a-4a1f-9d18-f181c4be29c2/' \\\n  --header \"Authorization: ApiKey $LCS_API_KEY\" \\\n  --header 'Content-Type: application/json' \\\n  --data-raw '{\"description\": \"I paid by bank transfer 2 hours ago; seller is not replying.\", \"extra_data\": \"{\\\"r\\\": \\\"0x1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f\\\", \\\"s\\\": \\\"0x2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e\\\", \\\"v\\\": 27}\"}'\n"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import os\n\nimport requests\n\nresponse = requests.request(\n    \"POST\",\n    \"https://api.localcoinswap.com/api/v2/trades/dispute/f3c6120b-d63a-4a1f-9d18-f181c4be29c2/\",\n    headers={\"Authorization\": f\"ApiKey {os.environ['LCS_API_KEY']}\"},\n    json={\n        \"description\": \"I paid by bank transfer 2 hours ago; seller is not replying.\",\n        \"extra_data\": \"{\\\"r\\\": \\\"0x1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f\\\", \\\"s\\\": \\\"0x2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e\\\", \\\"v\\\": 27}\",\n    },\n)\nprint(response.status_code, response.text)\n"
          },
          {
            "lang": "javascript",
            "label": "JavaScript",
            "source": "const response = await fetch(\"https://api.localcoinswap.com/api/v2/trades/dispute/f3c6120b-d63a-4a1f-9d18-f181c4be29c2/\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `ApiKey ${process.env.LCS_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\n    \"description\": \"I paid by bank transfer 2 hours ago; seller is not replying.\",\n    \"extra_data\": \"{\\\"r\\\": \\\"0x1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f\\\", \\\"s\\\": \\\"0x2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e\\\", \\\"v\\\": 27}\"\n  }),\n});\nconsole.log(response.status, await response.text());\n"
          }
        ],
        "x-apiKeyScope": "trade"
      }
    },
    "/api/v2/trades/feedback/create/": {
      "post": {
        "operationId": "createFeedback",
        "description": "Rate the other trader 1 to 5 stars, once per trade. The trade must be\nfinished: after a normal completion both sides can leave feedback; after\na dispute only the side it was resolved for can.\n\n**Rate limit:** 3 per hour\n\n**API key scope:** `trade`",
        "summary": "Leave feedback on a trade.",
        "tags": [
          "Feedback"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TradeFeedbackCreateRequest"
              },
              "examples": {
                "Request": {
                  "value": {
                    "trade": "f3c6120b-d63a-4a1f-9d18-f181c4be29c2",
                    "rating": "5",
                    "feedback": "Fast and friendly."
                  }
                }
              }
            }
          },
          "required": true
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TradeFeedbackRead"
                },
                "examples": {
                  "Response": {
                    "value": {
                      "feedback_for": {
                        "username": "satoshi_au",
                        "local_currency_symbol": "AUD",
                        "bio": "",
                        "is_staff": false,
                        "user_uuid": "e98f2078-a4e7-4f59-908f-b5513be95bd6",
                        "date_joined": "2021-06-21T05:24:49.500000Z",
                        "primary_language": "en",
                        "non_custodial": true,
                        "hide_from_google": false
                      },
                      "rating": "5.0",
                      "feedback": "Fast and friendly.",
                      "feedback_by": {
                        "username": "hal_f",
                        "local_currency_symbol": "AUD",
                        "bio": "",
                        "is_staff": false,
                        "user_uuid": "11ae74df-3dcb-4752-9114-c8b7774faa49",
                        "date_joined": "2024-02-03T11:02:41.118204Z",
                        "primary_language": "en",
                        "non_custodial": true,
                        "hide_from_google": false
                      },
                      "id": 7780,
                      "rating_percentage": 100.0,
                      "time_created": 1793832100,
                      "trade": "f3c6120b-d63a-4a1f-9d18-f181c4be29c2"
                    }
                  }
                }
              }
            },
            "description": ""
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "curl --request POST 'https://api.localcoinswap.com/api/v2/trades/feedback/create/' \\\n  --header \"Authorization: ApiKey $LCS_API_KEY\" \\\n  --header 'Content-Type: application/json' \\\n  --data-raw '{\"trade\": \"f3c6120b-d63a-4a1f-9d18-f181c4be29c2\", \"rating\": \"5\", \"feedback\": \"Fast and friendly.\"}'\n"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import os\n\nimport requests\n\nresponse = requests.request(\n    \"POST\",\n    \"https://api.localcoinswap.com/api/v2/trades/feedback/create/\",\n    headers={\"Authorization\": f\"ApiKey {os.environ['LCS_API_KEY']}\"},\n    json={\n        \"trade\": \"f3c6120b-d63a-4a1f-9d18-f181c4be29c2\",\n        \"rating\": \"5\",\n        \"feedback\": \"Fast and friendly.\",\n    },\n)\nprint(response.status_code, response.text)\n"
          },
          {
            "lang": "javascript",
            "label": "JavaScript",
            "source": "const response = await fetch(\"https://api.localcoinswap.com/api/v2/trades/feedback/create/\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `ApiKey ${process.env.LCS_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\n    \"trade\": \"f3c6120b-d63a-4a1f-9d18-f181c4be29c2\",\n    \"rating\": \"5\",\n    \"feedback\": \"Fast and friendly.\"\n  }),\n});\nconsole.log(response.status, await response.text());\n"
          }
        ],
        "x-rateLimit": [
          {
            "requests": 3,
            "seconds": 3600
          }
        ],
        "x-apiKeyScope": "trade"
      }
    },
    "/api/v2/trades/feedback/list/": {
      "get": {
        "operationId": "listFeedback",
        "description": "Feedback a user received (`feedback_for`) or left (`feedback_by`), by\ntheir `user_uuid`, newest first. One of the two is required. Filter by\n`rating` (1 to 5); `count` gives the total for each filter. At most 10\nper page.\n\n**API key scope:** `read`",
        "summary": "List feedback.",
        "parameters": [
          {
            "in": "query",
            "name": "feedback_by",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "in": "query",
            "name": "feedback_for",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "description": "Number of results to return per page.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "offset",
            "required": false,
            "in": "query",
            "description": "The initial index from which to return the results.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "rating",
            "schema": {
              "type": "number"
            }
          }
        ],
        "tags": [
          "Feedback"
        ],
        "security": [
          {
            "ApiKey": []
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginatedFeedbackListList"
                },
                "examples": {
                  "Response": {
                    "value": {
                      "active_page": 1,
                      "count": 18,
                      "next": null,
                      "previous": null,
                      "offset": 0,
                      "limit": 5,
                      "total_pages": 4,
                      "results": [
                        {
                          "feedback_for": {
                            "username": "satoshi_au",
                            "local_currency_symbol": "AUD",
                            "bio": "",
                            "is_staff": false,
                            "user_uuid": "e98f2078-a4e7-4f59-908f-b5513be95bd6",
                            "date_joined": "2021-06-21T05:24:49.500000Z",
                            "primary_language": "en",
                            "non_custodial": true,
                            "hide_from_google": false
                          },
                          "rating": "5.0",
                          "feedback": "Fast and friendly.",
                          "feedback_by": {
                            "username": "hal_f",
                            "local_currency_symbol": "AUD",
                            "bio": "",
                            "is_staff": false,
                            "user_uuid": "11ae74df-3dcb-4752-9114-c8b7774faa49",
                            "date_joined": "2024-02-03T11:02:41.118204Z",
                            "primary_language": "en",
                            "non_custodial": true,
                            "hide_from_google": false
                          },
                          "id": 7780,
                          "rating_percentage": 100.0,
                          "time_created": 1793832100
                        }
                      ]
                    }
                  }
                }
              }
            },
            "description": ""
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "curl --request GET 'https://api.localcoinswap.com/api/v2/trades/feedback/list/?feedback_for=e98f2078-a4e7-4f59-908f-b5513be95bd6&rating=5' \\\n  --header \"Authorization: ApiKey $LCS_API_KEY\"\n"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import os\n\nimport requests\n\nresponse = requests.request(\n    \"GET\",\n    \"https://api.localcoinswap.com/api/v2/trades/feedback/list/?feedback_for=e98f2078-a4e7-4f59-908f-b5513be95bd6&rating=5\",\n    headers={\"Authorization\": f\"ApiKey {os.environ['LCS_API_KEY']}\"},\n)\nprint(response.status_code, response.text)\n"
          },
          {
            "lang": "javascript",
            "label": "JavaScript",
            "source": "const response = await fetch(\"https://api.localcoinswap.com/api/v2/trades/feedback/list/?feedback_for=e98f2078-a4e7-4f59-908f-b5513be95bd6&rating=5\", {\n  method: \"GET\",\n  headers: {\n    Authorization: `ApiKey ${process.env.LCS_API_KEY}`,\n  },\n});\nconsole.log(response.status, await response.text());\n"
          }
        ],
        "x-apiKeyScope": "read"
      }
    },
    "/api/v2/trades/history/": {
      "get": {
        "operationId": "exportTradeHistory",
        "description": "A CSV of your completed trades, including those completed or cancelled by\ndispute resolution, newest first. Times are in your account's timezone.\n\nOptional `start_date` and `end_date` (YYYY-MM-DD) filter by time created,\nin your timezone. Send both or neither.\n\n**API key scope:** `read`",
        "summary": "Download trade history.",
        "parameters": [
          {
            "in": "query",
            "name": "end_date",
            "schema": {
              "type": "string",
              "format": "date"
            },
            "description": "YYYY-MM-DD, in your timezone."
          },
          {
            "in": "query",
            "name": "start_date",
            "schema": {
              "type": "string",
              "format": "date"
            },
            "description": "YYYY-MM-DD, in your timezone."
          }
        ],
        "tags": [
          "Trades"
        ],
        "security": [
          {
            "ApiKey": []
          }
        ],
        "responses": {
          "200": {
            "content": {
              "text/csv": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                },
                "examples": {
                  "Response": {
                    "value": "UUID,Time created,Time completed,Status,Buyer,Seller,Crypto Amount,Cryptocurrency,Local Currency Amount,Local Currency,Market Value,Trading Fee,Offer UUID,Payment Method\r\nf3c6120b-d63a-4a1f-9d18-f181c4be29c2,2026-03-02 09:14:05 AEDT+1100,2026-03-02 09:41:55 AEDT+1100,COMPLETED,satoshi_au,hal_f,0.082000000000000000,ETH,250.00,AUD,251.37,0.000820000000000000,6ab3a6f8-5a70-41d2-80c9-8f91b27f85bd,Bank Transfer\r\n"
                  }
                }
              }
            },
            "description": ""
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "curl --request GET 'https://api.localcoinswap.com/api/v2/trades/history/?start_date=2026-01-01&end_date=2026-03-31' \\\n  --header \"Authorization: ApiKey $LCS_API_KEY\"\n"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import os\n\nimport requests\n\nresponse = requests.request(\n    \"GET\",\n    \"https://api.localcoinswap.com/api/v2/trades/history/?start_date=2026-01-01&end_date=2026-03-31\",\n    headers={\"Authorization\": f\"ApiKey {os.environ['LCS_API_KEY']}\"},\n)\nprint(response.status_code, response.text)\n"
          },
          {
            "lang": "javascript",
            "label": "JavaScript",
            "source": "const response = await fetch(\"https://api.localcoinswap.com/api/v2/trades/history/?start_date=2026-01-01&end_date=2026-03-31\", {\n  method: \"GET\",\n  headers: {\n    Authorization: `ApiKey ${process.env.LCS_API_KEY}`,\n  },\n});\nconsole.log(response.status, await response.text());\n"
          }
        ],
        "x-apiKeyScope": "read"
      }
    },
    "/api/v2/trades/list/": {
      "get": {
        "operationId": "listTrades",
        "description": "Trades where you are the buyer or the seller, newest first. Use\n`stage=live` for open trades and `stage=past` for finished ones. With\n`user`, at most 20 trades are returned per page.\n\n**API key scope:** `read`",
        "summary": "List your trades.",
        "parameters": [
          {
            "in": "query",
            "name": "coin_currency",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "explode": true,
            "style": "form"
          },
          {
            "in": "query",
            "name": "fiat_currency",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "explode": true,
            "style": "form"
          },
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "description": "Number of results to return per page.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "offset",
            "required": false,
            "in": "query",
            "description": "The initial index from which to return the results.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "ordering",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "-time_created",
                  "time_created"
                ]
              }
            },
            "description": "Ordering\n\n* `time_created` - Time created\n* `-time_created` - Time created (descending)",
            "explode": false,
            "style": "form"
          },
          {
            "in": "query",
            "name": "payment_method",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "explode": true,
            "style": "form"
          },
          {
            "in": "query",
            "name": "stage",
            "schema": {
              "type": "string",
              "enum": [
                "live",
                "past"
              ]
            },
            "description": "\nEnum: `\"live\"`, `\"past\"`.\n\n\nUseful when you only want to view all live/ongoing trades for example.\n\n\n* `live` - live\n* `past` - past"
          },
          {
            "in": "query",
            "name": "status",
            "schema": {
              "type": "string",
              "enum": [
                "ACCEPTED",
                "BROADCASTING_ESCROW",
                "BROADCASTING_ESCROW_FAILED",
                "BROADCASTING_RELEASE",
                "BROADCASTING_RELEASE_FAILED",
                "CANCELLATION_REJECTED",
                "CANCELLATION_REQUESTED",
                "CANCELLED",
                "CANCELLED_AFTER_ESCROW",
                "COMPLETED",
                "CREATED",
                "CRYPTO_ESC",
                "CRYPTO_ESC_FAILED",
                "CRYPTO_REL",
                "CRYPTO_REL_FAILED",
                "DISPUTED",
                "DISPUTE_RESOLVE_BUYER",
                "DISPUTE_RESOLVE_SELLER",
                "EXPIRED",
                "FUND_PAID",
                "FUND_RECEIVED",
                "REJECTED",
                "TRANSFER_APPROVED",
                "WAITING_FOR_CRYPTO_RELEASE_CONFIRMS",
                "WAITING_FOR_DISPUTE_CONFIRMS",
                "WAITING_FOR_ESCROW",
                "WAITING_FOR_MIN_APPROVE_CONFIRMS",
                "WAITING_FOR_MIN_ESCROW_CONFIRMS",
                "WAITING_FOR_TRANSFER_APPROVE"
              ]
            },
            "description": "* `CREATED` - Created\n* `ACCEPTED` - Accepted\n* `REJECTED` - Rejected\n* `WAITING_FOR_ESCROW` - Waiting for escrow\n* `BROADCASTING_ESCROW` - Broadcasting escrow\n* `BROADCASTING_ESCROW_FAILED` - Broadcasting escrow failed\n* `WAITING_FOR_MIN_ESCROW_CONFIRMS` - Awaiting min escrow confs\n* `CRYPTO_ESC` - Crypto escrowed\n* `CRYPTO_ESC_FAILED` - Crypto escrow failed\n* `FUND_PAID` - Payment done\n* `FUND_RECEIVED` - Payment received\n* `COMPLETED` - Completed\n* `EXPIRED` - Expired\n* `DISPUTED` - Disputed\n* `WAITING_FOR_DISPUTE_CONFIRMS` - Awaiting min dispute confs\n* `DISPUTE_RESOLVE_BUYER` - Dispute released to buyer\n* `DISPUTE_RESOLVE_SELLER` - Dispute reverted to seller\n* `CANCELLATION_REQUESTED` - Cancellation requested\n* `CANCELLED` - Cancelled\n* `CANCELLED_AFTER_ESCROW` - Cancelled after escrow\n* `CANCELLATION_REJECTED` - Cancellation rejected\n* `BROADCASTING_RELEASE` - Broadcasting release\n* `BROADCASTING_RELEASE_FAILED` - Broadcasting release failed\n* `WAITING_FOR_CRYPTO_RELEASE_CONFIRMS` - Awaiting min release confs\n* `CRYPTO_REL` - Released\n* `CRYPTO_REL_FAILED` - Release failed\n* `WAITING_FOR_MIN_APPROVE_CONFIRMS` - Awaiting min approval confs\n* `TRANSFER_APPROVED` - Transfer approved\n* `WAITING_FOR_TRANSFER_APPROVE` - Waiting for transfer approval"
          },
          {
            "in": "query",
            "name": "text",
            "schema": {
              "type": "string"
            },
            "description": "Search by username of traders."
          },
          {
            "in": "query",
            "name": "trade_format",
            "schema": {
              "type": "string",
              "enum": [
                "non-custodial",
                "standard"
              ]
            },
            "description": "\nEnum: `\"standard\"`, `\"non-custodial\"`.\n\n\n* `standard` - standard\n* `non-custodial` - non-custodial"
          },
          {
            "in": "query",
            "name": "trade_status",
            "schema": {
              "type": "string",
              "enum": [
                "CANCELLED",
                "CANCELLED_AFTER_ESCROW",
                "COMPLETED",
                "DISPUTE_RESOLVE_BUYER",
                "DISPUTE_RESOLVE_SELLER"
              ]
            },
            "description": "* `COMPLETED` - COMPLETED\n* `CANCELLED` - CANCELLED\n* `CANCELLED_AFTER_ESCROW` - CANCELLED_AFTER_ESCROW\n* `DISPUTE_RESOLVE_BUYER` - DISPUTE_RESOLVE_BUYER\n* `DISPUTE_RESOLVE_SELLER` - DISPUTE_RESOLVE_SELLER"
          },
          {
            "in": "query",
            "name": "trade_type",
            "schema": {
              "type": "string",
              "enum": [
                "buy",
                "sell"
              ]
            },
            "description": "\nEnum: `\"buy\"`, `\"sell\"`.\n\n\n* `buy` - buy\n* `sell` - sell"
          },
          {
            "in": "query",
            "name": "user",
            "schema": {
              "type": "string"
            },
            "description": "Filter by exact username."
          }
        ],
        "tags": [
          "Trades"
        ],
        "security": [
          {
            "ApiKey": []
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginatedTradeListList"
                },
                "examples": {
                  "Response": {
                    "value": {
                      "active_page": 1,
                      "count": 18,
                      "next": null,
                      "previous": null,
                      "offset": 0,
                      "limit": 5,
                      "total_pages": 4,
                      "results": [
                        {
                          "status": "FUND_PAID",
                          "uuid": "f3c6120b-d63a-4a1f-9d18-f181c4be29c2",
                          "offer": {
                            "uuid": "6ab3a6f8-5a70-41d2-80c9-8f91b27f85bd",
                            "slug": "buy-eth-for-aud-in-australia",
                            "is_active": true,
                            "created_by": {
                              "username": "satoshi_au",
                              "activity_status": "active",
                              "activity_tooltip": "online",
                              "is_email_verified": true,
                              "is_phone_verified": true,
                              "phone_country_code": "AU",
                              "avg_response_time": 4,
                              "completed_trades": 182,
                              "platform_volume": 96000,
                              "feedback_score": "99.20000",
                              "last_seen": 1793817600,
                              "is_legacy": false,
                              "user_uuid": "e98f2078-a4e7-4f59-908f-b5513be95bd6",
                              "hide_from_google": false,
                              "date_joined": "2021-06-21T05:24:49.500000Z",
                              "profile_image": "https://pwa-cdn.localcoinswap.com/default_user.jpg",
                              "bio": "",
                              "on_holiday": false,
                              "is_kyc_verified": true,
                              "xp_level": "EXPERT"
                            },
                            "trading_type": {
                              "id": 2,
                              "slug": "sell",
                              "name": "sell",
                              "action_name": "Selling",
                              "opposite_name": "buy",
                              "opposite_action_name": "Buying"
                            },
                            "coin_currency": {
                              "title": "Ethereum",
                              "symbol": "ETH",
                              "token_standard": null,
                              "symbol_filename": "eth.svg",
                              "is_crypto": true,
                              "slug": "ETH"
                            },
                            "fiat_currency": {
                              "title": "Australian Dollar",
                              "symbol": "AUD",
                              "token_standard": null,
                              "symbol_filename": null,
                              "is_crypto": false,
                              "slug": "australian-dollar"
                            },
                            "payment_method": {
                              "name": "Bank Transfer",
                              "slug": "bank-transfers"
                            },
                            "location_name": "Adelaide",
                            "country_code": "AU",
                            "custodial_type": 1,
                            "min_trade_size": "50.0000000000",
                            "max_trade_size": "3000.0000000000",
                            "trading_conditions": "Bank transfers from accounts in your own name only.",
                            "trading_condition_keys": [],
                            "headline": "Fast ETH by bank transfer",
                            "hidden": false,
                            "enforced_sizes": "",
                            "blocked_countries": "",
                            "automatic_cancel_time": "240",
                            "sms_required": false,
                            "minimum_feedback": "0",
                            "price_formula": {
                              "display_formula": "2.5",
                              "prefix_formula": "exchange.ethaud|v||1.025|n||*|o",
                              "pricing_type": "MARGIN",
                              "market": "cmc"
                            },
                            "price_formula_value": "3048.78",
                            "current_margin_percentage": "2.5000000000"
                          },
                          "buyer": {
                            "username": "hal_f",
                            "activity_status": "active",
                            "activity_tooltip": "online",
                            "last_seen": 1793817600,
                            "is_legacy": false,
                            "user_uuid": "11ae74df-3dcb-4752-9114-c8b7774faa49"
                          },
                          "seller": {
                            "username": "satoshi_au",
                            "activity_status": "active",
                            "activity_tooltip": "online",
                            "last_seen": 1793817600,
                            "is_legacy": false,
                            "user_uuid": "e98f2078-a4e7-4f59-908f-b5513be95bd6"
                          },
                          "fiat_amount": "250.000000000000000000",
                          "coin_amount": "0.082000000000000000",
                          "time_created": 1793830445,
                          "coin_currency": {
                            "title": "Ethereum",
                            "symbol": "ETH",
                            "token_standard": null,
                            "symbol_filename": "eth.svg",
                            "is_crypto": true,
                            "slug": "ETH"
                          },
                          "fiat_currency": {
                            "title": "Australian Dollar",
                            "symbol": "AUD",
                            "token_standard": null,
                            "symbol_filename": null,
                            "is_crypto": false,
                            "slug": "australian-dollar"
                          }
                        }
                      ]
                    }
                  }
                }
              }
            },
            "description": ""
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "curl --request GET 'https://api.localcoinswap.com/api/v2/trades/list/?stage=live&coin_currency=BTC' \\\n  --header \"Authorization: ApiKey $LCS_API_KEY\"\n"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import os\n\nimport requests\n\nresponse = requests.request(\n    \"GET\",\n    \"https://api.localcoinswap.com/api/v2/trades/list/?stage=live&coin_currency=BTC\",\n    headers={\"Authorization\": f\"ApiKey {os.environ['LCS_API_KEY']}\"},\n)\nprint(response.status_code, response.text)\n"
          },
          {
            "lang": "javascript",
            "label": "JavaScript",
            "source": "const response = await fetch(\"https://api.localcoinswap.com/api/v2/trades/list/?stage=live&coin_currency=BTC\", {\n  method: \"GET\",\n  headers: {\n    Authorization: `ApiKey ${process.env.LCS_API_KEY}`,\n  },\n});\nconsole.log(response.status, await response.text());\n"
          }
        ],
        "x-apiKeyScope": "read"
      }
    },
    "/api/v2/trades/message/{uuid}/": {
      "post": {
        "operationId": "sendTradeMessage",
        "description": "Send `content` (text, at most 1000 characters are kept), an\n`attachment` (PDF, image or video, up to 50 MB), or both. Attachments\nneed `multipart/form-data`; text-only messages can also be JSON.\nOnly the buyer and seller can post. The other side is notified if\nthey aren't on the trade page.\n\n**API key scope:** `trade`",
        "summary": "Send a trade chat message.",
        "parameters": [
          {
            "in": "path",
            "name": "uuid",
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
            },
            "required": true
          }
        ],
        "tags": [
          "Trade chat"
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/ContractMessageRequest"
              },
              "examples": {
                "Request": {
                  "value": {
                    "content": "Paid by bank transfer, reference LCS-4821."
                  }
                }
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContractMessageRequest"
              },
              "examples": {
                "Request": {
                  "value": {
                    "content": "Paid by bank transfer, reference LCS-4821."
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContractMessage"
                },
                "examples": {
                  "Response": {
                    "value": {
                      "id": 90214,
                      "content": "Paid by bank transfer, reference LCS-4821.",
                      "message": "Paid by bank transfer, reference LCS-4821.",
                      "attachment": null,
                      "time_created": 1793830871,
                      "created_by": {
                        "username": "hal_f",
                        "timezone": "Australia/Adelaide",
                        "local_currency_symbol": "AUD",
                        "bio": "",
                        "is_staff": false,
                        "is_email_verified": true,
                        "last_seen": 1793817600,
                        "cached_last_seen": 1793817600,
                        "profile_image": "https://pwa-cdn.localcoinswap.com/default_user.jpg",
                        "activity_status": "active",
                        "activity_tooltip": "online",
                        "feedback_score": "99.20000",
                        "completed_trades": 12,
                        "trades_30d": 6,
                        "platform_volume": 96000,
                        "platform_volume_30d": 4100,
                        "avg_response_time": 4,
                        "user_uuid": "11ae74df-3dcb-4752-9114-c8b7774faa49",
                        "date_joined": "2021-06-21T05:24:49.500000Z",
                        "is_phone_verified": true,
                        "is_legacy": false,
                        "primary_language": "en",
                        "lang_list": "en",
                        "times_blocked": 0,
                        "times_followed": 3,
                        "imported_total_trades": null,
                        "imported_volume": null,
                        "on_holiday": false,
                        "non_custodial": true,
                        "xp_level": "EXPERT",
                        "xp": 240,
                        "stats": {
                          "trades_started": 14,
                          "trades_started_completed": 12
                        }
                      },
                      "recipient": null,
                      "file": null
                    }
                  }
                }
              }
            },
            "description": ""
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "curl --request POST 'https://api.localcoinswap.com/api/v2/trades/message/f3c6120b-d63a-4a1f-9d18-f181c4be29c2/' \\\n  --header \"Authorization: ApiKey $LCS_API_KEY\" \\\n  --header 'Content-Type: application/json' \\\n  --data-raw '{\"content\": \"Paid by bank transfer, reference LCS-4821.\"}'\n"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import os\n\nimport requests\n\nresponse = requests.request(\n    \"POST\",\n    \"https://api.localcoinswap.com/api/v2/trades/message/f3c6120b-d63a-4a1f-9d18-f181c4be29c2/\",\n    headers={\"Authorization\": f\"ApiKey {os.environ['LCS_API_KEY']}\"},\n    json={\n        \"content\": \"Paid by bank transfer, reference LCS-4821.\",\n    },\n)\nprint(response.status_code, response.text)\n"
          },
          {
            "lang": "javascript",
            "label": "JavaScript",
            "source": "const response = await fetch(\"https://api.localcoinswap.com/api/v2/trades/message/f3c6120b-d63a-4a1f-9d18-f181c4be29c2/\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `ApiKey ${process.env.LCS_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\n    \"content\": \"Paid by bank transfer, reference LCS-4821.\"\n  }),\n});\nconsole.log(response.status, await response.text());\n"
          }
        ],
        "x-apiKeyScope": "trade"
      }
    },
    "/api/v2/trades/message/list/{contract_uuid}/": {
      "get": {
        "operationId": "listTradeMessages",
        "description": "The trade's chat, oldest first. Besides the two traders' messages it\nholds support staff replies, dispute notices posted by the LocalCoinSwap\nadmin account, and the offer's automatic messages, posted as the offer\ncreator. Page with `limit` (up to 1000) and `offset`.\nOnly the buyer and seller can read it; anyone else gets 403.\n\n**API key scope:** `read`",
        "summary": "List trade chat messages.",
        "parameters": [
          {
            "in": "path",
            "name": "contract_uuid",
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
            },
            "required": true
          },
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "description": "Number of results to return per page.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "offset",
            "required": false,
            "in": "query",
            "description": "The initial index from which to return the results.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "tags": [
          "Trade chat"
        ],
        "security": [
          {
            "ApiKey": []
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginatedContractMessageListList"
                },
                "examples": {
                  "Response": {
                    "value": {
                      "count": 18,
                      "next": null,
                      "previous": null,
                      "offset": 0,
                      "limit": 5,
                      "results": [
                        {
                          "id": 90211,
                          "content": "Escrow funded. Send the payment now.",
                          "attachment": {
                            "url": "",
                            "attachment_name": ""
                          },
                          "time_created": 1793830502,
                          "created_by": {
                            "username": "satoshi_au",
                            "timezone": "Australia/Adelaide",
                            "local_currency_symbol": "AUD",
                            "bio": "",
                            "is_staff": false,
                            "is_email_verified": true,
                            "last_seen": 1793817600,
                            "cached_last_seen": 1793817600,
                            "profile_image": "https://pwa-cdn.localcoinswap.com/default_user.jpg",
                            "activity_status": "active",
                            "activity_tooltip": "online",
                            "feedback_score": "99.20000",
                            "completed_trades": 182,
                            "trades_30d": 6,
                            "platform_volume": 96000,
                            "platform_volume_30d": 4100,
                            "avg_response_time": 4,
                            "user_uuid": "e98f2078-a4e7-4f59-908f-b5513be95bd6",
                            "date_joined": "2021-06-21T05:24:49.500000Z",
                            "is_phone_verified": true,
                            "is_legacy": false,
                            "primary_language": "en",
                            "lang_list": "en",
                            "times_blocked": 0,
                            "times_followed": 3,
                            "imported_total_trades": null,
                            "imported_volume": null,
                            "on_holiday": false,
                            "non_custodial": true,
                            "xp_level": "EXPERT",
                            "xp": 240,
                            "stats": {
                              "trades_started": 14,
                              "trades_started_completed": 12
                            }
                          },
                          "recipient": null,
                          "file": null
                        }
                      ]
                    }
                  }
                }
              }
            },
            "description": ""
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "curl --request GET 'https://api.localcoinswap.com/api/v2/trades/message/list/f3c6120b-d63a-4a1f-9d18-f181c4be29c2/?limit=50' \\\n  --header \"Authorization: ApiKey $LCS_API_KEY\"\n"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import os\n\nimport requests\n\nresponse = requests.request(\n    \"GET\",\n    \"https://api.localcoinswap.com/api/v2/trades/message/list/f3c6120b-d63a-4a1f-9d18-f181c4be29c2/?limit=50\",\n    headers={\"Authorization\": f\"ApiKey {os.environ['LCS_API_KEY']}\"},\n)\nprint(response.status_code, response.text)\n"
          },
          {
            "lang": "javascript",
            "label": "JavaScript",
            "source": "const response = await fetch(\"https://api.localcoinswap.com/api/v2/trades/message/list/f3c6120b-d63a-4a1f-9d18-f181c4be29c2/?limit=50\", {\n  method: \"GET\",\n  headers: {\n    Authorization: `ApiKey ${process.env.LCS_API_KEY}`,\n  },\n});\nconsole.log(response.status, await response.text());\n"
          }
        ],
        "x-apiKeyScope": "read"
      }
    },
    "/api/v2/trades/non-custodial/create/": {
      "post": {
        "operationId": "createTrade",
        "description": "Start a non-custodial trade on someone else's offer. Send either\n`fiat_amount` or `coin_amount`, within the offer's limits, and one of your\nweb wallet addresses. The trade starts as `CREATED`; the offer creator then\naccepts or cancels it with the update endpoint.\n\n**Rate limit:** 3 per minute\n\n**API key scope:** `trade`",
        "summary": "Start a trade.",
        "tags": [
          "Trades"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NonCustodialTradeCreateRequest"
              },
              "examples": {
                "Request": {
                  "value": {
                    "offer": "6ab3a6f8-5a70-41d2-80c9-8f91b27f85bd",
                    "fiat_amount": "250.00",
                    "coin_amount": "0.082",
                    "wallet_address": "0x7D1f14c29825b052004A5eF02d8F0BC7E2c9A2A0",
                    "wallet_type": "webwallet"
                  }
                }
              }
            }
          },
          "required": true
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TradeUuid"
                },
                "examples": {
                  "Response": {
                    "value": {
                      "status": "CREATED",
                      "uuid": "f3c6120b-d63a-4a1f-9d18-f181c4be29c2"
                    }
                  }
                }
              }
            },
            "description": ""
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "curl --request POST 'https://api.localcoinswap.com/api/v2/trades/non-custodial/create/' \\\n  --header \"Authorization: ApiKey $LCS_API_KEY\" \\\n  --header 'Content-Type: application/json' \\\n  --data-raw '{\"offer\": \"6ab3a6f8-5a70-41d2-80c9-8f91b27f85bd\", \"fiat_amount\": \"250.00\", \"coin_amount\": \"0.082\", \"wallet_address\": \"0x7D1f14c29825b052004A5eF02d8F0BC7E2c9A2A0\", \"wallet_type\": \"webwallet\"}'\n"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import os\n\nimport requests\n\nresponse = requests.request(\n    \"POST\",\n    \"https://api.localcoinswap.com/api/v2/trades/non-custodial/create/\",\n    headers={\"Authorization\": f\"ApiKey {os.environ['LCS_API_KEY']}\"},\n    json={\n        \"offer\": \"6ab3a6f8-5a70-41d2-80c9-8f91b27f85bd\",\n        \"fiat_amount\": \"250.00\",\n        \"coin_amount\": \"0.082\",\n        \"wallet_address\": \"0x7D1f14c29825b052004A5eF02d8F0BC7E2c9A2A0\",\n        \"wallet_type\": \"webwallet\",\n    },\n)\nprint(response.status_code, response.text)\n"
          },
          {
            "lang": "javascript",
            "label": "JavaScript",
            "source": "const response = await fetch(\"https://api.localcoinswap.com/api/v2/trades/non-custodial/create/\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `ApiKey ${process.env.LCS_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\n    \"offer\": \"6ab3a6f8-5a70-41d2-80c9-8f91b27f85bd\",\n    \"fiat_amount\": \"250.00\",\n    \"coin_amount\": \"0.082\",\n    \"wallet_address\": \"0x7D1f14c29825b052004A5eF02d8F0BC7E2c9A2A0\",\n    \"wallet_type\": \"webwallet\"\n  }),\n});\nconsole.log(response.status, await response.text());\n"
          }
        ],
        "x-rateLimit": [
          {
            "requests": 3,
            "seconds": 60
          }
        ],
        "x-apiKeyScope": "trade"
      }
    },
    "/api/v2/trades/non-custodial/update/{uuid}/": {
      "patch": {
        "operationId": "updateTradeStatus",
        "description": "Send the `status` to move the trade into, plus the fields that status\nneeds. Only the buyer or seller can update a trade, and each status can\nonly be sent by one side (see `status`). Returns the full trade.\n\n**API key scope:** `trade`",
        "summary": "Move a trade to its next status.",
        "parameters": [
          {
            "in": "path",
            "name": "uuid",
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
            },
            "required": true
          }
        ],
        "tags": [
          "Trades"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PatchedNonCustodialTradeUpdateRequest"
              },
              "examples": {
                "Request": {
                  "value": {
                    "status": "FUND_PAID"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TradeRead"
                },
                "examples": {
                  "Response": {
                    "value": {
                      "id": 22949,
                      "ad": {
                        "uuid": "6ab3a6f8-5a70-41d2-80c9-8f91b27f85bd",
                        "slug": "buy-eth-for-aud-in-australia",
                        "is_active": true,
                        "created_by": {
                          "username": "satoshi_au",
                          "activity_status": "active",
                          "activity_tooltip": "online",
                          "is_email_verified": true,
                          "is_phone_verified": true,
                          "phone_country_code": "AU",
                          "avg_response_time": 4,
                          "completed_trades": 182,
                          "platform_volume": 96000,
                          "feedback_score": "99.20000",
                          "last_seen": 1793817600,
                          "is_legacy": false,
                          "user_uuid": "e98f2078-a4e7-4f59-908f-b5513be95bd6",
                          "hide_from_google": false,
                          "date_joined": "2021-06-21T05:24:49.500000Z",
                          "profile_image": "https://pwa-cdn.localcoinswap.com/default_user.jpg",
                          "bio": "",
                          "on_holiday": false,
                          "is_kyc_verified": true,
                          "xp_level": "EXPERT"
                        },
                        "trading_type": {
                          "id": 2,
                          "slug": "sell",
                          "name": "sell",
                          "action_name": "Selling",
                          "opposite_name": "buy",
                          "opposite_action_name": "Buying"
                        },
                        "coin_currency": {
                          "title": "Ethereum",
                          "symbol": "ETH",
                          "token_standard": null,
                          "symbol_filename": "eth.svg",
                          "is_crypto": true,
                          "slug": "ETH"
                        },
                        "fiat_currency": {
                          "title": "Australian Dollar",
                          "symbol": "AUD",
                          "token_standard": null,
                          "symbol_filename": null,
                          "is_crypto": false,
                          "slug": "australian-dollar"
                        },
                        "payment_method": {
                          "name": "Bank Transfer",
                          "slug": "bank-transfers"
                        },
                        "location_name": "Adelaide",
                        "country_code": "AU",
                        "custodial_type": 1,
                        "min_trade_size": "50.0000000000",
                        "max_trade_size": "3000.0000000000",
                        "trading_conditions": "Bank transfers from accounts in your own name only.",
                        "trading_condition_keys": [],
                        "headline": "Fast ETH by bank transfer",
                        "hidden": false,
                        "enforced_sizes": "",
                        "blocked_countries": "",
                        "automatic_cancel_time": "240",
                        "sms_required": false,
                        "minimum_feedback": "0",
                        "price_formula": {
                          "display_formula": "2.5",
                          "prefix_formula": "exchange.ethaud|v||1.025|n||*|o",
                          "pricing_type": "MARGIN",
                          "market": "cmc"
                        },
                        "price_formula_value": "3048.78",
                        "current_margin_percentage": "2.5000000000"
                      },
                      "status": "FUND_PAID",
                      "status_meta": {},
                      "uuid": "f3c6120b-d63a-4a1f-9d18-f181c4be29c2",
                      "contract_responder": {
                        "username": "hal_f",
                        "activity_status": "active",
                        "activity_tooltip": "online",
                        "is_email_verified": true,
                        "is_phone_verified": true,
                        "phone_country_code": "AU",
                        "avg_response_time": 4,
                        "completed_trades": 12,
                        "platform_volume": 96000,
                        "feedback_score": "99.20000",
                        "last_seen": 1793817600,
                        "is_legacy": false,
                        "user_uuid": "11ae74df-3dcb-4752-9114-c8b7774faa49",
                        "hide_from_google": false,
                        "date_joined": "2021-06-21T05:24:49.500000Z",
                        "profile_image": "https://pwa-cdn.localcoinswap.com/default_user.jpg"
                      },
                      "buyer": {
                        "username": "hal_f",
                        "activity_status": "active",
                        "activity_tooltip": "online",
                        "is_email_verified": true,
                        "is_phone_verified": true,
                        "phone_country_code": "AU",
                        "avg_response_time": 4,
                        "completed_trades": 12,
                        "platform_volume": 96000,
                        "feedback_score": "99.20000",
                        "last_seen": 1793817600,
                        "is_legacy": false,
                        "user_uuid": "11ae74df-3dcb-4752-9114-c8b7774faa49",
                        "hide_from_google": false,
                        "date_joined": "2021-06-21T05:24:49.500000Z",
                        "profile_image": "https://pwa-cdn.localcoinswap.com/default_user.jpg"
                      },
                      "seller": {
                        "username": "satoshi_au",
                        "activity_status": "active",
                        "activity_tooltip": "online",
                        "is_email_verified": true,
                        "is_phone_verified": true,
                        "phone_country_code": "AU",
                        "avg_response_time": 4,
                        "completed_trades": 182,
                        "platform_volume": 96000,
                        "feedback_score": "99.20000",
                        "last_seen": 1793817600,
                        "is_legacy": false,
                        "user_uuid": "e98f2078-a4e7-4f59-908f-b5513be95bd6",
                        "hide_from_google": false,
                        "date_joined": "2021-06-21T05:24:49.500000Z",
                        "profile_image": "https://pwa-cdn.localcoinswap.com/default_user.jpg"
                      },
                      "disputed_by": null,
                      "fiat_amount": "250.000000000000000000",
                      "coin_amount": "0.082000000000000000",
                      "time_of_expiry": 1793844845,
                      "time_created": 1793830445,
                      "coin_currency": {
                        "title": "Ethereum",
                        "symbol": "ETH",
                        "token_standard": null,
                        "symbol_filename": "eth.svg",
                        "is_crypto": true,
                        "slug": "ETH",
                        "id": 2,
                        "chain": null,
                        "active_status": "currency_active"
                      },
                      "fiat_currency": {
                        "title": "Australian Dollar",
                        "symbol": "AUD",
                        "token_standard": null,
                        "symbol_filename": null,
                        "is_crypto": false,
                        "slug": "australian-dollar",
                        "id": 10002,
                        "chain": null,
                        "active_status": "currency_active"
                      },
                      "crypto_in_usd": "164.120000000000000000",
                      "responder_geo": {},
                      "tx_meta": {
                        "escrow_version": "v2",
                        "escrow_contract": "0x3a362a1966FF5aAB35298E1565bDa2c9FB124e41",
                        "trade_hash": "0x5d0f2c7a1b9e48c3a6f1d2e0b7c4a9f8e3d2c1b0a9f8e7d6c5b4a39281706f5e",
                        "escrow_unsigned_tx": {
                          "to": "0x3a362a1966FF5aAB35298E1565bDa2c9FB124e41",
                          "data": "0x6c1b3f2a...",
                          "value": "82820000000000000",
                          "nonce": 27,
                          "gas": 180000,
                          "gasPrice": "4400000000",
                          "chainId": 1
                        },
                        "escrow_signed_tx": "0x02f9017201..."
                      },
                      "buyer_meta": {
                        "address": "0x7D1f14c29825b052004A5eF02d8F0BC7E2c9A2A0",
                        "wallet_type": "webwallet",
                        "address_pubkey": "04a3f1c2...",
                        "public_key": "03b7e94d..."
                      },
                      "seller_meta": {
                        "address": "0x2B5AD5c4795c026514f8317c7a215E218DcCD6cF",
                        "wallet_type": "webwallet",
                        "address_pubkey": "04c81e5b...",
                        "public_key": "02f4a6d1..."
                      },
                      "non_custodial": true,
                      "amount_to_escrow": "0.082820000000000000",
                      "fees": "0.000820000000000000",
                      "btc_escrow_data": null,
                      "eth_escrow_data": {
                        "approve_tx": null,
                        "escrow_tx": "0x9c1e4b7f0d2a6e83f5c1b2a49d7e0f36a8c5b1e2d4f6a7b8c9d0e1f2a3b4c5d6",
                        "release_tx": null,
                        "dispute_tx": null,
                        "cancel_tx": null
                      },
                      "multisig_escrow_data": null,
                      "local_currency_symbol": "AUD",
                      "crypto_in_local_currency": "250.12"
                    }
                  }
                }
              }
            },
            "description": ""
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "curl --request PATCH 'https://api.localcoinswap.com/api/v2/trades/non-custodial/update/f3c6120b-d63a-4a1f-9d18-f181c4be29c2/' \\\n  --header \"Authorization: ApiKey $LCS_API_KEY\" \\\n  --header 'Content-Type: application/json' \\\n  --data-raw '{\"status\": \"FUND_PAID\"}'\n"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import os\n\nimport requests\n\nresponse = requests.request(\n    \"PATCH\",\n    \"https://api.localcoinswap.com/api/v2/trades/non-custodial/update/f3c6120b-d63a-4a1f-9d18-f181c4be29c2/\",\n    headers={\"Authorization\": f\"ApiKey {os.environ['LCS_API_KEY']}\"},\n    json={\n        \"status\": \"FUND_PAID\",\n    },\n)\nprint(response.status_code, response.text)\n"
          },
          {
            "lang": "javascript",
            "label": "JavaScript",
            "source": "const response = await fetch(\"https://api.localcoinswap.com/api/v2/trades/non-custodial/update/f3c6120b-d63a-4a1f-9d18-f181c4be29c2/\", {\n  method: \"PATCH\",\n  headers: {\n    Authorization: `ApiKey ${process.env.LCS_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\n    \"status\": \"FUND_PAID\"\n  }),\n});\nconsole.log(response.status, await response.text());\n"
          }
        ],
        "x-apiKeyScope": "trade"
      }
    },
    "/api/v2/trades/withdraw-dispute/{uuid}/": {
      "post": {
        "operationId": "withdrawDispute",
        "description": "Closes a dispute you opened and moves the trade back to the status it\nhad before. Only the user who opened the dispute can withdraw it, and\nonly while the trade is still `DISPUTED`.\n\n**Rate limit:** 1 per 5 seconds\n\n**API key scope:** `trade`",
        "summary": "Withdraw your dispute.",
        "parameters": [
          {
            "in": "path",
            "name": "uuid",
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
            },
            "required": true
          }
        ],
        "tags": [
          "Trades"
        ],
        "security": [
          {
            "ApiKey": []
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TradeUuid"
                },
                "examples": {
                  "Response": {
                    "value": {
                      "uuid": "f3c6120b-d63a-4a1f-9d18-f181c4be29c2",
                      "status": "FUND_PAID"
                    }
                  }
                }
              }
            },
            "description": ""
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "curl --request POST 'https://api.localcoinswap.com/api/v2/trades/withdraw-dispute/f3c6120b-d63a-4a1f-9d18-f181c4be29c2/' \\\n  --header \"Authorization: ApiKey $LCS_API_KEY\"\n"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import os\n\nimport requests\n\nresponse = requests.request(\n    \"POST\",\n    \"https://api.localcoinswap.com/api/v2/trades/withdraw-dispute/f3c6120b-d63a-4a1f-9d18-f181c4be29c2/\",\n    headers={\"Authorization\": f\"ApiKey {os.environ['LCS_API_KEY']}\"},\n)\nprint(response.status_code, response.text)\n"
          },
          {
            "lang": "javascript",
            "label": "JavaScript",
            "source": "const response = await fetch(\"https://api.localcoinswap.com/api/v2/trades/withdraw-dispute/f3c6120b-d63a-4a1f-9d18-f181c4be29c2/\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `ApiKey ${process.env.LCS_API_KEY}`,\n  },\n});\nconsole.log(response.status, await response.text());\n"
          }
        ],
        "x-rateLimit": [
          {
            "requests": 1,
            "seconds": 5
          }
        ],
        "x-apiKeyScope": "trade"
      }
    },
    "/api/v2/tx-history/non-custodial/BTC/": {
      "get": {
        "operationId": "listBtcTransactions",
        "description": "Deposits, withdrawals and escrow movements on your BTC wallet, newest\nfirst. Self-transfers are left out. Filter with `txtype`: `DEPOSIT`,\n`WITHDRAW`, `ESCROW`, `ESCROW_RELEASE`, `ESCROW_REFUND` or `ESCROW_FEE`.\n`value` is in satoshis.\n\n**API key scope:** `read`",
        "summary": "List BTC transactions.",
        "parameters": [
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "description": "Number of results to return per page.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "offset",
            "required": false,
            "in": "query",
            "description": "The initial index from which to return the results.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "txtype",
            "schema": {
              "type": "string",
              "enum": [
                "DEPOSIT",
                "ESCROW",
                "ESCROW_FEE",
                "ESCROW_REFUND",
                "ESCROW_RELEASE",
                "WITHDRAW"
              ]
            },
            "description": "* `ESCROW` - Escrow\n* `ESCROW_RELEASE` - Escrow Release\n* `ESCROW_FEE` - Escrow Fee\n* `ESCROW_REFUND` - Escrow Refund\n* `WITHDRAW` - Withdraw\n* `DEPOSIT` - Deposit"
          }
        ],
        "tags": [
          "Wallet"
        ],
        "security": [
          {
            "ApiKey": []
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginatedBtcTxHistoryList"
                },
                "examples": {
                  "Response": {
                    "value": {
                      "active_page": 1,
                      "count": 18,
                      "next": null,
                      "previous": null,
                      "offset": 0,
                      "limit": 5,
                      "total_pages": 4,
                      "results": [
                        {
                          "id": 55102,
                          "tx": "4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b",
                          "txtype": "DEPOSIT",
                          "value": 250000,
                          "is_confirmed": true,
                          "first_seen_at": 1793830445,
                          "confirmed_at": 1793831012,
                          "ref_data": {}
                        }
                      ]
                    }
                  }
                }
              }
            },
            "description": ""
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "curl --request GET 'https://api.localcoinswap.com/api/v2/tx-history/non-custodial/BTC/?txtype=DEPOSIT' \\\n  --header \"Authorization: ApiKey $LCS_API_KEY\"\n"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import os\n\nimport requests\n\nresponse = requests.request(\n    \"GET\",\n    \"https://api.localcoinswap.com/api/v2/tx-history/non-custodial/BTC/?txtype=DEPOSIT\",\n    headers={\"Authorization\": f\"ApiKey {os.environ['LCS_API_KEY']}\"},\n)\nprint(response.status_code, response.text)\n"
          },
          {
            "lang": "javascript",
            "label": "JavaScript",
            "source": "const response = await fetch(\"https://api.localcoinswap.com/api/v2/tx-history/non-custodial/BTC/?txtype=DEPOSIT\", {\n  method: \"GET\",\n  headers: {\n    Authorization: `ApiKey ${process.env.LCS_API_KEY}`,\n  },\n});\nconsole.log(response.status, await response.text());\n"
          }
        ],
        "x-apiKeyScope": "read"
      }
    },
    "/api/v2/wallets/account-rsa-keys/": {
      "post": {
        "operationId": "unlockWalletKeys",
        "description": "Send your 6-digit wallet PIN to get your account RSA key pair. The\nprivate key decrypts the wallet private keys returned by the wallet\nendpoints. Treat it like the wallet keys themselves: keep it in memory,\nnever log or store it. Wrong PINs are rate limited. Set or reset the PIN\non the website; API keys can't.\n\n**Rate limit:** 5 per minute\n\n**API key scope:** `wallet`",
        "summary": "Unlock your wallet keys.",
        "tags": [
          "Wallet"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AccountRsaKeysUnlockRequest"
              },
              "examples": {
                "Request": {
                  "value": {
                    "pin": "123456"
                  }
                }
              }
            }
          },
          "required": true
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountRsaKeysResponse"
                },
                "examples": {
                  "Response": {
                    "value": {
                      "account_rsa_keys": {
                        "public_key_pem": "-----BEGIN PUBLIC KEY-----\n...\n-----END PUBLIC KEY-----\n",
                        "private_key_pem": "-----BEGIN PRIVATE KEY-----\n...\n-----END PRIVATE KEY-----\n"
                      }
                    }
                  }
                }
              }
            },
            "description": ""
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "curl --request POST 'https://api.localcoinswap.com/api/v2/wallets/account-rsa-keys/' \\\n  --header \"Authorization: ApiKey $LCS_API_KEY\" \\\n  --header 'Content-Type: application/json' \\\n  --data-raw '{\"pin\": \"'\"$LCS_WALLET_PIN\"'\"}'\n"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import os\n\nimport requests\n\nresponse = requests.request(\n    \"POST\",\n    \"https://api.localcoinswap.com/api/v2/wallets/account-rsa-keys/\",\n    headers={\"Authorization\": f\"ApiKey {os.environ['LCS_API_KEY']}\"},\n    json={\n        \"pin\": os.environ[\"LCS_WALLET_PIN\"],\n    },\n)\nprint(response.status_code, response.text)\n"
          },
          {
            "lang": "javascript",
            "label": "JavaScript",
            "source": "const response = await fetch(\"https://api.localcoinswap.com/api/v2/wallets/account-rsa-keys/\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `ApiKey ${process.env.LCS_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\n    \"pin\": process.env.LCS_WALLET_PIN\n  }),\n});\nconsole.log(response.status, await response.text());\n"
          }
        ],
        "x-rateLimit": [
          {
            "requests": 5,
            "seconds": 60
          }
        ],
        "x-apiKeyScope": "wallet"
      }
    },
    "/api/v2/wallets/allowance-reset/": {
      "post": {
        "operationId": "createAllowanceReset",
        "description": "USDT-ERC20 refuses to change one non-zero allowance to another, so an\nescrow approval fails while an old allowance is left over. This returns\nan unsigned transaction that sets your allowance for the LocalCoinSwap\nescrow contract back to 0; sign it and send it to `publish/`, then retry\nthe approval. The response is `[unsigned_tx, true]`.\n\n**Rate limit:** 30 per minute\n\n**API key scope:** `wallet`",
        "summary": "Prepare a USDT allowance reset.",
        "tags": [
          "Wallet"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AllowanceResetRequest"
              },
              "examples": {
                "Request": {
                  "value": {
                    "currency": "USDT-ERC20",
                    "from_address": "0x7D1f14c29825b052004A5eF02d8F0BC7E2c9A2A0"
                  }
                }
              }
            }
          },
          "required": true
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {},
                "examples": {
                  "Response": {
                    "value": [
                      {
                        "chainId": 1,
                        "to": "0xdAC17F958D2ee523a2206206994597C13D831ec7",
                        "data": "0x095ea7b3...",
                        "gas": 60000,
                        "gasPrice": 4400000000,
                        "nonce": 28,
                        "value": 0
                      },
                      true
                    ]
                  }
                }
              }
            },
            "description": ""
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "curl --request POST 'https://api.localcoinswap.com/api/v2/wallets/allowance-reset/' \\\n  --header \"Authorization: ApiKey $LCS_API_KEY\" \\\n  --header 'Content-Type: application/json' \\\n  --data-raw '{\"currency\": \"USDT-ERC20\", \"from_address\": \"0x7D1f14c29825b052004A5eF02d8F0BC7E2c9A2A0\"}'\n"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import os\n\nimport requests\n\nresponse = requests.request(\n    \"POST\",\n    \"https://api.localcoinswap.com/api/v2/wallets/allowance-reset/\",\n    headers={\"Authorization\": f\"ApiKey {os.environ['LCS_API_KEY']}\"},\n    json={\n        \"currency\": \"USDT-ERC20\",\n        \"from_address\": \"0x7D1f14c29825b052004A5eF02d8F0BC7E2c9A2A0\",\n    },\n)\nprint(response.status_code, response.text)\n"
          },
          {
            "lang": "javascript",
            "label": "JavaScript",
            "source": "const response = await fetch(\"https://api.localcoinswap.com/api/v2/wallets/allowance-reset/\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `ApiKey ${process.env.LCS_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\n    \"currency\": \"USDT-ERC20\",\n    \"from_address\": \"0x7D1f14c29825b052004A5eF02d8F0BC7E2c9A2A0\"\n  }),\n});\nconsole.log(response.status, await response.text());\n"
          }
        ],
        "x-rateLimit": [
          {
            "requests": 30,
            "seconds": 60
          }
        ],
        "x-apiKeyScope": "wallet"
      }
    },
    "/api/v2/wallets/balance/{currency_slug}/": {
      "get": {
        "operationId": "getBalance",
        "description": "Your balance in one coin across all your addresses for it, in whole\ncoins, base units and your local currency. Only needs the `read` scope.\n\n**Rate limit:** 30 per minute\n\n**API key scope:** `read`",
        "summary": "Get a coin balance.",
        "parameters": [
          {
            "in": "path",
            "name": "currency_slug",
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-zA-Z-]+$"
            },
            "required": true
          }
        ],
        "tags": [
          "Wallet"
        ],
        "security": [
          {
            "ApiKey": []
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WalletBalance"
                },
                "examples": {
                  "Response": {
                    "value": {
                      "crypto_balance": "1250.500000000000000000",
                      "crypto_balance_base_unit": "1250500000",
                      "confirmed_balance_base_unit": "1250500000",
                      "fiat_balance": "1915.7660",
                      "crypto_slug": "USDT-ERC20",
                      "local_currency_symbol": "AUD",
                      "unit_amount_in_local_currency": "1.5320"
                    }
                  }
                }
              }
            },
            "description": ""
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "curl --request GET 'https://api.localcoinswap.com/api/v2/wallets/balance/USDT-ERC20/' \\\n  --header \"Authorization: ApiKey $LCS_API_KEY\"\n"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import os\n\nimport requests\n\nresponse = requests.request(\n    \"GET\",\n    \"https://api.localcoinswap.com/api/v2/wallets/balance/USDT-ERC20/\",\n    headers={\"Authorization\": f\"ApiKey {os.environ['LCS_API_KEY']}\"},\n)\nprint(response.status_code, response.text)\n"
          },
          {
            "lang": "javascript",
            "label": "JavaScript",
            "source": "const response = await fetch(\"https://api.localcoinswap.com/api/v2/wallets/balance/USDT-ERC20/\", {\n  method: \"GET\",\n  headers: {\n    Authorization: `ApiKey ${process.env.LCS_API_KEY}`,\n  },\n});\nconsole.log(response.status, await response.text());\n"
          }
        ],
        "x-rateLimit": [
          {
            "requests": 30,
            "seconds": 60
          }
        ],
        "x-apiKeyScope": "read"
      }
    },
    "/api/v2/wallets/broadcast-trx-tx/": {
      "post": {
        "operationId": "publishTronTransaction",
        "description": "Broadcasts a signed TRX or TRC20 transaction, as the JSON object Tron\nsigning libraries produce, and returns its `txID` as `tx`.\n\n**API key scope:** `wallet`",
        "summary": "Publish a signed Tron transaction.",
        "tags": [
          "Wallet"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TrxSignedTxRequest"
              },
              "examples": {
                "Request": {
                  "value": {
                    "signed_tx": {
                      "txID": "8e1c...",
                      "raw_data": {
                        "...": "..."
                      },
                      "raw_data_hex": "0a02...",
                      "signature": [
                        "c6f2..."
                      ]
                    }
                  }
                }
              }
            }
          },
          "required": true
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TronBroadcast"
                },
                "examples": {
                  "Response": {
                    "value": {
                      "tx": "8e1c..."
                    }
                  }
                }
              }
            },
            "description": ""
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "curl --request POST 'https://api.localcoinswap.com/api/v2/wallets/broadcast-trx-tx/' \\\n  --header \"Authorization: ApiKey $LCS_API_KEY\" \\\n  --header 'Content-Type: application/json' \\\n  --data-raw '{\"signed_tx\": {\"txID\": \"8e1c...\", \"raw_data\": {\"...\": \"...\"}, \"raw_data_hex\": \"0a02...\", \"signature\": [\"c6f2...\"]}}'\n"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import os\n\nimport requests\n\nresponse = requests.request(\n    \"POST\",\n    \"https://api.localcoinswap.com/api/v2/wallets/broadcast-trx-tx/\",\n    headers={\"Authorization\": f\"ApiKey {os.environ['LCS_API_KEY']}\"},\n    json={\n        \"signed_tx\": {\n            \"txID\": \"8e1c...\",\n            \"raw_data\": {\n                \"...\": \"...\",\n            },\n            \"raw_data_hex\": \"0a02...\",\n            \"signature\": [\n                \"c6f2...\",\n            ],\n        },\n    },\n)\nprint(response.status_code, response.text)\n"
          },
          {
            "lang": "javascript",
            "label": "JavaScript",
            "source": "const response = await fetch(\"https://api.localcoinswap.com/api/v2/wallets/broadcast-trx-tx/\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `ApiKey ${process.env.LCS_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\n    \"signed_tx\": {\n      \"txID\": \"8e1c...\",\n      \"raw_data\": {\n        \"...\": \"...\"\n      },\n      \"raw_data_hex\": \"0a02...\",\n      \"signature\": [\n        \"c6f2...\"\n      ]\n    }\n  }),\n});\nconsole.log(response.status, await response.text());\n"
          }
        ],
        "x-apiKeyScope": "wallet"
      }
    },
    "/api/v2/wallets/non-custodial/{currency_slug}/": {
      "get": {
        "operationId": "getWallet",
        "description": "Your addresses for one coin with their balances, each address's\nencrypted private key, and current network fees (`network_fees`: sat/vB\nfor BTC, gwei for ETH and ERC20). Decrypt the keys with the RSA private\nkey from `account-rsa-keys` to sign transactions. ERC20 and BEP20 coins\nshare your ETH addresses, TRC20 coins your TRX ones.\n\n**Rate limit:** 30 per minute\n\n**API key scope:** `wallet`",
        "summary": "Get a wallet.",
        "parameters": [
          {
            "in": "path",
            "name": "currency_slug",
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-zA-Z-]+$"
            },
            "required": true
          }
        ],
        "tags": [
          "Wallet"
        ],
        "security": [
          {
            "ApiKey": []
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NonCustodialWallet"
                },
                "examples": {
                  "Response": {
                    "value": {
                      "crypto_balance": "0.420000000000000000",
                      "crypto_balance_base_unit": "420000000000000000",
                      "confirmed_balance_base_unit": "420000000000000000",
                      "fiat_balance": "2730.0000",
                      "crypto_slug": "ETH",
                      "local_currency_symbol": "AUD",
                      "unit_amount_in_local_currency": "6500.0000",
                      "address_balance_map": {
                        "0x7D1f14c29825b052004A5eF02d8F0BC7E2c9A2A0": "0.42"
                      },
                      "address_list": [
                        "0x7D1f14c29825b052004A5eF02d8F0BC7E2c9A2A0"
                      ],
                      "address_enc_keys": [
                        {
                          "address": "0x7D1f14c29825b052004A5eF02d8F0BC7E2c9A2A0",
                          "encrypted_private_key": "3b9f6c...",
                          "encrypted_private_key_iv": "a41c09e2b7d35f18c6e04a92d1f7b305"
                        }
                      ],
                      "network_fees": {
                        "min": "1.4",
                        "max": "5.2",
                        "recommended": "4.4"
                      },
                      "can_withdraw_free": true,
                      "free_withdrawal_reset_seconds": 0
                    }
                  }
                }
              }
            },
            "description": ""
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "curl --request GET 'https://api.localcoinswap.com/api/v2/wallets/non-custodial/ETH/' \\\n  --header \"Authorization: ApiKey $LCS_API_KEY\"\n"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import os\n\nimport requests\n\nresponse = requests.request(\n    \"GET\",\n    \"https://api.localcoinswap.com/api/v2/wallets/non-custodial/ETH/\",\n    headers={\"Authorization\": f\"ApiKey {os.environ['LCS_API_KEY']}\"},\n)\nprint(response.status_code, response.text)\n"
          },
          {
            "lang": "javascript",
            "label": "JavaScript",
            "source": "const response = await fetch(\"https://api.localcoinswap.com/api/v2/wallets/non-custodial/ETH/\", {\n  method: \"GET\",\n  headers: {\n    Authorization: `ApiKey ${process.env.LCS_API_KEY}`,\n  },\n});\nconsole.log(response.status, await response.text());\n"
          }
        ],
        "x-rateLimit": [
          {
            "requests": 30,
            "seconds": 60
          }
        ],
        "x-apiKeyScope": "wallet"
      }
    },
    "/api/v2/wallets/publish/": {
      "post": {
        "operationId": "publishTransaction",
        "description": "Broadcasts a signed BTC, LTC, ETH, ERC20 or BEP20 transaction (hex) and\nreturns its hash. TRX and TRC20 go to `broadcast-trx-tx/` instead.\n\n**API key scope:** `wallet`",
        "summary": "Publish a signed transaction.",
        "tags": [
          "Wallet"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SendSignedRequest"
              },
              "examples": {
                "Request": {
                  "value": {
                    "currency": "ETH",
                    "signed_tx": "0xf86b1b8504a817c80082520894d337..."
                  }
                }
              }
            }
          },
          "required": true
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublishedTransaction"
                },
                "examples": {
                  "Response": {
                    "value": {
                      "error": false,
                      "tx": "0x9c1e4b7f0d2a6e83f5c1b2a49d7e0f36a8c5b1e2d4f6a7b8c9d0e1f2a3b4c5d6"
                    }
                  }
                }
              }
            },
            "description": ""
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "curl --request POST 'https://api.localcoinswap.com/api/v2/wallets/publish/' \\\n  --header \"Authorization: ApiKey $LCS_API_KEY\" \\\n  --header 'Content-Type: application/json' \\\n  --data-raw '{\"currency\": \"ETH\", \"signed_tx\": \"0xf86b1b8504a817c80082520894d337...\"}'\n"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import os\n\nimport requests\n\nresponse = requests.request(\n    \"POST\",\n    \"https://api.localcoinswap.com/api/v2/wallets/publish/\",\n    headers={\"Authorization\": f\"ApiKey {os.environ['LCS_API_KEY']}\"},\n    json={\n        \"currency\": \"ETH\",\n        \"signed_tx\": \"0xf86b1b8504a817c80082520894d337...\",\n    },\n)\nprint(response.status_code, response.text)\n"
          },
          {
            "lang": "javascript",
            "label": "JavaScript",
            "source": "const response = await fetch(\"https://api.localcoinswap.com/api/v2/wallets/publish/\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `ApiKey ${process.env.LCS_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\n    \"currency\": \"ETH\",\n    \"signed_tx\": \"0xf86b1b8504a817c80082520894d337...\"\n  }),\n});\nconsole.log(response.status, await response.text());\n"
          }
        ],
        "x-apiKeyScope": "wallet"
      }
    },
    "/api/v2/wallets/unsigned/": {
      "post": {
        "operationId": "createUnsignedTransaction",
        "description": "Builds an unsigned transaction from one of your wallet addresses, for ETH,\nERC20, BEP20 and TRC20 coins. Sign it with that address's private key\n(decrypt it with the keys from `account-rsa-keys`), then send it to\n`publish/`, or `broadcast-trx-tx/` for TRX and TRC20. BTC and LTC\ntransactions are built and signed by your client from its UTXOs.\n\n`gas_price` (wei) and `gas_limit` are optional for ETH and ERC20; the\nserver picks them otherwise. TRC20 sends can be free of network fees\nonce you have completed a trade (see `can_withdraw_free` on the wallet).\n\n**Rate limit:** 1 per 10 seconds\n\n**API key scope:** `wallet`",
        "summary": "Prepare a transaction to sign.",
        "tags": [
          "Wallet"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateUnsignedRequest"
              },
              "examples": {
                "Request": {
                  "value": {
                    "currency": "ETH",
                    "from_address": "0x7D1f14c29825b052004A5eF02d8F0BC7E2c9A2A0",
                    "to_address": "0xD337f60a6589f56c44f72937Dc7b5C84dac2c14e",
                    "amount": "0.05"
                  }
                }
              }
            }
          },
          "required": true
        },
        "security": [
          {
            "ApiKey": []
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnsignedTransaction"
                },
                "examples": {
                  "Response": {
                    "value": {
                      "chainId": 1,
                      "to": "0xD337f60a6589f56c44f72937Dc7b5C84dac2c14e",
                      "value": 50000000000000000,
                      "gas": 21000,
                      "gasPrice": 4400000000,
                      "nonce": 27
                    }
                  }
                }
              }
            },
            "description": "The unsigned transaction; its shape depends on the chain."
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        },
        "x-codeSamples": [
          {
            "lang": "bash",
            "label": "curl",
            "source": "curl --request POST 'https://api.localcoinswap.com/api/v2/wallets/unsigned/' \\\n  --header \"Authorization: ApiKey $LCS_API_KEY\" \\\n  --header 'Content-Type: application/json' \\\n  --data-raw '{\"currency\": \"ETH\", \"from_address\": \"0x7D1f14c29825b052004A5eF02d8F0BC7E2c9A2A0\", \"to_address\": \"0xD337f60a6589f56c44f72937Dc7b5C84dac2c14e\", \"amount\": \"0.05\"}'\n"
          },
          {
            "lang": "python",
            "label": "Python",
            "source": "import os\n\nimport requests\n\nresponse = requests.request(\n    \"POST\",\n    \"https://api.localcoinswap.com/api/v2/wallets/unsigned/\",\n    headers={\"Authorization\": f\"ApiKey {os.environ['LCS_API_KEY']}\"},\n    json={\n        \"currency\": \"ETH\",\n        \"from_address\": \"0x7D1f14c29825b052004A5eF02d8F0BC7E2c9A2A0\",\n        \"to_address\": \"0xD337f60a6589f56c44f72937Dc7b5C84dac2c14e\",\n        \"amount\": \"0.05\",\n    },\n)\nprint(response.status_code, response.text)\n"
          },
          {
            "lang": "javascript",
            "label": "JavaScript",
            "source": "const response = await fetch(\"https://api.localcoinswap.com/api/v2/wallets/unsigned/\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `ApiKey ${process.env.LCS_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\n    \"currency\": \"ETH\",\n    \"from_address\": \"0x7D1f14c29825b052004A5eF02d8F0BC7E2c9A2A0\",\n    \"to_address\": \"0xD337f60a6589f56c44f72937Dc7b5C84dac2c14e\",\n    \"amount\": \"0.05\"\n  }),\n});\nconsole.log(response.status, await response.text());\n"
          }
        ],
        "x-rateLimit": [
          {
            "requests": 1,
            "seconds": 10
          }
        ],
        "x-apiKeyScope": "wallet"
      }
    }
  },
  "components": {
    "schemas": {
      "AccountRsaKeyPair": {
        "type": "object",
        "properties": {
          "public_key_pem": {
            "type": "string"
          },
          "private_key_pem": {
            "type": "string",
            "description": "Decrypts the wallet keys the wallet endpoints return."
          }
        },
        "required": [
          "private_key_pem",
          "public_key_pem"
        ]
      },
      "AccountRsaKeysResponse": {
        "type": "object",
        "properties": {
          "account_rsa_keys": {
            "$ref": "#/components/schemas/AccountRsaKeyPair"
          }
        },
        "required": [
          "account_rsa_keys"
        ]
      },
      "AccountRsaKeysUnlockRequest": {
        "type": "object",
        "properties": {
          "pin": {
            "type": "string",
            "minLength": 6,
            "maxLength": 6
          }
        },
        "required": [
          "pin"
        ]
      },
      "ActiveStatusEnum": {
        "enum": [
          "currency_active",
          "currency_offers_only",
          "currency_staff_only",
          "currency_paused",
          "currency_delisted"
        ],
        "type": "string",
        "description": "* `currency_active` - Currency active\n* `currency_offers_only` - Currency for offers\n* `currency_staff_only` - Currency for staff\n* `currency_paused` - Currency paused\n* `currency_delisted` - Currency delisted"
      },
      "AllowanceResetRequest": {
        "type": "object",
        "properties": {
          "currency": {
            "type": "string"
          },
          "from_address": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "required": [
          "currency",
          "from_address"
        ]
      },
      "BlankEnum": {
        "enum": [
          ""
        ]
      },
      "BtcEscrowMeta": {
        "type": "object",
        "properties": {
          "escrow_address": {
            "type": "string",
            "maxLength": 256
          },
          "fee_address": {
            "type": "string",
            "maxLength": 256
          },
          "escrow_tx": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 256
          }
        },
        "required": [
          "escrow_address",
          "fee_address"
        ]
      },
      "BtcNcTradeSecretRequest": {
        "type": "object",
        "properties": {
          "encrypted_secret": {
            "type": "string",
            "minLength": 1
          },
          "hashed_secret": {
            "type": "string",
            "minLength": 1
          },
          "hashed_public_key": {
            "type": "string",
            "minLength": 1
          },
          "hashed_secret_signed": {
            "type": "string",
            "minLength": 1,
            "description": "Signature of `hashed_secret`. Required from the buyer."
          },
          "address_signed": {
            "type": "string",
            "minLength": 1,
            "description": "Signature of the wallet address. Required from the buyer."
          }
        },
        "required": [
          "encrypted_secret",
          "hashed_public_key",
          "hashed_secret"
        ]
      },
      "BtcNetworkFees": {
        "type": "object",
        "description": "Fee rates in sat/vB.",
        "properties": {
          "min": {
            "type": "string"
          },
          "avg": {
            "type": "string"
          },
          "max": {
            "type": "string"
          },
          "recommended": {
            "type": "string"
          }
        },
        "required": [
          "avg",
          "max",
          "min",
          "recommended"
        ]
      },
      "BtcTxHistory": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "readOnly": true
          },
          "tx": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 256
          },
          "txtype": {
            "$ref": "#/components/schemas/TxtypeEnum"
          },
          "value": {
            "type": [
              "integer",
              "null"
            ],
            "maximum": 9223372036854775807,
            "minimum": -9223372036854775808,
            "format": "int64"
          },
          "is_confirmed": {
            "type": "boolean"
          },
          "first_seen_at": {
            "type": [
              "integer",
              "null"
            ],
            "maximum": 2147483647,
            "minimum": 0
          },
          "confirmed_at": {
            "type": [
              "integer",
              "null"
            ],
            "maximum": 2147483647,
            "minimum": 0
          },
          "ref_data": {}
        },
        "required": [
          "id",
          "ref_data",
          "txtype"
        ]
      },
      "BulkOfferComboRequest": {
        "type": "object",
        "description": "One offer in a bulk create. Docs only; the view reads the raw body.",
        "properties": {
          "coin_currency": {
            "type": "string",
            "minLength": 1,
            "description": "Coin slug."
          },
          "fiat_currency": {
            "type": "string",
            "minLength": 1,
            "description": "Fiat symbol."
          },
          "payment_method": {
            "type": "string",
            "minLength": 1,
            "description": "Payment method slug."
          },
          "country_code": {
            "type": "string",
            "minLength": 1
          },
          "location_name": {
            "type": "string",
            "minLength": 1
          },
          "pricing_expression": {
            "type": "string",
            "minLength": 1
          },
          "min_trade_size": {
            "type": "integer"
          },
          "max_trade_size": {
            "type": "integer"
          }
        }
      },
      "BulkOfferCreateRequest": {
        "type": "object",
        "description": "Request body of POST /offers/bulk/. Docs only.",
        "properties": {
          "trading_type": {
            "type": "string",
            "description": "Trade type. It can either be `buy` or `sell`."
          },
          "coin_currency": {
            "type": "string",
            "minLength": 1,
            "description": "Default coin slug for combos that omit it."
          },
          "fiat_currency": {
            "type": "string",
            "minLength": 1,
            "description": "Default fiat symbol for combos that omit it."
          },
          "payment_method": {
            "type": "string",
            "minLength": 1,
            "description": "Default payment method slug for combos that omit it."
          },
          "country_code": {
            "type": "string",
            "minLength": 1
          },
          "location_name": {
            "type": "string",
            "minLength": 1
          },
          "min_trade_size": {
            "type": "integer"
          },
          "max_trade_size": {
            "type": "integer"
          },
          "pricing_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PricingTypeEnum"
              }
            ],
            "writeOnly": true,
            "default": "MARGIN"
          },
          "pricing_market": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PricingMarketEnum"
              }
            ],
            "writeOnly": true,
            "default": "cmc"
          },
          "pricing_expression": {
            "type": "string",
            "minLength": 1
          },
          "trading_conditions": {
            "type": "string",
            "default": "",
            "description": "The conditions under which you trade with others."
          },
          "trading_condition_keys": {
            "description": "Structured trading conditions as a list of selected option keys."
          },
          "headline": {
            "type": [
              "string",
              "null"
            ],
            "default": "",
            "description": "Headline for the offer, highlighted on the listings page.",
            "maxLength": 60
          },
          "trading_hours_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TradingHoursTypeEnum"
              }
            ],
            "writeOnly": true,
            "default": "daily",
            "description": "Choose whether you want to specify common availability hours\n        for every day or specify individual hours for each day\n\n* `daily` - daily\n* `specific` - specific"
          },
          "trading_hours_json": {
            "writeOnly": true,
            "description": "If `trading_hours_type` is `daily` then the format should be: \n\n\n```\n{\n    \"anyday\": {\n        \"from\": \"08:30\",\n        \"to\": \"21:00\"\n    }\n}```\n\n\n\n\nElse the format should be: \n\n\n```\n{\n    \"monday\": {\n        \"from\": \"06:30\",\n        \"to\": \"21:00\"\n    },\n    \"tuesday\": {\n        \"from\": \"06:30\",\n        \"to\": \"21:00\"\n    },\n    \"wednesday\": {\n        \"from\": \"06:30\",\n        \"to\": \"21:00\"\n    },\n    \"thursday\": {\n        \"from\": \"09:30\",\n        \"to\": \"21:00\"\n    },\n    \"friday\": {\n        \"from\": \"00:30\",\n        \"to\": \"21:00\"\n    },\n    \"saturday\": {\n        \"from\": \"18:30\",\n        \"to\": \"19:00\"\n    },\n    \"sunday\": {\n        \"from\": \"08:30\",\n        \"to\": \"21:00\"\n    }\n}```\n"
          },
          "hidden": {
            "type": "boolean",
            "default": false,
            "title": "Hidden offer",
            "description": "If true, offer is hidden and only accessible directly through the URL"
          },
          "enforced_sizes": {
            "type": [
              "string",
              "null"
            ],
            "default": "",
            "title": "Trade sizes",
            "description": "These are the accepted sizes, comma separated. Eg: if you are exchanging\n        for gift cards of values $50 and $100, enter `50,100`",
            "maxLength": 500
          },
          "msg_on_trade_accepted": {
            "type": "string",
            "writeOnly": true,
            "default": "",
            "maxLength": 500
          },
          "msg_on_trade_escrowed": {
            "type": "string",
            "writeOnly": true,
            "default": "",
            "maxLength": 500
          },
          "msg_on_trade_released": {
            "type": "string",
            "writeOnly": true,
            "default": "",
            "maxLength": 500
          },
          "blocked_countries": {
            "type": [
              "string",
              "null"
            ],
            "default": "",
            "title": "Blocked country codes",
            "description": "Comma separated list of iso2 country codes like NG,KE",
            "maxLength": 510
          },
          "automatic_cancel_time": {
            "type": "integer",
            "maximum": 2000,
            "minimum": 10,
            "default": 240,
            "description": "Time (in minutes) until the trade will automatically\n        cancel/expire if you don't respond"
          },
          "sms_required": {
            "type": "boolean",
            "default": false,
            "title": "Phone verification required",
            "description": "Require potential traders to have verified their phone number."
          },
          "minimum_feedback": {
            "type": "integer",
            "maximum": 100,
            "minimum": 0,
            "description": "Minimum feedback percentage required for traders to\n        initiate a trade on this offer."
          },
          "combos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BulkOfferComboRequest"
            },
            "description": "One entry per offer to create. A combo's values override the top-level ones."
          }
        },
        "required": [
          "combos",
          "trading_hours_json",
          "trading_type"
        ]
      },
      "BulkOfferCreateResponse": {
        "type": "object",
        "properties": {
          "created": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BulkOfferCreated"
            }
          },
          "failed": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BulkOfferFailed"
            }
          },
          "totals": {
            "$ref": "#/components/schemas/BulkOfferTotals"
          }
        },
        "required": [
          "created",
          "failed",
          "totals"
        ]
      },
      "BulkOfferCreated": {
        "type": "object",
        "properties": {
          "combo": {
            "type": "object",
            "additionalProperties": {},
            "description": "The combo's coin, fiat, method and place."
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "slug": {
            "type": "string"
          }
        },
        "required": [
          "combo",
          "slug",
          "uuid"
        ]
      },
      "BulkOfferFailed": {
        "type": "object",
        "properties": {
          "combo": {
            "type": "object",
            "additionalProperties": {},
            "description": "The combo's coin, fiat, method and place."
          },
          "errors": {
            "type": "object",
            "additionalProperties": {},
            "description": "Field errors, as for a single create."
          }
        },
        "required": [
          "combo",
          "errors"
        ]
      },
      "BulkOfferTotals": {
        "type": "object",
        "properties": {
          "requested": {
            "type": "integer"
          },
          "created": {
            "type": "integer"
          },
          "failed": {
            "type": "integer"
          }
        },
        "required": [
          "created",
          "failed",
          "requested"
        ]
      },
      "CMCCurrencyQuotes": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "readOnly": true
          },
          "symbol": {
            "type": "string",
            "maxLength": 100
          },
          "usd_price": {
            "type": "string",
            "format": "decimal",
            "pattern": "^-?\\d{0,20}(?:\\.\\d{0,10})?$"
          },
          "usd_market_cap": {
            "type": [
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d{0,20}(?:\\.\\d{0,10})?$"
          },
          "usd_volume_24h": {
            "type": [
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d{0,20}(?:\\.\\d{0,10})?$"
          },
          "percent_change_1h": {
            "type": [
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d{0,10}(?:\\.\\d{0,10})?$"
          },
          "percent_change_24h": {
            "type": [
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d{0,10}(?:\\.\\d{0,10})?$"
          },
          "percent_change_7d": {
            "type": [
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d{0,10}(?:\\.\\d{0,10})?$"
          },
          "usd_last_updated": {
            "type": [
              "integer",
              "null"
            ],
            "maximum": 2147483647,
            "minimum": 0,
            "title": "Last update times for USD value"
          },
          "last_updated": {
            "type": [
              "integer",
              "null"
            ],
            "maximum": 2147483647,
            "minimum": 0,
            "title": "Last update time of this object"
          }
        },
        "required": [
          "id",
          "symbol",
          "usd_price"
        ]
      },
      "CancellationReasonEnum": {
        "enum": [
          "CREATE_ANOTHER_TRADE_WITH_USER",
          "MARKET_PRICE_CHANGED",
          "OTHER_USER_SLOW",
          "USER_NOT_AVAILABLE",
          "CUSTODIAL_NC_CONFUSION",
          "OTHER_USER_CHANGED_TERMS",
          "COULDNT_MEET_TERMS",
          "PAYMENT_METHOD_ISSUE",
          "LCS_WEBSITE_ISSUE",
          "COMPLETED_TRADE_ELSEWHERE",
          "OTHER_USER_SUSPICIOUS",
          "OPENED_TRADE_BY_MISTAKE",
          "STALE_NOT_ESCROWED",
          "OTHER"
        ],
        "type": "string",
        "description": "* `CREATE_ANOTHER_TRADE_WITH_USER` - I am going to create another trade with the same user\n* `MARKET_PRICE_CHANGED` - The market price has changed\n* `OTHER_USER_SLOW` - The other user took too long\n* `USER_NOT_AVAILABLE` - The other user says they are not available\n* `CUSTODIAL_NC_CONFUSION` - Confusion about standard & non-custodial trading\n* `OTHER_USER_CHANGED_TERMS` - The other user changed their terms of trade\n* `COULDNT_MEET_TERMS` - I couldn't meet the other users terms\n* `PAYMENT_METHOD_ISSUE` - We had a problem with the payment method\n* `LCS_WEBSITE_ISSUE` - We had a problem with the LocalCoinSwap website\n* `COMPLETED_TRADE_ELSEWHERE` - I completed the trade somewhere else\n* `OTHER_USER_SUSPICIOUS` - The other user seemed suspicious\n* `OPENED_TRADE_BY_MISTAKE` - This trade was opened by mistake\n* `STALE_NOT_ESCROWED` - Automatically cancelled: older than 30 days without escrow\n* `OTHER` - other"
      },
      "CommissionPaymentList": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "readOnly": true
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "to_address": {
            "type": "string",
            "maxLength": 256
          },
          "tx_hash": {
            "type": [
              "string",
              "null"
            ],
            "title": "Transaction hash ",
            "maxLength": 256
          },
          "amount": {
            "type": "string",
            "format": "decimal",
            "pattern": "^-?\\d{0,14}(?:\\.\\d{0,18})?$",
            "title": "Amount paid in BTC"
          },
          "created": {
            "type": "string",
            "format": "date-time",
            "readOnly": true
          }
        },
        "required": [
          "created",
          "id",
          "to_address"
        ]
      },
      "ContractMessage": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "readOnly": true
          },
          "content": {
            "type": [
              "string",
              "null"
            ]
          },
          "message": {
            "type": [
              "string",
              "null"
            ],
            "readOnly": true
          },
          "attachment": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri"
          },
          "time_created": {
            "type": "integer",
            "readOnly": true,
            "title": "Created at"
          },
          "created_by": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PublicUserDetails"
              }
            ],
            "readOnly": true
          },
          "recipient": {
            "type": [
              "integer",
              "null"
            ],
            "readOnly": true
          },
          "file": {
            "type": [
              "object",
              "null"
            ],
            "readOnly": true
          }
        },
        "required": [
          "created_by",
          "file",
          "id",
          "message",
          "recipient",
          "time_created"
        ]
      },
      "ContractMessageList": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "readOnly": true
          },
          "content": {
            "type": [
              "string",
              "null"
            ]
          },
          "attachment": {
            "type": "object",
            "additionalProperties": {},
            "readOnly": true
          },
          "time_created": {
            "type": "integer",
            "maximum": 2147483647,
            "minimum": 0,
            "title": "Created at"
          },
          "created_by": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PublicUserDetails"
              }
            ],
            "readOnly": true
          },
          "recipient": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PublicUserDetails"
              },
              {
                "type": "null"
              }
            ],
            "readOnly": true
          },
          "file": {
            "type": [
              "object",
              "null"
            ],
            "readOnly": true
          }
        },
        "required": [
          "attachment",
          "created_by",
          "file",
          "id",
          "recipient"
        ]
      },
      "ContractMessageRequest": {
        "type": "object",
        "properties": {
          "content": {
            "type": [
              "string",
              "null"
            ]
          },
          "attachment": {
            "type": "string",
            "format": "binary"
          }
        }
      },
      "CountryCodeEnum": {
        "enum": [
          "EU",
          "AW",
          "AF",
          "AO",
          "AI",
          "AX",
          "AL",
          "AD",
          "AE",
          "AR",
          "AM",
          "AS",
          "AQ",
          "TF",
          "AG",
          "AU",
          "AT",
          "AZ",
          "BI",
          "BE",
          "BJ",
          "BQ",
          "BF",
          "BD",
          "BG",
          "BH",
          "BS",
          "BA",
          "BL",
          "BY",
          "BZ",
          "BM",
          "BO",
          "BR",
          "BB",
          "BN",
          "BT",
          "BV",
          "BW",
          "CF",
          "CA",
          "CC",
          "CH",
          "CL",
          "CN",
          "CI",
          "CM",
          "CD",
          "CG",
          "CK",
          "CO",
          "KM",
          "CV",
          "CR",
          "CU",
          "CW",
          "CX",
          "KY",
          "CY",
          "CZ",
          "DE",
          "DJ",
          "DM",
          "DK",
          "DO",
          "DZ",
          "EC",
          "EG",
          "ER",
          "EH",
          "ES",
          "EE",
          "ET",
          "FI",
          "FJ",
          "FK",
          "FR",
          "FO",
          "FM",
          "GA",
          "GB",
          "GE",
          "GG",
          "GH",
          "GI",
          "GN",
          "GP",
          "GM",
          "GW",
          "GQ",
          "GR",
          "GD",
          "GL",
          "GT",
          "GF",
          "GU",
          "GY",
          "HK",
          "HM",
          "HN",
          "HR",
          "HT",
          "HU",
          "ID",
          "IM",
          "IN",
          "IO",
          "IE",
          "IR",
          "IQ",
          "IS",
          "IL",
          "IT",
          "JM",
          "JE",
          "JO",
          "JP",
          "KZ",
          "KE",
          "KG",
          "KH",
          "KI",
          "KN",
          "KR",
          "KW",
          "LA",
          "LB",
          "LR",
          "LY",
          "LC",
          "LI",
          "LK",
          "LS",
          "LT",
          "LU",
          "LV",
          "MO",
          "MF",
          "MA",
          "MC",
          "MD",
          "MG",
          "MV",
          "MX",
          "MH",
          "MK",
          "ML",
          "MT",
          "MM",
          "ME",
          "MN",
          "MP",
          "MZ",
          "MR",
          "MS",
          "MQ",
          "MU",
          "MW",
          "MY",
          "YT",
          "NA",
          "NC",
          "NE",
          "NF",
          "NG",
          "NI",
          "NU",
          "NL",
          "NO",
          "NP",
          "NR",
          "NZ",
          "OM",
          "PK",
          "PA",
          "PN",
          "PE",
          "PH",
          "PW",
          "PG",
          "PL",
          "PR",
          "KP",
          "PT",
          "PY",
          "PS",
          "PF",
          "QA",
          "RE",
          "RO",
          "RU",
          "RW",
          "SA",
          "SD",
          "SN",
          "SG",
          "GS",
          "SH",
          "SJ",
          "SB",
          "SL",
          "SV",
          "SM",
          "SO",
          "PM",
          "RS",
          "SS",
          "ST",
          "SR",
          "SK",
          "SI",
          "SE",
          "SZ",
          "SX",
          "SC",
          "SY",
          "TC",
          "TD",
          "TG",
          "TH",
          "TJ",
          "TK",
          "TM",
          "TL",
          "TO",
          "TT",
          "TN",
          "TR",
          "TV",
          "TW",
          "TZ",
          "UG",
          "UA",
          "UM",
          "UY",
          "US",
          "UZ",
          "VA",
          "VC",
          "VE",
          "VG",
          "VI",
          "VN",
          "VU",
          "WF",
          "WS",
          "YE",
          "ZA",
          "ZM",
          "ZW"
        ],
        "type": "string",
        "description": "* `EU` - EU\n* `AW` - AW\n* `AF` - AF\n* `AO` - AO\n* `AI` - AI\n* `AX` - AX\n* `AL` - AL\n* `AD` - AD\n* `AE` - AE\n* `AR` - AR\n* `AM` - AM\n* `AS` - AS\n* `AQ` - AQ\n* `TF` - TF\n* `AG` - AG\n* `AU` - AU\n* `AT` - AT\n* `AZ` - AZ\n* `BI` - BI\n* `BE` - BE\n* `BJ` - BJ\n* `BQ` - BQ\n* `BF` - BF\n* `BD` - BD\n* `BG` - BG\n* `BH` - BH\n* `BS` - BS\n* `BA` - BA\n* `BL` - BL\n* `BY` - BY\n* `BZ` - BZ\n* `BM` - BM\n* `BO` - BO\n* `BR` - BR\n* `BB` - BB\n* `BN` - BN\n* `BT` - BT\n* `BV` - BV\n* `BW` - BW\n* `CF` - CF\n* `CA` - CA\n* `CC` - CC\n* `CH` - CH\n* `CL` - CL\n* `CN` - CN\n* `CI` - CI\n* `CM` - CM\n* `CD` - CD\n* `CG` - CG\n* `CK` - CK\n* `CO` - CO\n* `KM` - KM\n* `CV` - CV\n* `CR` - CR\n* `CU` - CU\n* `CW` - CW\n* `CX` - CX\n* `KY` - KY\n* `CY` - CY\n* `CZ` - CZ\n* `DE` - DE\n* `DJ` - DJ\n* `DM` - DM\n* `DK` - DK\n* `DO` - DO\n* `DZ` - DZ\n* `EC` - EC\n* `EG` - EG\n* `ER` - ER\n* `EH` - EH\n* `ES` - ES\n* `EE` - EE\n* `ET` - ET\n* `FI` - FI\n* `FJ` - FJ\n* `FK` - FK\n* `FR` - FR\n* `FO` - FO\n* `FM` - FM\n* `GA` - GA\n* `GB` - GB\n* `GE` - GE\n* `GG` - GG\n* `GH` - GH\n* `GI` - GI\n* `GN` - GN\n* `GP` - GP\n* `GM` - GM\n* `GW` - GW\n* `GQ` - GQ\n* `GR` - GR\n* `GD` - GD\n* `GL` - GL\n* `GT` - GT\n* `GF` - GF\n* `GU` - GU\n* `GY` - GY\n* `HK` - HK\n* `HM` - HM\n* `HN` - HN\n* `HR` - HR\n* `HT` - HT\n* `HU` - HU\n* `ID` - ID\n* `IM` - IM\n* `IN` - IN\n* `IO` - IO\n* `IE` - IE\n* `IR` - IR\n* `IQ` - IQ\n* `IS` - IS\n* `IL` - IL\n* `IT` - IT\n* `JM` - JM\n* `JE` - JE\n* `JO` - JO\n* `JP` - JP\n* `KZ` - KZ\n* `KE` - KE\n* `KG` - KG\n* `KH` - KH\n* `KI` - KI\n* `KN` - KN\n* `KR` - KR\n* `KW` - KW\n* `LA` - LA\n* `LB` - LB\n* `LR` - LR\n* `LY` - LY\n* `LC` - LC\n* `LI` - LI\n* `LK` - LK\n* `LS` - LS\n* `LT` - LT\n* `LU` - LU\n* `LV` - LV\n* `MO` - MO\n* `MF` - MF\n* `MA` - MA\n* `MC` - MC\n* `MD` - MD\n* `MG` - MG\n* `MV` - MV\n* `MX` - MX\n* `MH` - MH\n* `MK` - MK\n* `ML` - ML\n* `MT` - MT\n* `MM` - MM\n* `ME` - ME\n* `MN` - MN\n* `MP` - MP\n* `MZ` - MZ\n* `MR` - MR\n* `MS` - MS\n* `MQ` - MQ\n* `MU` - MU\n* `MW` - MW\n* `MY` - MY\n* `YT` - YT\n* `NA` - NA\n* `NC` - NC\n* `NE` - NE\n* `NF` - NF\n* `NG` - NG\n* `NI` - NI\n* `NU` - NU\n* `NL` - NL\n* `NO` - NO\n* `NP` - NP\n* `NR` - NR\n* `NZ` - NZ\n* `OM` - OM\n* `PK` - PK\n* `PA` - PA\n* `PN` - PN\n* `PE` - PE\n* `PH` - PH\n* `PW` - PW\n* `PG` - PG\n* `PL` - PL\n* `PR` - PR\n* `KP` - KP\n* `PT` - PT\n* `PY` - PY\n* `PS` - PS\n* `PF` - PF\n* `QA` - QA\n* `RE` - RE\n* `RO` - RO\n* `RU` - RU\n* `RW` - RW\n* `SA` - SA\n* `SD` - SD\n* `SN` - SN\n* `SG` - SG\n* `GS` - GS\n* `SH` - SH\n* `SJ` - SJ\n* `SB` - SB\n* `SL` - SL\n* `SV` - SV\n* `SM` - SM\n* `SO` - SO\n* `PM` - PM\n* `RS` - RS\n* `SS` - SS\n* `ST` - ST\n* `SR` - SR\n* `SK` - SK\n* `SI` - SI\n* `SE` - SE\n* `SZ` - SZ\n* `SX` - SX\n* `SC` - SC\n* `SY` - SY\n* `TC` - TC\n* `TD` - TD\n* `TG` - TG\n* `TH` - TH\n* `TJ` - TJ\n* `TK` - TK\n* `TM` - TM\n* `TL` - TL\n* `TO` - TO\n* `TT` - TT\n* `TN` - TN\n* `TR` - TR\n* `TV` - TV\n* `TW` - TW\n* `TZ` - TZ\n* `UG` - UG\n* `UA` - UA\n* `UM` - UM\n* `UY` - UY\n* `US` - US\n* `UZ` - UZ\n* `VA` - VA\n* `VC` - VC\n* `VE` - VE\n* `VG` - VG\n* `VI` - VI\n* `VN` - VN\n* `VU` - VU\n* `WF` - WF\n* `WS` - WS\n* `YE` - YE\n* `ZA` - ZA\n* `ZM` - ZM\n* `ZW` - ZW"
      },
      "CreateUnsignedRequest": {
        "type": "object",
        "properties": {
          "currency": {
            "type": "string",
            "description": "Coin slug: ETH, ERC20, BEP20 and TRC20 coins. Build BTC and LTC transactions yourself and publish them."
          },
          "amount": {
            "type": "string",
            "format": "decimal",
            "pattern": "^-?\\d{0,36}(?:\\.\\d{0,18})?$",
            "description": "In whole coins, not base units."
          },
          "from_address": {
            "type": "string",
            "minLength": 1,
            "description": "One of your wallet addresses for this coin.",
            "maxLength": 256
          },
          "to_address": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "swap_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "TRC20 only: one of your swaps, when sending to its pay-in address."
          },
          "gas_price": {
            "type": "string",
            "format": "decimal",
            "pattern": "^-?\\d{0,36}(?:\\.\\d{0,18})?$",
            "description": "Gas price in wei. Only for transactions on the ethereum blockchain"
          },
          "gas_limit": {
            "type": "string",
            "format": "decimal",
            "pattern": "^-?\\d{0,36}(?:\\.\\d{0,18})?$",
            "description": "Only for transactions on the ethereum blockchain"
          }
        },
        "required": [
          "amount",
          "currency",
          "from_address",
          "to_address"
        ]
      },
      "Currency": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "readOnly": true
          },
          "title": {
            "type": "string",
            "maxLength": 64
          },
          "symbol": {
            "type": "string",
            "maxLength": 16
          },
          "chain": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 16
          },
          "token_standard": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 16
          },
          "symbol_filename": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 16
          },
          "is_crypto": {
            "type": "boolean"
          },
          "slug": {
            "oneOf": [
              {
                "type": "string",
                "maxLength": 50,
                "pattern": "^[-a-zA-Z0-9_]+$"
              },
              {
                "type": "string",
                "maxLength": 0
              }
            ]
          },
          "active_status": {
            "title": "Currency status",
            "oneOf": [
              {
                "$ref": "#/components/schemas/ActiveStatusEnum"
              },
              {
                "$ref": "#/components/schemas/NullEnum"
              }
            ]
          }
        },
        "required": [
          "id",
          "symbol",
          "title"
        ]
      },
      "CurrencyMetadata": {
        "type": "object",
        "properties": {
          "banner_image": {
            "type": "string",
            "readOnly": true
          },
          "about": {
            "type": "string",
            "description": "Information about the currency; history, purpose etc"
          },
          "official_website": {
            "description": "Link to official website",
            "oneOf": [
              {
                "type": "string",
                "format": "uri",
                "maxLength": 200
              },
              {
                "type": "string",
                "maxLength": 0
              }
            ]
          },
          "white_paper": {
            "description": "Link to original whitepaper",
            "oneOf": [
              {
                "type": "string",
                "format": "uri",
                "maxLength": 200
              },
              {
                "type": "string",
                "maxLength": 0
              }
            ]
          },
          "initial_release": {
            "type": [
              "integer",
              "null"
            ],
            "maximum": 2147483647,
            "minimum": 0,
            "description": "Date when first released"
          },
          "min_unit_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Name of the minimum unit value, for eg: Satoshi for Bitcoin",
            "maxLength": 64
          },
          "total_supply": {
            "type": [
              "integer",
              "null"
            ],
            "maximum": 2147483647,
            "minimum": 0
          },
          "circulating_supply": {
            "type": [
              "integer",
              "null"
            ],
            "maximum": 2147483647,
            "minimum": 0
          },
          "cmc_analytics": {
            "$ref": "#/components/schemas/CMCCurrencyQuotes"
          }
        },
        "required": [
          "banner_image",
          "cmc_analytics"
        ]
      },
      "CurrencyWithMeta": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "readOnly": true
          },
          "title": {
            "type": "string",
            "maxLength": 64
          },
          "symbol": {
            "type": "string",
            "maxLength": 16
          },
          "chain": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 16
          },
          "token_standard": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 16
          },
          "symbol_filename": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 16
          },
          "is_crypto": {
            "type": "boolean"
          },
          "metadata": {
            "$ref": "#/components/schemas/CurrencyMetadata"
          },
          "slug": {
            "oneOf": [
              {
                "type": "string",
                "maxLength": 50,
                "pattern": "^[-a-zA-Z0-9_]+$"
              },
              {
                "type": "string",
                "maxLength": 0
              }
            ]
          }
        },
        "required": [
          "id",
          "metadata",
          "symbol",
          "title"
        ]
      },
      "DisputeOpened": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string"
          }
        },
        "required": [
          "message"
        ]
      },
      "DisputeRequest": {
        "type": "object",
        "properties": {
          "description": {
            "type": "string",
            "minLength": 1,
            "description": "What went wrong. Staff read it when they review the dispute."
          },
          "extra_data": {
            "type": "string",
            "minLength": 1,
            "description": "Your dispute signature, as a JSON string:\n        `{\"r\": \"0x\u2026\", \"s\": \"0x\u2026\", \"v\": 27}` (`r` and `s` are 32 bytes hex,\n        `v` is 27 or 28). Staff settle the escrow on chain with it.\n        **Required** for ETH and ERC20 trades on the v2 escrow\n        (`tx_meta.escrow_version` is `\"v2\"`), BNB and BEP20 tokens, and TRX\n        and TRC20 tokens; missing or malformed is a 400 on `extra_data`. Not\n        used for BTC or LTC. Optionally add `dispute_deadline` (unix seconds)\n        if you signed with one; without it the signature never expires.\n        See \"Signing trades\".",
            "maxLength": 1024
          },
          "release_signature": {
            "type": "string",
            "description": "LTC only: your partial signature on the release to the\n        buyer, so staff can pay out if the buyer wins. Send with\n        `cancel_signature`."
          },
          "cancel_signature": {
            "type": "string",
            "description": "LTC only: your partial signature on the refund to the\n        seller, so staff can pay out if the seller wins."
          }
        },
        "required": [
          "description"
        ]
      },
      "DryrunPricingExpressionRequest": {
        "type": "object",
        "properties": {
          "expression": {
            "type": "string",
            "writeOnly": true,
            "minLength": 1,
            "description": "\n        An expression is a mathematical formula which uses variables supported\n        by LocalCoinSwap.\n\n\n        Eg: `market.binance.btcusdt.ask + (market.binance.btcusdt.ask * 0.1)`\n        is a valid expression to get 10% higher value for the current ask for\n        `BTC` on Binance market.\n\n\n        ",
            "maxLength": 128
          }
        },
        "required": [
          "expression"
        ]
      },
      "DryrunPricingFormulaRequest": {
        "type": "object",
        "properties": {
          "pricing_market": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PricingMarketEnum"
              }
            ],
            "writeOnly": true,
            "default": "cmc"
          },
          "coin_currency": {
            "type": "string",
            "writeOnly": true,
            "description": "\n        Crypto currency slug. Examples: `BTC`, `ETH`, `USDT-ERC20`.\n\n\n        Full list of available cryptocurrencies can be found\n        at `/currencies/active-cryptos/`\n        "
          },
          "fiat_currency": {
            "type": "string",
            "writeOnly": true,
            "description": "\n        Fiat currency symbol. Examples: `USD`, `GBP`, `AUD`.\n\n\n        Full list of available fiat-currencies can be found at `/currencies/fiat-currencies/`\n        "
          },
          "margin_percent": {
            "type": "string",
            "format": "decimal",
            "pattern": "^-?\\d{0,3}(?:\\.\\d{0,2})?$",
            "writeOnly": true
          }
        },
        "required": [
          "coin_currency",
          "fiat_currency",
          "margin_percent"
        ]
      },
      "DryrunPricingFormulaResponse": {
        "type": "object",
        "properties": {
          "price": {
            "type": "string",
            "readOnly": true,
            "default": "",
            "maxLength": 64
          }
        },
        "required": [
          "price"
        ]
      },
      "EncryptedAddressKey": {
        "type": "object",
        "properties": {
          "address": {
            "type": "string"
          },
          "encrypted_private_key": {
            "type": "string"
          },
          "encrypted_private_key_iv": {
            "type": "string"
          }
        },
        "required": [
          "address",
          "encrypted_private_key",
          "encrypted_private_key_iv"
        ]
      },
      "EstimateSwapAmountRequest": {
        "type": "object",
        "description": "Serialiser for EstimateSwapAmount api.",
        "properties": {
          "amount": {
            "type": "string",
            "format": "decimal",
            "pattern": "^-?\\d{0,36}(?:\\.\\d{0,18})?$",
            "description": "Amount of crypto you want to swap from."
          },
          "to_currency": {
            "type": "string",
            "description": "Currency you want to swap to."
          },
          "from_crypto": {
            "type": "string",
            "description": "Crypto you want to swap from."
          }
        },
        "required": [
          "amount",
          "from_crypto",
          "to_currency"
        ]
      },
      "EthEscrowMeta": {
        "type": "object",
        "properties": {
          "approve_tx": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 256
          },
          "escrow_tx": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 256
          },
          "release_tx": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 256
          },
          "dispute_tx": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 256
          },
          "cancel_tx": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 256
          }
        }
      },
      "EventEnum": {
        "enum": [
          "TRADE_STATUS",
          "TRADE_MSG",
          "TRADE_ADMIN_MSG",
          "SWAP",
          "DIRECT_MSG",
          "REFERRAL",
          "WITHDRAWAL",
          "DEPOSIT",
          "ACCOUNT",
          "PROMO"
        ],
        "type": "string",
        "description": "* `TRADE_STATUS` - TRADE_STATUS\n* `TRADE_MSG` - TRADE_MSG\n* `TRADE_ADMIN_MSG` - TRADE_ADMIN_MSG\n* `SWAP` - SWAP\n* `DIRECT_MSG` - DIRECT_MSG\n* `REFERRAL` - REFERRAL\n* `WITHDRAWAL` - WITHDRAWAL\n* `DEPOSIT` - DEPOSIT\n* `ACCOUNT` - ACCOUNT\n* `PROMO` - PROMO"
      },
      "EvmUnsignedTransaction": {
        "type": "object",
        "description": "ETH, ERC20, BNB and BEP20: sign with the sending address's key.",
        "properties": {
          "chainId": {
            "type": "integer",
            "description": "1 for Ethereum, 56 for BSC."
          },
          "to": {
            "type": "string",
            "description": "Recipient, or the token contract."
          },
          "value": {
            "type": "integer",
            "description": "Wei; 0 for token transfers."
          },
          "gas": {
            "type": "integer"
          },
          "gasPrice": {
            "type": "integer"
          },
          "nonce": {
            "type": "integer"
          },
          "data": {
            "type": "string",
            "description": "Token transfers only: the encoded call."
          }
        },
        "required": [
          "chainId",
          "gas",
          "gasPrice",
          "nonce",
          "to",
          "value"
        ]
      },
      "FeedbackList": {
        "type": "object",
        "description": "Feedback as anyone can list it: without the trade's UUID.",
        "properties": {
          "feedback_for": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MinimalUserDetails"
              }
            ],
            "readOnly": true,
            "description": "Username"
          },
          "rating": {
            "type": [
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d{0,3}(?:\\.\\d{0,1})?$"
          },
          "feedback": {
            "type": [
              "string",
              "null"
            ]
          },
          "feedback_by": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MinimalUserDetails"
              }
            ],
            "readOnly": true,
            "description": "Username"
          },
          "id": {
            "type": "integer",
            "readOnly": true
          },
          "rating_percentage": {
            "type": [
              "number",
              "null"
            ],
            "format": "double",
            "readOnly": true
          },
          "time_created": {
            "type": [
              "integer",
              "null"
            ],
            "maximum": 2147483647,
            "minimum": 0,
            "title": "Created time"
          }
        },
        "required": [
          "feedback_by",
          "feedback_for",
          "id",
          "rating_percentage"
        ]
      },
      "LabelEnum": {
        "enum": [
          "affiliate",
          "advocate",
          "ambassador",
          "local_legend"
        ],
        "type": "string",
        "description": "* `affiliate` - Affiliate\n* `advocate` - Advocate\n* `ambassador` - Ambassador\n* `local_legend` - Local Legend"
      },
      "LegacyNcWallet": {
        "type": "object",
        "description": "Latest archived NcWalletHistory row per currency (see get_legacy_nc_balance).",
        "properties": {
          "crypto_slug": {
            "type": "string"
          },
          "encrypted_wallet_address": {
            "type": [
              "string",
              "null"
            ]
          },
          "local_currency_symbol": {
            "type": "string"
          },
          "unit_amount_in_local_currency": {
            "type": "string",
            "format": "decimal",
            "pattern": "^-?\\d{0,50}(?:\\.\\d{0,4})?$"
          },
          "crypto_balance": {
            "type": "string",
            "format": "decimal",
            "pattern": "^-?\\d{0,36}(?:\\.\\d{0,18})?$"
          },
          "crypto_balance_base_unit": {
            "type": "string",
            "format": "decimal",
            "pattern": "^-?\\d{0,54}(?:\\.\\d{0,0})?$"
          },
          "confirmed_balance_base_unit": {
            "type": "string",
            "format": "decimal",
            "pattern": "^-?\\d{0,54}(?:\\.\\d{0,0})?$"
          },
          "fiat_balance": {
            "type": "string",
            "format": "decimal",
            "pattern": "^-?\\d{0,50}(?:\\.\\d{0,4})?$"
          },
          "address_balance_map": {},
          "address_list": {},
          "address_enc_keys": {},
          "network_fees": {
            "default": {}
          },
          "can_withdraw_free": {
            "type": "boolean",
            "default": true
          },
          "free_withdrawal_reset_seconds": {
            "type": "integer",
            "default": 0
          },
          "profile_crypto_data_history": {
            "$ref": "#/components/schemas/ProfileCryptoDataHistory"
          }
        },
        "required": [
          "address_balance_map",
          "address_enc_keys",
          "address_list",
          "confirmed_balance_base_unit",
          "crypto_balance",
          "crypto_balance_base_unit",
          "crypto_slug",
          "encrypted_wallet_address",
          "fiat_balance",
          "local_currency_symbol",
          "profile_crypto_data_history",
          "unit_amount_in_local_currency"
        ]
      },
      "MinSwapAmountResponse": {
        "type": "object",
        "properties": {
          "minAmount": {
            "type": "string",
            "description": "Smallest `from_amount` to send, with a 10% margin."
          }
        },
        "required": [
          "minAmount"
        ]
      },
      "MinimalCurrency": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "maxLength": 64
          },
          "symbol": {
            "type": "string",
            "maxLength": 16
          },
          "token_standard": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 16
          },
          "symbol_filename": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 16
          },
          "is_crypto": {
            "type": "boolean"
          },
          "slug": {
            "oneOf": [
              {
                "type": "string",
                "maxLength": 50,
                "pattern": "^[-a-zA-Z0-9_]+$"
              },
              {
                "type": "string",
                "maxLength": 0
              }
            ]
          }
        },
        "required": [
          "symbol",
          "title"
        ]
      },
      "MinimalPaymentMethod": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "title": "Payment method name",
            "maxLength": 100
          },
          "slug": {
            "oneOf": [
              {
                "type": "string",
                "maxLength": 100,
                "pattern": "^[-a-zA-Z0-9_]+$"
              },
              {
                "type": "string",
                "maxLength": 0
              }
            ]
          }
        },
        "required": [
          "name"
        ]
      },
      "MinimalTradeType": {
        "type": "object",
        "properties": {
          "slug": {
            "oneOf": [
              {
                "type": "string",
                "maxLength": 100,
                "pattern": "^[-a-zA-Z0-9_]+$"
              },
              {
                "type": "string",
                "maxLength": 0
              }
            ]
          },
          "name": {
            "type": "string",
            "maxLength": 10
          },
          "opposite_name": {
            "type": "string",
            "maxLength": 10
          }
        },
        "required": [
          "name",
          "opposite_name"
        ]
      },
      "MinimalUserDetails": {
        "type": "object",
        "description": "Minimal user data serializer without any extra joins.\n\nThe fields tuple should contain only directly accessible table attrs",
        "properties": {
          "username": {
            "type": "string",
            "description": "Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.",
            "pattern": "^[\\w.@+-]+$",
            "maxLength": 150
          },
          "local_currency_symbol": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 16
          },
          "bio": {
            "type": "string",
            "description": "What you are about, what you love and how people should contact you"
          },
          "is_staff": {
            "type": "boolean",
            "title": "Staff status",
            "description": "Designates whether the user can log into this admin site."
          },
          "user_uuid": {
            "type": "string",
            "format": "uuid"
          },
          "date_joined": {
            "type": "string",
            "format": "date-time"
          },
          "primary_language": {
            "$ref": "#/components/schemas/PrimaryLanguageEnum"
          },
          "non_custodial": {
            "type": "boolean",
            "title": "Is the user a non-custodial user"
          },
          "hide_from_google": {
            "type": "boolean"
          }
        },
        "required": [
          "username"
        ]
      },
      "MultiSigEscrowMeta": {
        "type": "object",
        "properties": {
          "escrow_address": {
            "type": "string",
            "maxLength": 256
          },
          "fee_address": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 256
          },
          "escrow_tx": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 256
          },
          "release_tx": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 256
          },
          "dispute_tx": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 256
          },
          "cancel_tx": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 256
          }
        },
        "required": [
          "escrow_address"
        ]
      },
      "MyOffer": {
        "type": "object",
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "title": "Offer uuid"
          },
          "is_active": {
            "type": "boolean"
          },
          "created_by": {
            "type": "integer",
            "title": "Creator"
          },
          "trading_type": {
            "type": "integer",
            "title": "Trade type",
            "description": "Are you buying or selling this currency?"
          },
          "coin_currency": {
            "type": "integer",
            "description": "Enter the cryptocurrency you are trading"
          },
          "fiat_currency": {
            "type": "integer",
            "description": "What real-world currency are trading?"
          },
          "payment_method": {
            "type": "integer",
            "description": "Choose a payment method you wish to accept"
          },
          "custodial_type": {
            "type": "integer",
            "maximum": 2147483647,
            "minimum": 0,
            "title": "Trade types allowed"
          },
          "location_name": {
            "type": [
              "string",
              "null"
            ],
            "title": "Location",
            "description": "City or region where you wish to trade",
            "maxLength": 100
          },
          "country_code": {
            "type": [
              "string",
              "null"
            ],
            "description": "Country code in which you wish to trade",
            "maxLength": 2
          },
          "min_trade_size": {
            "type": "string",
            "format": "decimal",
            "pattern": "^-?\\d{0,30}(?:\\.\\d{0,10})?$",
            "title": "Minimum trade volume"
          },
          "max_trade_size": {
            "type": [
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d{0,30}(?:\\.\\d{0,10})?$",
            "title": "Maximum trade volume"
          },
          "headline": {
            "type": [
              "string",
              "null"
            ],
            "description": "Headline for the offer, highlighted on the listings page.",
            "maxLength": 100
          },
          "hidden": {
            "type": "boolean",
            "title": "Hidden offer",
            "description": "If true, offer is hidden and only accessible directly through the URL"
          },
          "sms_required": {
            "type": "boolean",
            "title": "Phone verification required",
            "description": "Require potential traders to have verified their phone number."
          },
          "minimum_feedback": {
            "type": "string",
            "format": "decimal",
            "pattern": "^-?\\d{0,3}(?:\\.\\d{0,0})?$",
            "title": "Minimum feedback percentage",
            "description": "The minimum feedback percentage for users you\n        want to trade with (e.g. 100)"
          },
          "price_formula_value": {
            "type": "string",
            "readOnly": true
          },
          "current_margin_percentage": {
            "type": [
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d{0,20}(?:\\.\\d{0,10})?$",
            "title": "Margin %"
          },
          "slug": {
            "oneOf": [
              {
                "type": "string",
                "maxLength": 128,
                "pattern": "^[-a-zA-Z0-9_]+$"
              },
              {
                "type": "string",
                "maxLength": 0
              }
            ]
          },
          "stats": {
            "type": "object",
            "additionalProperties": {},
            "readOnly": true
          }
        },
        "required": [
          "coin_currency",
          "created_by",
          "fiat_currency",
          "payment_method",
          "price_formula_value",
          "stats",
          "trading_type"
        ]
      },
      "NonCustodialTradeCreateRequest": {
        "type": "object",
        "properties": {
          "offer": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the Offer you want to initiate the trade with."
          },
          "fiat_amount": {
            "type": "string",
            "format": "decimal",
            "pattern": "^-?\\d{0,14}(?:\\.\\d{0,18})?$",
            "description": "Amount in fiat (local) currency corresponding to\n        the crypto value to buy/sell."
          },
          "coin_amount": {
            "type": "string",
            "format": "decimal",
            "pattern": "^-?\\d{0,14}(?:\\.\\d{0,18})?$",
            "description": "Crypto value for the trade."
          },
          "wallet_address": {
            "type": "string",
            "minLength": 1,
            "description": "Wallet address you want to use to start the trade.",
            "maxLength": 256
          },
          "wallet_pubkey": {
            "type": "string",
            "description": "Public key hex corresponding to `wallet_address`.",
            "maxLength": 256
          },
          "wallet_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/WalletTypeEnum"
              }
            ],
            "default": "webwallet",
            "description": "`webwallet`, the non-custodial LocalCoinSwap Wallet, is the\n        only type. `wallet_address` must be one of your web wallet addresses.\n\n* `webwallet` - Web wallet"
          },
          "btc_trade_secrets": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BtcNcTradeSecretRequest"
              }
            ],
            "description": "This is **only required** for non-custodial BTC trades."
          }
        },
        "required": [
          "coin_amount",
          "fiat_amount",
          "offer",
          "wallet_address"
        ]
      },
      "NonCustodialTradeUpdateStatusEnum": {
        "enum": [
          "ACCEPTED",
          "WAITING_FOR_MIN_APPROVE_CONFIRMS",
          "TRANSFER_APPROVED",
          "WAITING_FOR_MIN_ESCROW_CONFIRMS",
          "CRYPTO_ESC",
          "FUND_PAID",
          "FUND_RECEIVED",
          "CANCELLED",
          "CANCELLATION_REJECTED"
        ],
        "type": "string",
        "description": "* `ACCEPTED` - ACCEPTED\n* `WAITING_FOR_MIN_APPROVE_CONFIRMS` - WAITING_FOR_MIN_APPROVE_CONFIRMS\n* `TRANSFER_APPROVED` - TRANSFER_APPROVED\n* `WAITING_FOR_MIN_ESCROW_CONFIRMS` - WAITING_FOR_MIN_ESCROW_CONFIRMS\n* `CRYPTO_ESC` - CRYPTO_ESC\n* `FUND_PAID` - FUND_PAID\n* `FUND_RECEIVED` - FUND_RECEIVED\n* `CANCELLED` - CANCELLED\n* `CANCELLATION_REJECTED` - CANCELLATION_REJECTED"
      },
      "NonCustodialWallet": {
        "type": "object",
        "properties": {
          "crypto_balance": {
            "type": "string",
            "format": "decimal",
            "pattern": "^-?\\d{0,36}(?:\\.\\d{0,18})?$"
          },
          "crypto_balance_base_unit": {
            "type": "string",
            "format": "decimal",
            "pattern": "^-?\\d{0,54}(?:\\.\\d{0,0})?$"
          },
          "confirmed_balance_base_unit": {
            "type": "string",
            "format": "decimal",
            "pattern": "^-?\\d{0,54}(?:\\.\\d{0,0})?$"
          },
          "fiat_balance": {
            "type": "string",
            "format": "decimal",
            "pattern": "^-?\\d{0,50}(?:\\.\\d{0,4})?$"
          },
          "crypto_slug": {
            "type": "string"
          },
          "local_currency_symbol": {
            "type": "string"
          },
          "unit_amount_in_local_currency": {
            "type": "string",
            "format": "decimal",
            "pattern": "^-?\\d{0,50}(?:\\.\\d{0,4})?$"
          },
          "address_balance_map": {},
          "address_list": {},
          "address_enc_keys": {},
          "network_fees": {
            "default": {}
          },
          "can_withdraw_free": {
            "type": "boolean",
            "default": true
          },
          "free_withdrawal_reset_seconds": {
            "type": "integer",
            "default": 0
          }
        },
        "required": [
          "address_balance_map",
          "address_enc_keys",
          "address_list",
          "confirmed_balance_base_unit",
          "crypto_balance",
          "crypto_balance_base_unit",
          "crypto_slug",
          "fiat_balance",
          "local_currency_symbol",
          "unit_amount_in_local_currency"
        ]
      },
      "Notif": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "readOnly": true
          },
          "unread": {
            "type": "boolean"
          },
          "title": {
            "type": "string",
            "maxLength": 255
          },
          "description": {
            "type": "string",
            "maxLength": 255
          },
          "event": {
            "$ref": "#/components/schemas/EventEnum"
          },
          "metadata": {
            "oneOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "since": {
            "type": "string",
            "readOnly": true
          }
        },
        "required": [
          "description",
          "event",
          "id",
          "since",
          "title"
        ]
      },
      "NotifStatus": {
        "type": "object",
        "properties": {
          "status": {
            "type": "boolean"
          }
        },
        "required": [
          "status"
        ]
      },
      "NullEnum": {
        "type": "null"
      },
      "OfferCreate": {
        "type": "object",
        "properties": {
          "trading_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MinimalTradeType"
              }
            ],
            "description": "Trade type. It can either be `buy` or `sell`."
          },
          "coin_currency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MinimalCurrency"
              }
            ],
            "description": "\n        Crypto currency slug. Examples: `BTC`, `ETH`, `USDT-ERC20`.\n\n\n        Full list of available cryptocurrencies can be found\n        at `/currencies/active-cryptos/`\n        "
          },
          "fiat_currency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MinimalCurrency"
              }
            ],
            "description": "\n        Fiat currency symbol. Examples: `USD`, `GBP`, `AUD`.\n\n\n        Full list of available fiat-currencies can be found at `/currencies/fiat-currencies/`\n        "
          },
          "payment_method": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MinimalPaymentMethod"
              }
            ],
            "description": "\n        Payment method slug. Examples: `paypal`, `cash-deposit`.\n\n\n        Full list of available payment-methods can be found at `/offers/payment-methods/`\n        "
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "readOnly": true,
            "title": "Offer uuid"
          },
          "slug": {
            "type": "string",
            "readOnly": true,
            "pattern": "^[-a-zA-Z0-9_]+$"
          },
          "country_code": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CountryCodeEnum"
              }
            ],
            "description": "Country code in alpha-2 format (two characters only).\n        See the list of available choices above.\n\n* `EU` - EU\n* `AW` - AW\n* `AF` - AF\n* `AO` - AO\n* `AI` - AI\n* `AX` - AX\n* `AL` - AL\n* `AD` - AD\n* `AE` - AE\n* `AR` - AR\n* `AM` - AM\n* `AS` - AS\n* `AQ` - AQ\n* `TF` - TF\n* `AG` - AG\n* `AU` - AU\n* `AT` - AT\n* `AZ` - AZ\n* `BI` - BI\n* `BE` - BE\n* `BJ` - BJ\n* `BQ` - BQ\n* `BF` - BF\n* `BD` - BD\n* `BG` - BG\n* `BH` - BH\n* `BS` - BS\n* `BA` - BA\n* `BL` - BL\n* `BY` - BY\n* `BZ` - BZ\n* `BM` - BM\n* `BO` - BO\n* `BR` - BR\n* `BB` - BB\n* `BN` - BN\n* `BT` - BT\n* `BV` - BV\n* `BW` - BW\n* `CF` - CF\n* `CA` - CA\n* `CC` - CC\n* `CH` - CH\n* `CL` - CL\n* `CN` - CN\n* `CI` - CI\n* `CM` - CM\n* `CD` - CD\n* `CG` - CG\n* `CK` - CK\n* `CO` - CO\n* `KM` - KM\n* `CV` - CV\n* `CR` - CR\n* `CU` - CU\n* `CW` - CW\n* `CX` - CX\n* `KY` - KY\n* `CY` - CY\n* `CZ` - CZ\n* `DE` - DE\n* `DJ` - DJ\n* `DM` - DM\n* `DK` - DK\n* `DO` - DO\n* `DZ` - DZ\n* `EC` - EC\n* `EG` - EG\n* `ER` - ER\n* `EH` - EH\n* `ES` - ES\n* `EE` - EE\n* `ET` - ET\n* `FI` - FI\n* `FJ` - FJ\n* `FK` - FK\n* `FR` - FR\n* `FO` - FO\n* `FM` - FM\n* `GA` - GA\n* `GB` - GB\n* `GE` - GE\n* `GG` - GG\n* `GH` - GH\n* `GI` - GI\n* `GN` - GN\n* `GP` - GP\n* `GM` - GM\n* `GW` - GW\n* `GQ` - GQ\n* `GR` - GR\n* `GD` - GD\n* `GL` - GL\n* `GT` - GT\n* `GF` - GF\n* `GU` - GU\n* `GY` - GY\n* `HK` - HK\n* `HM` - HM\n* `HN` - HN\n* `HR` - HR\n* `HT` - HT\n* `HU` - HU\n* `ID` - ID\n* `IM` - IM\n* `IN` - IN\n* `IO` - IO\n* `IE` - IE\n* `IR` - IR\n* `IQ` - IQ\n* `IS` - IS\n* `IL` - IL\n* `IT` - IT\n* `JM` - JM\n* `JE` - JE\n* `JO` - JO\n* `JP` - JP\n* `KZ` - KZ\n* `KE` - KE\n* `KG` - KG\n* `KH` - KH\n* `KI` - KI\n* `KN` - KN\n* `KR` - KR\n* `KW` - KW\n* `LA` - LA\n* `LB` - LB\n* `LR` - LR\n* `LY` - LY\n* `LC` - LC\n* `LI` - LI\n* `LK` - LK\n* `LS` - LS\n* `LT` - LT\n* `LU` - LU\n* `LV` - LV\n* `MO` - MO\n* `MF` - MF\n* `MA` - MA\n* `MC` - MC\n* `MD` - MD\n* `MG` - MG\n* `MV` - MV\n* `MX` - MX\n* `MH` - MH\n* `MK` - MK\n* `ML` - ML\n* `MT` - MT\n* `MM` - MM\n* `ME` - ME\n* `MN` - MN\n* `MP` - MP\n* `MZ` - MZ\n* `MR` - MR\n* `MS` - MS\n* `MQ` - MQ\n* `MU` - MU\n* `MW` - MW\n* `MY` - MY\n* `YT` - YT\n* `NA` - NA\n* `NC` - NC\n* `NE` - NE\n* `NF` - NF\n* `NG` - NG\n* `NI` - NI\n* `NU` - NU\n* `NL` - NL\n* `NO` - NO\n* `NP` - NP\n* `NR` - NR\n* `NZ` - NZ\n* `OM` - OM\n* `PK` - PK\n* `PA` - PA\n* `PN` - PN\n* `PE` - PE\n* `PH` - PH\n* `PW` - PW\n* `PG` - PG\n* `PL` - PL\n* `PR` - PR\n* `KP` - KP\n* `PT` - PT\n* `PY` - PY\n* `PS` - PS\n* `PF` - PF\n* `QA` - QA\n* `RE` - RE\n* `RO` - RO\n* `RU` - RU\n* `RW` - RW\n* `SA` - SA\n* `SD` - SD\n* `SN` - SN\n* `SG` - SG\n* `GS` - GS\n* `SH` - SH\n* `SJ` - SJ\n* `SB` - SB\n* `SL` - SL\n* `SV` - SV\n* `SM` - SM\n* `SO` - SO\n* `PM` - PM\n* `RS` - RS\n* `SS` - SS\n* `ST` - ST\n* `SR` - SR\n* `SK` - SK\n* `SI` - SI\n* `SE` - SE\n* `SZ` - SZ\n* `SX` - SX\n* `SC` - SC\n* `SY` - SY\n* `TC` - TC\n* `TD` - TD\n* `TG` - TG\n* `TH` - TH\n* `TJ` - TJ\n* `TK` - TK\n* `TM` - TM\n* `TL` - TL\n* `TO` - TO\n* `TT` - TT\n* `TN` - TN\n* `TR` - TR\n* `TV` - TV\n* `TW` - TW\n* `TZ` - TZ\n* `UG` - UG\n* `UA` - UA\n* `UM` - UM\n* `UY` - UY\n* `US` - US\n* `UZ` - UZ\n* `VA` - VA\n* `VC` - VC\n* `VE` - VE\n* `VG` - VG\n* `VI` - VI\n* `VN` - VN\n* `VU` - VU\n* `WF` - WF\n* `WS` - WS\n* `YE` - YE\n* `ZA` - ZA\n* `ZM` - ZM\n* `ZW` - ZW"
          },
          "location_name": {
            "type": "string",
            "default": "",
            "description": "\n        City or place name, consider using a discoverable location name.\n        Eg: `Mountain View, California` or `Sydney`.\n\n\n        Please make sure this name is within the `country_code` chosen above.\n        Behind the scenes we perform a reverse lookup under\n        that country code to find geo-coordinates which further help in search APIs.\n        ",
            "maxLength": 64
          },
          "min_trade_size": {
            "type": "integer",
            "minimum": 1,
            "default": 1,
            "description": "Expressed in terms of the fiat currency. Should be >= 1."
          },
          "max_trade_size": {
            "type": "integer",
            "minimum": 1,
            "description": "Expressed in terms of the fiat currency. Should be >= `min_trade_size`."
          },
          "trading_conditions": {
            "type": "string",
            "default": "",
            "description": "The conditions under which you trade with others."
          },
          "trading_condition_keys": {
            "description": "Structured trading conditions as a list of selected option keys."
          },
          "headline": {
            "type": [
              "string",
              "null"
            ],
            "default": "",
            "description": "Headline for the offer, highlighted on the listings page.",
            "maxLength": 60
          },
          "hidden": {
            "type": "boolean",
            "default": false,
            "title": "Hidden offer",
            "description": "If true, offer is hidden and only accessible directly through the URL"
          },
          "enforced_sizes": {
            "type": [
              "string",
              "null"
            ],
            "default": "",
            "title": "Trade sizes",
            "description": "These are the accepted sizes, comma separated. Eg: if you are exchanging\n        for gift cards of values $50 and $100, enter `50,100`",
            "maxLength": 500
          },
          "blocked_countries": {
            "type": [
              "string",
              "null"
            ],
            "default": "",
            "title": "Blocked country codes",
            "description": "Comma separated list of iso2 country codes like NG,KE",
            "maxLength": 510
          },
          "automatic_cancel_time": {
            "type": "integer",
            "maximum": 2000,
            "minimum": 10,
            "default": 240,
            "description": "Time (in minutes) until the trade will automatically\n        cancel/expire if you don't respond"
          },
          "sms_required": {
            "type": "boolean",
            "default": false,
            "title": "Phone verification required",
            "description": "Require potential traders to have verified their phone number."
          },
          "minimum_feedback": {
            "type": "integer",
            "maximum": 100,
            "minimum": 0,
            "description": "Minimum feedback percentage required for traders to\n        initiate a trade on this offer."
          }
        },
        "required": [
          "coin_currency",
          "country_code",
          "fiat_currency",
          "max_trade_size",
          "payment_method",
          "slug",
          "trading_type",
          "uuid"
        ]
      },
      "OfferCreateRequest": {
        "type": "object",
        "properties": {
          "trading_type": {
            "type": "string",
            "description": "Trade type. It can either be `buy` or `sell`."
          },
          "coin_currency": {
            "type": "string",
            "description": "\n        Crypto currency slug. Examples: `BTC`, `ETH`, `USDT-ERC20`.\n\n\n        Full list of available cryptocurrencies can be found\n        at `/currencies/active-cryptos/`\n        "
          },
          "fiat_currency": {
            "type": "string",
            "description": "\n        Fiat currency symbol. Examples: `USD`, `GBP`, `AUD`.\n\n\n        Full list of available fiat-currencies can be found at `/currencies/fiat-currencies/`\n        "
          },
          "payment_method": {
            "type": "string",
            "description": "\n        Payment method slug. Examples: `paypal`, `cash-deposit`.\n\n\n        Full list of available payment-methods can be found at `/offers/payment-methods/`\n        "
          },
          "country_code": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CountryCodeEnum"
              }
            ],
            "description": "Country code in alpha-2 format (two characters only).\n        See the list of available choices above.\n\n* `EU` - EU\n* `AW` - AW\n* `AF` - AF\n* `AO` - AO\n* `AI` - AI\n* `AX` - AX\n* `AL` - AL\n* `AD` - AD\n* `AE` - AE\n* `AR` - AR\n* `AM` - AM\n* `AS` - AS\n* `AQ` - AQ\n* `TF` - TF\n* `AG` - AG\n* `AU` - AU\n* `AT` - AT\n* `AZ` - AZ\n* `BI` - BI\n* `BE` - BE\n* `BJ` - BJ\n* `BQ` - BQ\n* `BF` - BF\n* `BD` - BD\n* `BG` - BG\n* `BH` - BH\n* `BS` - BS\n* `BA` - BA\n* `BL` - BL\n* `BY` - BY\n* `BZ` - BZ\n* `BM` - BM\n* `BO` - BO\n* `BR` - BR\n* `BB` - BB\n* `BN` - BN\n* `BT` - BT\n* `BV` - BV\n* `BW` - BW\n* `CF` - CF\n* `CA` - CA\n* `CC` - CC\n* `CH` - CH\n* `CL` - CL\n* `CN` - CN\n* `CI` - CI\n* `CM` - CM\n* `CD` - CD\n* `CG` - CG\n* `CK` - CK\n* `CO` - CO\n* `KM` - KM\n* `CV` - CV\n* `CR` - CR\n* `CU` - CU\n* `CW` - CW\n* `CX` - CX\n* `KY` - KY\n* `CY` - CY\n* `CZ` - CZ\n* `DE` - DE\n* `DJ` - DJ\n* `DM` - DM\n* `DK` - DK\n* `DO` - DO\n* `DZ` - DZ\n* `EC` - EC\n* `EG` - EG\n* `ER` - ER\n* `EH` - EH\n* `ES` - ES\n* `EE` - EE\n* `ET` - ET\n* `FI` - FI\n* `FJ` - FJ\n* `FK` - FK\n* `FR` - FR\n* `FO` - FO\n* `FM` - FM\n* `GA` - GA\n* `GB` - GB\n* `GE` - GE\n* `GG` - GG\n* `GH` - GH\n* `GI` - GI\n* `GN` - GN\n* `GP` - GP\n* `GM` - GM\n* `GW` - GW\n* `GQ` - GQ\n* `GR` - GR\n* `GD` - GD\n* `GL` - GL\n* `GT` - GT\n* `GF` - GF\n* `GU` - GU\n* `GY` - GY\n* `HK` - HK\n* `HM` - HM\n* `HN` - HN\n* `HR` - HR\n* `HT` - HT\n* `HU` - HU\n* `ID` - ID\n* `IM` - IM\n* `IN` - IN\n* `IO` - IO\n* `IE` - IE\n* `IR` - IR\n* `IQ` - IQ\n* `IS` - IS\n* `IL` - IL\n* `IT` - IT\n* `JM` - JM\n* `JE` - JE\n* `JO` - JO\n* `JP` - JP\n* `KZ` - KZ\n* `KE` - KE\n* `KG` - KG\n* `KH` - KH\n* `KI` - KI\n* `KN` - KN\n* `KR` - KR\n* `KW` - KW\n* `LA` - LA\n* `LB` - LB\n* `LR` - LR\n* `LY` - LY\n* `LC` - LC\n* `LI` - LI\n* `LK` - LK\n* `LS` - LS\n* `LT` - LT\n* `LU` - LU\n* `LV` - LV\n* `MO` - MO\n* `MF` - MF\n* `MA` - MA\n* `MC` - MC\n* `MD` - MD\n* `MG` - MG\n* `MV` - MV\n* `MX` - MX\n* `MH` - MH\n* `MK` - MK\n* `ML` - ML\n* `MT` - MT\n* `MM` - MM\n* `ME` - ME\n* `MN` - MN\n* `MP` - MP\n* `MZ` - MZ\n* `MR` - MR\n* `MS` - MS\n* `MQ` - MQ\n* `MU` - MU\n* `MW` - MW\n* `MY` - MY\n* `YT` - YT\n* `NA` - NA\n* `NC` - NC\n* `NE` - NE\n* `NF` - NF\n* `NG` - NG\n* `NI` - NI\n* `NU` - NU\n* `NL` - NL\n* `NO` - NO\n* `NP` - NP\n* `NR` - NR\n* `NZ` - NZ\n* `OM` - OM\n* `PK` - PK\n* `PA` - PA\n* `PN` - PN\n* `PE` - PE\n* `PH` - PH\n* `PW` - PW\n* `PG` - PG\n* `PL` - PL\n* `PR` - PR\n* `KP` - KP\n* `PT` - PT\n* `PY` - PY\n* `PS` - PS\n* `PF` - PF\n* `QA` - QA\n* `RE` - RE\n* `RO` - RO\n* `RU` - RU\n* `RW` - RW\n* `SA` - SA\n* `SD` - SD\n* `SN` - SN\n* `SG` - SG\n* `GS` - GS\n* `SH` - SH\n* `SJ` - SJ\n* `SB` - SB\n* `SL` - SL\n* `SV` - SV\n* `SM` - SM\n* `SO` - SO\n* `PM` - PM\n* `RS` - RS\n* `SS` - SS\n* `ST` - ST\n* `SR` - SR\n* `SK` - SK\n* `SI` - SI\n* `SE` - SE\n* `SZ` - SZ\n* `SX` - SX\n* `SC` - SC\n* `SY` - SY\n* `TC` - TC\n* `TD` - TD\n* `TG` - TG\n* `TH` - TH\n* `TJ` - TJ\n* `TK` - TK\n* `TM` - TM\n* `TL` - TL\n* `TO` - TO\n* `TT` - TT\n* `TN` - TN\n* `TR` - TR\n* `TV` - TV\n* `TW` - TW\n* `TZ` - TZ\n* `UG` - UG\n* `UA` - UA\n* `UM` - UM\n* `UY` - UY\n* `US` - US\n* `UZ` - UZ\n* `VA` - VA\n* `VC` - VC\n* `VE` - VE\n* `VG` - VG\n* `VI` - VI\n* `VN` - VN\n* `VU` - VU\n* `WF` - WF\n* `WS` - WS\n* `YE` - YE\n* `ZA` - ZA\n* `ZM` - ZM\n* `ZW` - ZW"
          },
          "location_name": {
            "type": "string",
            "default": "",
            "description": "\n        City or place name, consider using a discoverable location name.\n        Eg: `Mountain View, California` or `Sydney`.\n\n\n        Please make sure this name is within the `country_code` chosen above.\n        Behind the scenes we perform a reverse lookup under\n        that country code to find geo-coordinates which further help in search APIs.\n        ",
            "maxLength": 64
          },
          "min_trade_size": {
            "type": "integer",
            "minimum": 1,
            "default": 1,
            "description": "Expressed in terms of the fiat currency. Should be >= 1."
          },
          "max_trade_size": {
            "type": "integer",
            "minimum": 1,
            "description": "Expressed in terms of the fiat currency. Should be >= `min_trade_size`."
          },
          "pricing_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PricingTypeEnum"
              }
            ],
            "writeOnly": true,
            "default": "MARGIN"
          },
          "pricing_market": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PricingMarketEnum"
              }
            ],
            "writeOnly": true,
            "default": "cmc"
          },
          "pricing_expression": {
            "type": "string",
            "writeOnly": true,
            "minLength": 1,
            "default": "2",
            "maxLength": 128
          },
          "trading_conditions": {
            "type": "string",
            "default": "",
            "description": "The conditions under which you trade with others."
          },
          "trading_condition_keys": {
            "description": "Structured trading conditions as a list of selected option keys."
          },
          "headline": {
            "type": [
              "string",
              "null"
            ],
            "default": "",
            "description": "Headline for the offer, highlighted on the listings page.",
            "maxLength": 60
          },
          "trading_hours_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TradingHoursTypeEnum"
              }
            ],
            "writeOnly": true,
            "default": "daily",
            "description": "Choose whether you want to specify common availability hours\n        for every day or specify individual hours for each day\n\n* `daily` - daily\n* `specific` - specific"
          },
          "trading_hours_json": {
            "writeOnly": true,
            "description": "If `trading_hours_type` is `daily` then the format should be: \n\n\n```\n{\n    \"anyday\": {\n        \"from\": \"08:30\",\n        \"to\": \"21:00\"\n    }\n}```\n\n\n\n\nElse the format should be: \n\n\n```\n{\n    \"monday\": {\n        \"from\": \"06:30\",\n        \"to\": \"21:00\"\n    },\n    \"tuesday\": {\n        \"from\": \"06:30\",\n        \"to\": \"21:00\"\n    },\n    \"wednesday\": {\n        \"from\": \"06:30\",\n        \"to\": \"21:00\"\n    },\n    \"thursday\": {\n        \"from\": \"09:30\",\n        \"to\": \"21:00\"\n    },\n    \"friday\": {\n        \"from\": \"00:30\",\n        \"to\": \"21:00\"\n    },\n    \"saturday\": {\n        \"from\": \"18:30\",\n        \"to\": \"19:00\"\n    },\n    \"sunday\": {\n        \"from\": \"08:30\",\n        \"to\": \"21:00\"\n    }\n}```\n"
          },
          "hidden": {
            "type": "boolean",
            "default": false,
            "title": "Hidden offer",
            "description": "If true, offer is hidden and only accessible directly through the URL"
          },
          "enforced_sizes": {
            "type": [
              "string",
              "null"
            ],
            "default": "",
            "title": "Trade sizes",
            "description": "These are the accepted sizes, comma separated. Eg: if you are exchanging\n        for gift cards of values $50 and $100, enter `50,100`",
            "maxLength": 500
          },
          "msg_on_trade_accepted": {
            "type": "string",
            "writeOnly": true,
            "default": "",
            "maxLength": 500
          },
          "msg_on_trade_escrowed": {
            "type": "string",
            "writeOnly": true,
            "default": "",
            "maxLength": 500
          },
          "msg_on_trade_released": {
            "type": "string",
            "writeOnly": true,
            "default": "",
            "maxLength": 500
          },
          "blocked_countries": {
            "type": [
              "string",
              "null"
            ],
            "default": "",
            "title": "Blocked country codes",
            "description": "Comma separated list of iso2 country codes like NG,KE",
            "maxLength": 510
          },
          "automatic_cancel_time": {
            "type": "integer",
            "maximum": 2000,
            "minimum": 10,
            "default": 240,
            "description": "Time (in minutes) until the trade will automatically\n        cancel/expire if you don't respond"
          },
          "sms_required": {
            "type": "boolean",
            "default": false,
            "title": "Phone verification required",
            "description": "Require potential traders to have verified their phone number."
          },
          "minimum_feedback": {
            "type": "integer",
            "maximum": 100,
            "minimum": 0,
            "description": "Minimum feedback percentage required for traders to\n        initiate a trade on this offer."
          }
        },
        "required": [
          "coin_currency",
          "country_code",
          "fiat_currency",
          "max_trade_size",
          "payment_method",
          "trading_hours_json",
          "trading_type"
        ]
      },
      "OfferCreatorSummary": {
        "type": "object",
        "properties": {
          "username": {
            "type": "string",
            "description": "Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.",
            "pattern": "^[\\w.@+-]+$",
            "maxLength": 150
          },
          "activity_status": {
            "type": "string",
            "readOnly": true
          },
          "activity_tooltip": {
            "type": [
              "string",
              "null"
            ],
            "readOnly": true
          },
          "last_seen": {
            "type": [
              "integer",
              "null"
            ],
            "maximum": 2147483647,
            "minimum": 0
          },
          "is_legacy": {
            "type": "boolean",
            "title": "Pro Trader Badge"
          },
          "user_uuid": {
            "type": "string",
            "format": "uuid"
          },
          "hide_from_google": {
            "type": "boolean"
          },
          "imported_total_trades": {
            "type": [
              "integer",
              "null"
            ],
            "maximum": 2147483647,
            "minimum": 0,
            "title": "Imported trades"
          },
          "imported_volume": {
            "type": [
              "integer",
              "null"
            ],
            "readOnly": true
          },
          "completed_trades": {
            "type": "integer",
            "maximum": 2147483647,
            "minimum": 0,
            "title": "Completed trades on our platform"
          },
          "platform_volume": {
            "type": [
              "integer",
              "null"
            ],
            "readOnly": true
          },
          "feedback_score": {
            "type": [
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d{0,3}(?:\\.\\d{0,5})?$",
            "title": "Avg rating out of 5"
          },
          "avg_response_time": {
            "type": [
              "integer",
              "null"
            ],
            "maximum": 2147483647,
            "minimum": 0,
            "title": "Average response time",
            "description": "Average response time of user to reject or accept the contract"
          },
          "is_kyc_verified": {
            "type": "boolean",
            "readOnly": true
          },
          "xp_level": {
            "allOf": [
              {
                "$ref": "#/components/schemas/XpLevelEnum"
              }
            ],
            "title": "Experience level",
            "description": "Current logic for this calculation is:\n\n    if xp < 10:\n        return \"NEWBIE\"\n    if xp >= 10 and xp < 25:\n        return \"APPRENTICE\"\n    if xp >= 25 and xp < 100:\n        return \"SPECIALIST\"\n    if xp >= 100 and xp < 500:\n        return \"EXPERT\"\n    if xp >= 500 and xp < 1000:\n        return \"VETERAN\"\n    if xp >= 1000 and xp < 2500:\n        return \"MASTER\"\n    if xp >= 2500 and xp < 5000:\n        return \"GRANDMASTER\"\n    if xp >= 5000 and xp < 10000:\n        return \"CHAMPION\"\n    if xp >= 10000:\n        return \"LEGENDARY\"\n\n\n\n* `NEWBIE` - Newbie\n* `APPRENTICE` - Apprentice\n* `SPECIALIST` - Specialist\n* `EXPERT` - Expert\n* `VETERAN` - Veteran\n* `MASTER` - Master\n* `GRANDMASTER` - Grand Master\n* `CHAMPION` - Champion\n* `LEGENDARY` - Legendary"
          }
        },
        "required": [
          "activity_status",
          "activity_tooltip",
          "imported_volume",
          "is_kyc_verified",
          "platform_volume",
          "username"
        ]
      },
      "OfferList": {
        "type": "object",
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "title": "Offer uuid"
          },
          "created_by": {
            "$ref": "#/components/schemas/OfferCreatorSummary"
          },
          "trading_type": {
            "$ref": "#/components/schemas/MinimalTradeType"
          },
          "coin_currency": {
            "$ref": "#/components/schemas/MinimalCurrency"
          },
          "fiat_currency": {
            "$ref": "#/components/schemas/MinimalCurrency"
          },
          "payment_method": {
            "$ref": "#/components/schemas/MinimalPaymentMethod"
          },
          "location_name": {
            "type": [
              "string",
              "null"
            ],
            "title": "Location",
            "description": "City or region where you wish to trade",
            "maxLength": 100
          },
          "country_code": {
            "type": [
              "string",
              "null"
            ],
            "description": "Country code in which you wish to trade",
            "maxLength": 2
          },
          "min_trade_size": {
            "type": "string",
            "format": "decimal",
            "pattern": "^-?\\d{0,30}(?:\\.\\d{0,10})?$",
            "title": "Minimum trade volume"
          },
          "max_trade_size": {
            "type": [
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d{0,30}(?:\\.\\d{0,10})?$",
            "title": "Maximum trade volume"
          },
          "headline": {
            "type": [
              "string",
              "null"
            ],
            "description": "Headline for the offer, highlighted on the listings page.",
            "maxLength": 100
          },
          "sms_required": {
            "type": "boolean",
            "title": "Phone verification required",
            "description": "Require potential traders to have verified their phone number."
          },
          "minimum_feedback": {
            "type": "string",
            "format": "decimal",
            "pattern": "^-?\\d{0,3}(?:\\.\\d{0,0})?$",
            "title": "Minimum feedback percentage",
            "description": "The minimum feedback percentage for users you\n        want to trade with (e.g. 100)"
          },
          "price_formula_value": {
            "type": "string",
            "readOnly": true
          },
          "current_margin_percentage": {
            "type": [
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d{0,20}(?:\\.\\d{0,10})?$",
            "title": "Margin %"
          },
          "slug": {
            "oneOf": [
              {
                "type": "string",
                "maxLength": 128,
                "pattern": "^[-a-zA-Z0-9_]+$"
              },
              {
                "type": "string",
                "maxLength": 0
              }
            ]
          },
          "automatic_cancel_time": {
            "type": [
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d{0,4}(?:\\.\\d{0,0})?$",
            "title": "Automatic cancellation time in minutes",
            "description": "Time until the trade will automatically cancel if you don't respond"
          },
          "enforced_sizes": {
            "type": [
              "string",
              "null"
            ],
            "title": "Trade sizes",
            "description": "These are the accepted sizes, comma separated. Eg: if you are exchanging\n        for gift cards of values $50 and $100, enter `50,100`",
            "maxLength": 1024
          },
          "reputation": {
            "type": "integer",
            "maximum": 2147483647,
            "minimum": 0
          },
          "is_featured": {
            "type": "boolean",
            "title": "Featured offer?",
            "description": "If true, offer is shown on top as Featured offer"
          }
        },
        "required": [
          "coin_currency",
          "created_by",
          "fiat_currency",
          "payment_method",
          "price_formula_value",
          "trading_type"
        ]
      },
      "OfferRead": {
        "type": "object",
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid",
            "title": "Offer uuid"
          },
          "slug": {
            "oneOf": [
              {
                "type": "string",
                "maxLength": 128,
                "pattern": "^[-a-zA-Z0-9_]+$"
              },
              {
                "type": "string",
                "maxLength": 0
              }
            ]
          },
          "is_active": {
            "type": "boolean"
          },
          "created_by": {
            "$ref": "#/components/schemas/PublicProfile"
          },
          "trading_type": {
            "$ref": "#/components/schemas/TradeType"
          },
          "coin_currency": {
            "$ref": "#/components/schemas/MinimalCurrency"
          },
          "fiat_currency": {
            "$ref": "#/components/schemas/MinimalCurrency"
          },
          "payment_method": {
            "$ref": "#/components/schemas/MinimalPaymentMethod"
          },
          "location_name": {
            "type": [
              "string",
              "null"
            ],
            "title": "Location",
            "description": "City or region where you wish to trade",
            "maxLength": 100
          },
          "country_code": {
            "type": [
              "string",
              "null"
            ],
            "description": "Country code in which you wish to trade",
            "maxLength": 2
          },
          "custodial_type": {
            "type": "integer",
            "maximum": 2147483647,
            "minimum": 0,
            "title": "Trade types allowed"
          },
          "min_trade_size": {
            "type": "string",
            "format": "decimal",
            "pattern": "^-?\\d{0,30}(?:\\.\\d{0,10})?$",
            "title": "Minimum trade volume"
          },
          "max_trade_size": {
            "type": [
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d{0,30}(?:\\.\\d{0,10})?$",
            "title": "Maximum trade volume"
          },
          "trading_conditions": {
            "type": "string",
            "description": "The conditions under which you trade with others."
          },
          "trading_condition_keys": {
            "description": "Structured trading conditions as a list of selected option keys."
          },
          "headline": {
            "type": [
              "string",
              "null"
            ],
            "description": "Headline for the offer, highlighted on the listings page.",
            "maxLength": 100
          },
          "hidden": {
            "type": "boolean",
            "title": "Hidden offer",
            "description": "If true, offer is hidden and only accessible directly through the URL"
          },
          "enforced_sizes": {
            "type": [
              "string",
              "null"
            ],
            "title": "Trade sizes",
            "description": "These are the accepted sizes, comma separated. Eg: if you are exchanging\n        for gift cards of values $50 and $100, enter `50,100`",
            "maxLength": 1024
          },
          "blocked_countries": {
            "type": [
              "string",
              "null"
            ],
            "title": "Blocked country codes",
            "description": "Comma separated list of iso2 country codes like NG,KE",
            "maxLength": 512
          },
          "automatic_cancel_time": {
            "type": [
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d{0,4}(?:\\.\\d{0,0})?$",
            "title": "Automatic cancellation time in minutes",
            "description": "Time until the trade will automatically cancel if you don't respond"
          },
          "sms_required": {
            "type": "boolean",
            "title": "Phone verification required",
            "description": "Require potential traders to have verified their phone number."
          },
          "minimum_feedback": {
            "type": "string",
            "format": "decimal",
            "pattern": "^-?\\d{0,3}(?:\\.\\d{0,0})?$",
            "title": "Minimum feedback percentage",
            "description": "The minimum feedback percentage for users you\n        want to trade with (e.g. 100)"
          },
          "price_formula": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PriceFormula"
              }
            ],
            "readOnly": true
          },
          "price_formula_value": {
            "type": "string",
            "readOnly": true
          },
          "trading_hours_localised": {
            "type": "string",
            "readOnly": true
          },
          "trading_hours_type": {
            "type": "string",
            "readOnly": true
          },
          "trading_hours_json": {
            "type": "object",
            "additionalProperties": {},
            "readOnly": true
          },
          "current_margin_percentage": {
            "type": [
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d{0,20}(?:\\.\\d{0,10})?$",
            "title": "Margin %"
          },
          "msg_on_trade_accepted": {
            "type": [
              "string",
              "null"
            ],
            "readOnly": true
          },
          "msg_on_trade_escrowed": {
            "type": [
              "string",
              "null"
            ],
            "readOnly": true
          },
          "msg_on_trade_released": {
            "type": [
              "string",
              "null"
            ],
            "readOnly": true
          }
        },
        "required": [
          "coin_currency",
          "created_by",
          "fiat_currency",
          "msg_on_trade_accepted",
          "msg_on_trade_escrowed",
          "msg_on_trade_released",
          "payment_method",
          "price_formula",
          "price_formula_value",
          "trading_hours_json",
          "trading_hours_localised",
          "trading_hours_type",
          "trading_type"
        ]
      },
      "PaginatedBtcTxHistoryList": {
        "type": "object",
        "required": [
          "count",
          "results"
        ],
        "properties": {
          "active_page": {
            "type": "integer",
            "example": 1
          },
          "count": {
            "type": "integer",
            "example": 18
          },
          "next": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "example": null
          },
          "previous": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "example": null
          },
          "offset": {
            "type": "integer",
            "example": 0
          },
          "limit": {
            "type": "integer",
            "example": 5
          },
          "total_pages": {
            "type": "integer",
            "example": 4
          },
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BtcTxHistory"
            }
          }
        }
      },
      "PaginatedCommissionPaymentListList": {
        "type": "object",
        "required": [
          "count",
          "results"
        ],
        "properties": {
          "active_page": {
            "type": "integer",
            "example": 1
          },
          "count": {
            "type": "integer",
            "example": 18
          },
          "next": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "example": null
          },
          "previous": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "example": null
          },
          "offset": {
            "type": "integer",
            "example": 0
          },
          "limit": {
            "type": "integer",
            "example": 5
          },
          "total_pages": {
            "type": "integer",
            "example": 4
          },
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CommissionPaymentList"
            }
          }
        }
      },
      "PaginatedContractMessageListList": {
        "type": "object",
        "required": [
          "count",
          "results"
        ],
        "properties": {
          "count": {
            "type": "integer",
            "example": 18
          },
          "next": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "example": null
          },
          "previous": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "example": null
          },
          "offset": {
            "type": "integer",
            "example": 0
          },
          "limit": {
            "type": "integer",
            "example": 5
          },
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContractMessageList"
            }
          }
        }
      },
      "PaginatedCurrencyList": {
        "type": "object",
        "required": [
          "count",
          "results"
        ],
        "properties": {
          "count": {
            "type": "integer",
            "example": 123
          },
          "next": {
            "type": "string",
            "nullable": true,
            "format": "uri",
            "example": "http://api.example.org/accounts/?offset=400&limit=100"
          },
          "previous": {
            "type": "string",
            "nullable": true,
            "format": "uri",
            "example": "http://api.example.org/accounts/?offset=200&limit=100"
          },
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Currency"
            }
          }
        }
      },
      "PaginatedFeedbackListList": {
        "type": "object",
        "required": [
          "count",
          "results"
        ],
        "properties": {
          "active_page": {
            "type": "integer",
            "example": 1
          },
          "count": {
            "type": "integer",
            "example": 18
          },
          "next": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "example": null
          },
          "previous": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "example": null
          },
          "offset": {
            "type": "integer",
            "example": 0
          },
          "limit": {
            "type": "integer",
            "example": 5
          },
          "total_pages": {
            "type": "integer",
            "example": 4
          },
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FeedbackList"
            }
          }
        }
      },
      "PaginatedMinimalCurrencyList": {
        "type": "object",
        "required": [
          "count",
          "results"
        ],
        "properties": {
          "count": {
            "type": "integer",
            "example": 123
          },
          "next": {
            "type": "string",
            "nullable": true,
            "format": "uri",
            "example": "http://api.example.org/accounts/?offset=400&limit=100"
          },
          "previous": {
            "type": "string",
            "nullable": true,
            "format": "uri",
            "example": "http://api.example.org/accounts/?offset=200&limit=100"
          },
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MinimalCurrency"
            }
          }
        }
      },
      "PaginatedMinimalPaymentMethodList": {
        "type": "object",
        "required": [
          "count",
          "results"
        ],
        "properties": {
          "active_page": {
            "type": "integer",
            "example": 1
          },
          "count": {
            "type": "integer",
            "example": 18
          },
          "next": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "example": null
          },
          "previous": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "example": null
          },
          "offset": {
            "type": "integer",
            "example": 0
          },
          "limit": {
            "type": "integer",
            "example": 5
          },
          "total_pages": {
            "type": "integer",
            "example": 4
          },
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MinimalPaymentMethod"
            }
          }
        }
      },
      "PaginatedMinimalTradeTypeList": {
        "type": "object",
        "required": [
          "count",
          "results"
        ],
        "properties": {
          "active_page": {
            "type": "integer",
            "example": 1
          },
          "count": {
            "type": "integer",
            "example": 18
          },
          "next": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "example": null
          },
          "previous": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "example": null
          },
          "offset": {
            "type": "integer",
            "example": 0
          },
          "limit": {
            "type": "integer",
            "example": 5
          },
          "total_pages": {
            "type": "integer",
            "example": 4
          },
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MinimalTradeType"
            }
          }
        }
      },
      "PaginatedMyOfferList": {
        "type": "object",
        "required": [
          "count",
          "results"
        ],
        "properties": {
          "active_page": {
            "type": "integer",
            "example": 1
          },
          "count": {
            "type": "integer",
            "example": 18
          },
          "next": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "example": null
          },
          "previous": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "example": null
          },
          "offset": {
            "type": "integer",
            "example": 0
          },
          "limit": {
            "type": "integer",
            "example": 5
          },
          "total_pages": {
            "type": "integer",
            "example": 4
          },
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MyOffer"
            }
          }
        }
      },
      "PaginatedNotifList": {
        "type": "object",
        "required": [
          "count",
          "results"
        ],
        "properties": {
          "count": {
            "type": "integer",
            "example": 18
          },
          "offset": {
            "type": "integer",
            "example": 0
          },
          "limit": {
            "type": "integer",
            "example": 5
          },
          "has_unseen": {
            "type": "boolean",
            "example": true
          },
          "inbox": {
            "type": "string",
            "description": "The inbox tab these results are from.",
            "example": "all"
          },
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Notif"
            }
          }
        }
      },
      "PaginatedOfferListList": {
        "type": "object",
        "required": [
          "count",
          "results"
        ],
        "properties": {
          "active_page": {
            "type": "integer",
            "example": 1
          },
          "count": {
            "type": "integer",
            "example": 18
          },
          "next": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "example": null
          },
          "previous": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "example": null
          },
          "offset": {
            "type": "integer",
            "example": 0
          },
          "limit": {
            "type": "integer",
            "example": 5
          },
          "total_pages": {
            "type": "integer",
            "example": 4
          },
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OfferList"
            }
          }
        }
      },
      "PaginatedReferredUsersSerialierList": {
        "type": "object",
        "required": [
          "count",
          "results"
        ],
        "properties": {
          "active_page": {
            "type": "integer",
            "example": 1
          },
          "count": {
            "type": "integer",
            "example": 18
          },
          "next": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "example": null
          },
          "previous": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "example": null
          },
          "offset": {
            "type": "integer",
            "example": 0
          },
          "limit": {
            "type": "integer",
            "example": 5
          },
          "total_pages": {
            "type": "integer",
            "example": 4
          },
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ReferredUsersSerialier"
            }
          }
        }
      },
      "PaginatedSwapReadList": {
        "type": "object",
        "required": [
          "count",
          "results"
        ],
        "properties": {
          "active_page": {
            "type": "integer",
            "example": 1
          },
          "count": {
            "type": "integer",
            "example": 18
          },
          "next": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "example": null
          },
          "previous": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "example": null
          },
          "offset": {
            "type": "integer",
            "example": 0
          },
          "limit": {
            "type": "integer",
            "example": 5
          },
          "total_pages": {
            "type": "integer",
            "example": 4
          },
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SwapRead"
            }
          }
        }
      },
      "PaginatedTradeCommissionListList": {
        "type": "object",
        "required": [
          "count",
          "results"
        ],
        "properties": {
          "active_page": {
            "type": "integer",
            "example": 1
          },
          "count": {
            "type": "integer",
            "example": 18
          },
          "next": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "example": null
          },
          "previous": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "example": null
          },
          "offset": {
            "type": "integer",
            "example": 0
          },
          "limit": {
            "type": "integer",
            "example": 5
          },
          "total_pages": {
            "type": "integer",
            "example": 4
          },
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TradeCommissionList"
            }
          }
        }
      },
      "PaginatedTradeListList": {
        "type": "object",
        "required": [
          "count",
          "results"
        ],
        "properties": {
          "active_page": {
            "type": "integer",
            "example": 1
          },
          "count": {
            "type": "integer",
            "example": 18
          },
          "next": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "example": null
          },
          "previous": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "example": null
          },
          "offset": {
            "type": "integer",
            "example": 0
          },
          "limit": {
            "type": "integer",
            "example": 5
          },
          "total_pages": {
            "type": "integer",
            "example": 4
          },
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TradeList"
            }
          }
        }
      },
      "PatchedNonCustodialTradeUpdateRequest": {
        "type": "object",
        "properties": {
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/NonCustodialTradeUpdateStatusEnum"
              }
            ],
            "description": "#### The status in which you want to move the trade into.\n - `ACCEPTED` - When you want to accept a trade initiated on your offer.\n   - Only offer creator can accept a trade.\n   - When seller accepts the trade and if they have enough funds in their LocalCoinSwap Wallet,\n     transition to `CRYPTO_ESC` happens automatically.\n - `WAITING_FOR_MIN_APPROVE_CONFIRMS`\n   - When you are waiting for the minimum number of blockchain confirmations\n     for an ERC20 approval transaction.\n   - This step is required only for ERC20 token (excluding ETH)\n - `TRANSFER_APPROVED` - When you want to approve ERC20 non-custodial escrow.\n   - Only seller can perform this action.\n   - This step is required only for ERC20 token (excluding ETH)\n - `WAITING_FOR_MIN_ESCROW_CONFIRMS`\n   - When you are waiting for the minimum number of blockchain confirmations\n     for an escrow transaction.\n - `CRYPTO_ESC` - When you want to fund the Escrow.\n   - Only seller can perform this action.\n   - Requires enough funds in the selected non-custodial Wallet.\n - `FUND_PAID` - When you want to indicate that you have transferred fiat/local currency\n payment via the payment method agreed upon based on offer terms.\n   - Only buyer can perform this action.\n - `FUND_RECEIVED` - When you want to indicate that you have received fiat/local currency\n payment from the buyer.\n - `CANCELLED` - When you want to cancel a trade.\n   - If the current status of the trade allows cancellation right away, the trade will be\n     marked cancelled.\n   - Else, the trade will follow double-confirmation flow where both seller and buyer have\n     to mutually agree to cancel the trade.\n - `CANCELLATION_REJECTED` - When you want to reject the cancellation request.\n   - The user who requested cancellation can send this to withdraw their request.\n\nEach status needs its own extra fields; see the field descriptions below.\n\n\n* `ACCEPTED` - ACCEPTED\n* `WAITING_FOR_MIN_APPROVE_CONFIRMS` - WAITING_FOR_MIN_APPROVE_CONFIRMS\n* `TRANSFER_APPROVED` - TRANSFER_APPROVED\n* `WAITING_FOR_MIN_ESCROW_CONFIRMS` - WAITING_FOR_MIN_ESCROW_CONFIRMS\n* `CRYPTO_ESC` - CRYPTO_ESC\n* `FUND_PAID` - FUND_PAID\n* `FUND_RECEIVED` - FUND_RECEIVED\n* `CANCELLED` - CANCELLED\n* `CANCELLATION_REJECTED` - CANCELLATION_REJECTED"
          },
          "wallet_address": {
            "type": "string",
            "minLength": 1,
            "description": "Wallet address you want to use to accept the trade.\n        Required only at the time of accepting a non-custodial trade.",
            "maxLength": 256
          },
          "wallet_pubkey": {
            "type": "string",
            "description": "Public key hex corresponding to `wallet_address`.",
            "maxLength": 256
          },
          "wallet_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/WalletTypeEnum"
              }
            ],
            "default": "webwallet",
            "description": "Required only at the time of accepting a non-custodial trade.\n        `webwallet`, the non-custodial LocalCoinSwap Wallet, is the only type.\n\n* `webwallet` - Web wallet"
          },
          "signed_txn": {
            "type": "string",
            "minLength": 1
          },
          "trx_signed_txn": {},
          "broadcasted_txn_hash": {
            "type": "string",
            "minLength": 1,
            "description": "This is used only when you connect a hardware wallet like Metamask\n        with LocalCoinSwap. You have to broadcast the signed transaction yourself and\n        pass the broadcasted transaction hash to the API."
          },
          "signed_relay_signature": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SignedRelaySignatureRequest"
              }
            ],
            "description": "The seller's release signature `{r, s, v}` (relay\n        instruction `0x01`), required with `FUND_RECEIVED` on ETH, ERC20,\n        BNB, BEP20 and TRC20 trades. See \"Signing trades\"."
          },
          "release_signature": {
            "type": "string",
            "description": "This is **only required** to release escrow for LTC trades."
          },
          "release_psbt_base64": {
            "type": "string",
            "description": "This is **only required** to release escrow for LTC trades."
          },
          "cancel_signature": {
            "type": "string",
            "description": "This is **only required** to cancel escrow for LTC trades."
          },
          "cancel_psbt_base64": {
            "type": "string",
            "description": "This is **only required** to cancel escrow for LTC trades."
          },
          "btc_trade_secrets": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BtcNcTradeSecretRequest"
              }
            ],
            "description": "This is **only required** to accept non-custodial BTC trades.\n        When you accept as the buyer (on your buy offer), `hashed_secret_signed`\n        and `address_signed` are required too."
          },
          "seller_secret": {
            "type": "string",
            "minLength": 1,
            "description": "This is **only required** to mark non-custodial BTC trades\n        as FUND_RECEIVED by the seller."
          },
          "cancellation_secret": {
            "type": "string",
            "minLength": 1,
            "description": "This is only required to cancel BTC trades that have escrowed"
          },
          "cancellation_signature": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SignedRelaySignatureRequest"
              }
            ],
            "description": "The buyer's cancel signature `{r, s, v}` (relay\n        instruction `0x02`), required to cancel an escrowed ETH, ERC20, BNB,\n        BEP20 or TRC20 trade. See \"Signing trades\"."
          },
          "cancellation_reason": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CancellationReasonEnum"
              },
              {
                "$ref": "#/components/schemas/BlankEnum"
              },
              {
                "$ref": "#/components/schemas/NullEnum"
              }
            ]
          }
        }
      },
      "PatchedOfferUpdateRequest": {
        "type": "object",
        "properties": {
          "country_code": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CountryCodeEnum"
              }
            ],
            "description": "Country code in alpha-2 format (two characters only).\n        See the list of available choices above.\n\n* `EU` - EU\n* `AW` - AW\n* `AF` - AF\n* `AO` - AO\n* `AI` - AI\n* `AX` - AX\n* `AL` - AL\n* `AD` - AD\n* `AE` - AE\n* `AR` - AR\n* `AM` - AM\n* `AS` - AS\n* `AQ` - AQ\n* `TF` - TF\n* `AG` - AG\n* `AU` - AU\n* `AT` - AT\n* `AZ` - AZ\n* `BI` - BI\n* `BE` - BE\n* `BJ` - BJ\n* `BQ` - BQ\n* `BF` - BF\n* `BD` - BD\n* `BG` - BG\n* `BH` - BH\n* `BS` - BS\n* `BA` - BA\n* `BL` - BL\n* `BY` - BY\n* `BZ` - BZ\n* `BM` - BM\n* `BO` - BO\n* `BR` - BR\n* `BB` - BB\n* `BN` - BN\n* `BT` - BT\n* `BV` - BV\n* `BW` - BW\n* `CF` - CF\n* `CA` - CA\n* `CC` - CC\n* `CH` - CH\n* `CL` - CL\n* `CN` - CN\n* `CI` - CI\n* `CM` - CM\n* `CD` - CD\n* `CG` - CG\n* `CK` - CK\n* `CO` - CO\n* `KM` - KM\n* `CV` - CV\n* `CR` - CR\n* `CU` - CU\n* `CW` - CW\n* `CX` - CX\n* `KY` - KY\n* `CY` - CY\n* `CZ` - CZ\n* `DE` - DE\n* `DJ` - DJ\n* `DM` - DM\n* `DK` - DK\n* `DO` - DO\n* `DZ` - DZ\n* `EC` - EC\n* `EG` - EG\n* `ER` - ER\n* `EH` - EH\n* `ES` - ES\n* `EE` - EE\n* `ET` - ET\n* `FI` - FI\n* `FJ` - FJ\n* `FK` - FK\n* `FR` - FR\n* `FO` - FO\n* `FM` - FM\n* `GA` - GA\n* `GB` - GB\n* `GE` - GE\n* `GG` - GG\n* `GH` - GH\n* `GI` - GI\n* `GN` - GN\n* `GP` - GP\n* `GM` - GM\n* `GW` - GW\n* `GQ` - GQ\n* `GR` - GR\n* `GD` - GD\n* `GL` - GL\n* `GT` - GT\n* `GF` - GF\n* `GU` - GU\n* `GY` - GY\n* `HK` - HK\n* `HM` - HM\n* `HN` - HN\n* `HR` - HR\n* `HT` - HT\n* `HU` - HU\n* `ID` - ID\n* `IM` - IM\n* `IN` - IN\n* `IO` - IO\n* `IE` - IE\n* `IR` - IR\n* `IQ` - IQ\n* `IS` - IS\n* `IL` - IL\n* `IT` - IT\n* `JM` - JM\n* `JE` - JE\n* `JO` - JO\n* `JP` - JP\n* `KZ` - KZ\n* `KE` - KE\n* `KG` - KG\n* `KH` - KH\n* `KI` - KI\n* `KN` - KN\n* `KR` - KR\n* `KW` - KW\n* `LA` - LA\n* `LB` - LB\n* `LR` - LR\n* `LY` - LY\n* `LC` - LC\n* `LI` - LI\n* `LK` - LK\n* `LS` - LS\n* `LT` - LT\n* `LU` - LU\n* `LV` - LV\n* `MO` - MO\n* `MF` - MF\n* `MA` - MA\n* `MC` - MC\n* `MD` - MD\n* `MG` - MG\n* `MV` - MV\n* `MX` - MX\n* `MH` - MH\n* `MK` - MK\n* `ML` - ML\n* `MT` - MT\n* `MM` - MM\n* `ME` - ME\n* `MN` - MN\n* `MP` - MP\n* `MZ` - MZ\n* `MR` - MR\n* `MS` - MS\n* `MQ` - MQ\n* `MU` - MU\n* `MW` - MW\n* `MY` - MY\n* `YT` - YT\n* `NA` - NA\n* `NC` - NC\n* `NE` - NE\n* `NF` - NF\n* `NG` - NG\n* `NI` - NI\n* `NU` - NU\n* `NL` - NL\n* `NO` - NO\n* `NP` - NP\n* `NR` - NR\n* `NZ` - NZ\n* `OM` - OM\n* `PK` - PK\n* `PA` - PA\n* `PN` - PN\n* `PE` - PE\n* `PH` - PH\n* `PW` - PW\n* `PG` - PG\n* `PL` - PL\n* `PR` - PR\n* `KP` - KP\n* `PT` - PT\n* `PY` - PY\n* `PS` - PS\n* `PF` - PF\n* `QA` - QA\n* `RE` - RE\n* `RO` - RO\n* `RU` - RU\n* `RW` - RW\n* `SA` - SA\n* `SD` - SD\n* `SN` - SN\n* `SG` - SG\n* `GS` - GS\n* `SH` - SH\n* `SJ` - SJ\n* `SB` - SB\n* `SL` - SL\n* `SV` - SV\n* `SM` - SM\n* `SO` - SO\n* `PM` - PM\n* `RS` - RS\n* `SS` - SS\n* `ST` - ST\n* `SR` - SR\n* `SK` - SK\n* `SI` - SI\n* `SE` - SE\n* `SZ` - SZ\n* `SX` - SX\n* `SC` - SC\n* `SY` - SY\n* `TC` - TC\n* `TD` - TD\n* `TG` - TG\n* `TH` - TH\n* `TJ` - TJ\n* `TK` - TK\n* `TM` - TM\n* `TL` - TL\n* `TO` - TO\n* `TT` - TT\n* `TN` - TN\n* `TR` - TR\n* `TV` - TV\n* `TW` - TW\n* `TZ` - TZ\n* `UG` - UG\n* `UA` - UA\n* `UM` - UM\n* `UY` - UY\n* `US` - US\n* `UZ` - UZ\n* `VA` - VA\n* `VC` - VC\n* `VE` - VE\n* `VG` - VG\n* `VI` - VI\n* `VN` - VN\n* `VU` - VU\n* `WF` - WF\n* `WS` - WS\n* `YE` - YE\n* `ZA` - ZA\n* `ZM` - ZM\n* `ZW` - ZW"
          },
          "location_name": {
            "type": "string",
            "default": "",
            "description": "\n        City or place name, consider using a discoverable location name.\n        Eg: `Mountain View, California` or `Sydney`.\n\n\n        Please make sure this name is within the `country_code` chosen above.\n        Behind the scenes we perform a reverse lookup under\n        that country code to find geo-coordinates which further help in search APIs.\n        ",
            "maxLength": 64
          },
          "min_trade_size": {
            "type": "integer",
            "minimum": 1,
            "default": 1,
            "description": "Expressed in terms of the fiat currency. Should be >= 1."
          },
          "max_trade_size": {
            "type": "integer",
            "minimum": 1,
            "description": "Expressed in terms of the fiat currency. Should be >= `min_trade_size`."
          },
          "pricing_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PricingTypeEnum"
              }
            ],
            "writeOnly": true,
            "default": "MARGIN"
          },
          "pricing_market": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PricingMarketEnum"
              }
            ],
            "writeOnly": true,
            "default": "cmc"
          },
          "pricing_expression": {
            "type": "string",
            "writeOnly": true,
            "minLength": 1,
            "default": "2",
            "maxLength": 128
          },
          "trading_conditions": {
            "type": "string",
            "default": "",
            "description": "The conditions under which you trade with others."
          },
          "trading_condition_keys": {
            "description": "Structured trading conditions as a list of selected option keys."
          },
          "headline": {
            "type": [
              "string",
              "null"
            ],
            "default": "",
            "description": "Headline for the offer, highlighted on the listings page.",
            "maxLength": 60
          },
          "trading_hours_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TradingHoursTypeEnum"
              }
            ],
            "writeOnly": true,
            "default": "daily",
            "description": "Choose whether you want to specify common availability hours\n        for every day or specify individual hours for each day\n\n* `daily` - daily\n* `specific` - specific"
          },
          "trading_hours_json": {
            "writeOnly": true,
            "description": "If `trading_hours_type` is `daily` then the format should be: \n\n\n```\n{\n    \"anyday\": {\n        \"from\": \"08:30\",\n        \"to\": \"21:00\"\n    }\n}```\n\n\n\n\nElse the format should be: \n\n\n```\n{\n    \"monday\": {\n        \"from\": \"06:30\",\n        \"to\": \"21:00\"\n    },\n    \"tuesday\": {\n        \"from\": \"06:30\",\n        \"to\": \"21:00\"\n    },\n    \"wednesday\": {\n        \"from\": \"06:30\",\n        \"to\": \"21:00\"\n    },\n    \"thursday\": {\n        \"from\": \"09:30\",\n        \"to\": \"21:00\"\n    },\n    \"friday\": {\n        \"from\": \"00:30\",\n        \"to\": \"21:00\"\n    },\n    \"saturday\": {\n        \"from\": \"18:30\",\n        \"to\": \"19:00\"\n    },\n    \"sunday\": {\n        \"from\": \"08:30\",\n        \"to\": \"21:00\"\n    }\n}```\n"
          },
          "hidden": {
            "type": "boolean",
            "default": false,
            "title": "Hidden offer",
            "description": "If true, offer is hidden and only accessible directly through the URL"
          },
          "enforced_sizes": {
            "type": [
              "string",
              "null"
            ],
            "default": "",
            "title": "Trade sizes",
            "description": "These are the accepted sizes, comma separated. Eg: if you are exchanging\n        for gift cards of values $50 and $100, enter `50,100`",
            "maxLength": 500
          },
          "msg_on_trade_accepted": {
            "type": "string",
            "writeOnly": true,
            "default": "",
            "maxLength": 500
          },
          "msg_on_trade_escrowed": {
            "type": "string",
            "writeOnly": true,
            "default": "",
            "maxLength": 500
          },
          "msg_on_trade_released": {
            "type": "string",
            "writeOnly": true,
            "default": "",
            "maxLength": 500
          },
          "blocked_countries": {
            "type": [
              "string",
              "null"
            ],
            "default": "",
            "title": "Blocked country codes",
            "description": "Comma separated list of iso2 country codes like NG,KE",
            "maxLength": 510
          },
          "automatic_cancel_time": {
            "type": "integer",
            "maximum": 2000,
            "minimum": 10,
            "default": 240,
            "description": "Time (in minutes) until the trade will automatically\n        cancel/expire if you don't respond"
          },
          "sms_required": {
            "type": "boolean",
            "default": false,
            "title": "Phone verification required",
            "description": "Require potential traders to have verified their phone number."
          },
          "minimum_feedback": {
            "type": "integer",
            "maximum": 100,
            "minimum": 0,
            "description": "Minimum feedback percentage required for traders to\n        initiate a trade on this offer."
          },
          "is_active": {
            "type": "boolean"
          }
        }
      },
      "PatchedSwapUpdateRequest": {
        "type": "object",
        "properties": {
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SwapStatusEnum"
              }
            ],
            "default": "FUNDING",
            "description": "#### The status in which you want to move the swap into.\n        Currently users only need to move their swap to:\n - `FUNDING` - When you have sent the funds to be swapped to the pay-in address.\n   - Only can be called when swap is in `CREATED` state.\n\n\n* `NEW` - Swap created\n* `WAITING` - Waiting on user to fund\n* `FUNDING` - User funds sent\n* `CONFIRMING` - Confirming transaction\n* `EXCHANGING` - Exchanging on market\n* `SENDING` - Sending swap exchange to user\n* `FINISHED` - Swap finished\n* `FAILED` - Swap failed\n* `REFUNDED` - Swap refunded\n* `VERIFYING` - Swap verifying\n* `EXPIRED` - Swap expired"
          },
          "tx_json": {
            "description": "Optional. `{\"payin_transaction_hash\": \"<hash of your deposit>\"}`"
          }
        }
      },
      "PriceFormula": {
        "type": "object",
        "properties": {
          "display_formula": {
            "type": "string",
            "maxLength": 128
          },
          "prefix_formula": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 1024
          },
          "pricing_type": {
            "description": "Pricing type for price formula\n\n* `MARGIN` - Margin (Basic Price)\n* `ADVANCED` - Advanced Pricing formula\n* `FIXED` - Fixed price",
            "oneOf": [
              {
                "$ref": "#/components/schemas/PricingTypeEnum"
              },
              {
                "$ref": "#/components/schemas/BlankEnum"
              },
              {
                "$ref": "#/components/schemas/NullEnum"
              }
            ]
          },
          "market": {
            "description": "Pricing Market chosen for Margin price type\n\n* `cmc` - cmc\n* `bitfinex` - bitfinex\n* `kraken` - kraken\n* `bitstamp` - bitstamp\n* `binance` - binance\n* `bittrex` - bittrex\n* `coinbase` - coinbase\n* `poloniex` - poloniex\n* `cexio` - cexio\n* `coinone` - coinone\n* `independent_reserve` - independent_reserve\n* `kucoin` - kucoin",
            "oneOf": [
              {
                "$ref": "#/components/schemas/PricingMarketEnum"
              },
              {
                "$ref": "#/components/schemas/BlankEnum"
              },
              {
                "$ref": "#/components/schemas/NullEnum"
              }
            ]
          }
        },
        "required": [
          "display_formula"
        ]
      },
      "PricingMarketEnum": {
        "enum": [
          "cmc",
          "bitfinex",
          "kraken",
          "bitstamp",
          "binance",
          "bittrex",
          "coinbase",
          "poloniex",
          "cexio",
          "coinone",
          "independent_reserve",
          "kucoin"
        ],
        "type": "string",
        "description": "* `cmc` - cmc\n* `bitfinex` - bitfinex\n* `kraken` - kraken\n* `bitstamp` - bitstamp\n* `binance` - binance\n* `bittrex` - bittrex\n* `coinbase` - coinbase\n* `poloniex` - poloniex\n* `cexio` - cexio\n* `coinone` - coinone\n* `independent_reserve` - independent_reserve\n* `kucoin` - kucoin"
      },
      "PricingTypeEnum": {
        "enum": [
          "MARGIN",
          "ADVANCED",
          "FIXED"
        ],
        "type": "string",
        "description": "* `MARGIN` - Margin (Basic Price)\n* `ADVANCED` - Advanced Pricing formula\n* `FIXED` - Fixed price"
      },
      "PrimaryLanguageEnum": {
        "enum": [
          "en",
          "es",
          "ru",
          "ja",
          "hi",
          "ko",
          "ms",
          "pt",
          "zh",
          "fr",
          "de",
          "vi",
          "th",
          "id"
        ],
        "type": "string",
        "description": "* `en` - en\n* `es` - es\n* `ru` - ru\n* `ja` - ja\n* `hi` - hi\n* `ko` - ko\n* `ms` - ms\n* `pt` - pt\n* `zh` - zh\n* `fr` - fr\n* `de` - de\n* `vi` - vi\n* `th` - th\n* `id` - id"
      },
      "ProfileCryptoDataHistory": {
        "type": "object",
        "description": "Archived ProfileCryptoData row (latest per user on the legacy NC wallet API).",
        "properties": {
          "id": {
            "type": "integer",
            "readOnly": true
          },
          "created": {
            "type": "string",
            "format": "date-time",
            "readOnly": true
          },
          "modified": {
            "type": "string",
            "format": "date-time",
            "readOnly": true
          },
          "salt": {
            "type": "string",
            "maxLength": 32
          },
          "iterations": {
            "type": "integer",
            "maximum": 2147483647,
            "minimum": 0
          },
          "initialization_vector": {
            "type": "string",
            "maxLength": 32
          },
          "encrypted_account_key": {
            "type": "string",
            "maxLength": 96
          },
          "public_identity_key": {
            "type": "string",
            "maxLength": 128
          },
          "encrypted_mnemonic": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 512
          },
          "encrypted_mnemonic_256": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 512
          },
          "encrypted_mnemonic_iv": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 32
          }
        },
        "required": [
          "created",
          "encrypted_account_key",
          "id",
          "initialization_vector",
          "iterations",
          "modified",
          "public_identity_key",
          "salt"
        ]
      },
      "ProfileSlug": {
        "type": "object",
        "properties": {
          "username": {
            "type": "string",
            "description": "Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.",
            "pattern": "^[\\w.@+-]+$",
            "maxLength": 150
          }
        },
        "required": [
          "username"
        ]
      },
      "ProviderEnum": {
        "enum": [
          "CHANGENOW"
        ],
        "type": "string",
        "description": "* `CHANGENOW` - ChangeNOW"
      },
      "PublicProfile": {
        "type": "object",
        "description": "Public profile of an offer's creator; anyone can read it.",
        "properties": {
          "username": {
            "type": "string",
            "description": "Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.",
            "pattern": "^[\\w.@+-]+$",
            "maxLength": 150
          },
          "activity_status": {
            "type": "string",
            "readOnly": true
          },
          "activity_tooltip": {
            "type": [
              "string",
              "null"
            ],
            "readOnly": true
          },
          "is_email_verified": {
            "type": "boolean",
            "readOnly": true
          },
          "is_phone_verified": {
            "type": "boolean",
            "readOnly": true
          },
          "phone_country_code": {
            "description": "Country code in alpha-2 format (two characters only).\n\n* `EU` - EU\n* `AW` - AW\n* `AF` - AF\n* `AO` - AO\n* `AI` - AI\n* `AX` - AX\n* `AL` - AL\n* `AD` - AD\n* `AE` - AE\n* `AR` - AR\n* `AM` - AM\n* `AS` - AS\n* `AQ` - AQ\n* `TF` - TF\n* `AG` - AG\n* `AU` - AU\n* `AT` - AT\n* `AZ` - AZ\n* `BI` - BI\n* `BE` - BE\n* `BJ` - BJ\n* `BQ` - BQ\n* `BF` - BF\n* `BD` - BD\n* `BG` - BG\n* `BH` - BH\n* `BS` - BS\n* `BA` - BA\n* `BL` - BL\n* `BY` - BY\n* `BZ` - BZ\n* `BM` - BM\n* `BO` - BO\n* `BR` - BR\n* `BB` - BB\n* `BN` - BN\n* `BT` - BT\n* `BV` - BV\n* `BW` - BW\n* `CF` - CF\n* `CA` - CA\n* `CC` - CC\n* `CH` - CH\n* `CL` - CL\n* `CN` - CN\n* `CI` - CI\n* `CM` - CM\n* `CD` - CD\n* `CG` - CG\n* `CK` - CK\n* `CO` - CO\n* `KM` - KM\n* `CV` - CV\n* `CR` - CR\n* `CU` - CU\n* `CW` - CW\n* `CX` - CX\n* `KY` - KY\n* `CY` - CY\n* `CZ` - CZ\n* `DE` - DE\n* `DJ` - DJ\n* `DM` - DM\n* `DK` - DK\n* `DO` - DO\n* `DZ` - DZ\n* `EC` - EC\n* `EG` - EG\n* `ER` - ER\n* `EH` - EH\n* `ES` - ES\n* `EE` - EE\n* `ET` - ET\n* `FI` - FI\n* `FJ` - FJ\n* `FK` - FK\n* `FR` - FR\n* `FO` - FO\n* `FM` - FM\n* `GA` - GA\n* `GB` - GB\n* `GE` - GE\n* `GG` - GG\n* `GH` - GH\n* `GI` - GI\n* `GN` - GN\n* `GP` - GP\n* `GM` - GM\n* `GW` - GW\n* `GQ` - GQ\n* `GR` - GR\n* `GD` - GD\n* `GL` - GL\n* `GT` - GT\n* `GF` - GF\n* `GU` - GU\n* `GY` - GY\n* `HK` - HK\n* `HM` - HM\n* `HN` - HN\n* `HR` - HR\n* `HT` - HT\n* `HU` - HU\n* `ID` - ID\n* `IM` - IM\n* `IN` - IN\n* `IO` - IO\n* `IE` - IE\n* `IR` - IR\n* `IQ` - IQ\n* `IS` - IS\n* `IL` - IL\n* `IT` - IT\n* `JM` - JM\n* `JE` - JE\n* `JO` - JO\n* `JP` - JP\n* `KZ` - KZ\n* `KE` - KE\n* `KG` - KG\n* `KH` - KH\n* `KI` - KI\n* `KN` - KN\n* `KR` - KR\n* `KW` - KW\n* `LA` - LA\n* `LB` - LB\n* `LR` - LR\n* `LY` - LY\n* `LC` - LC\n* `LI` - LI\n* `LK` - LK\n* `LS` - LS\n* `LT` - LT\n* `LU` - LU\n* `LV` - LV\n* `MO` - MO\n* `MF` - MF\n* `MA` - MA\n* `MC` - MC\n* `MD` - MD\n* `MG` - MG\n* `MV` - MV\n* `MX` - MX\n* `MH` - MH\n* `MK` - MK\n* `ML` - ML\n* `MT` - MT\n* `MM` - MM\n* `ME` - ME\n* `MN` - MN\n* `MP` - MP\n* `MZ` - MZ\n* `MR` - MR\n* `MS` - MS\n* `MQ` - MQ\n* `MU` - MU\n* `MW` - MW\n* `MY` - MY\n* `YT` - YT\n* `NA` - NA\n* `NC` - NC\n* `NE` - NE\n* `NF` - NF\n* `NG` - NG\n* `NI` - NI\n* `NU` - NU\n* `NL` - NL\n* `NO` - NO\n* `NP` - NP\n* `NR` - NR\n* `NZ` - NZ\n* `OM` - OM\n* `PK` - PK\n* `PA` - PA\n* `PN` - PN\n* `PE` - PE\n* `PH` - PH\n* `PW` - PW\n* `PG` - PG\n* `PL` - PL\n* `PR` - PR\n* `KP` - KP\n* `PT` - PT\n* `PY` - PY\n* `PS` - PS\n* `PF` - PF\n* `QA` - QA\n* `RE` - RE\n* `RO` - RO\n* `RU` - RU\n* `RW` - RW\n* `SA` - SA\n* `SD` - SD\n* `SN` - SN\n* `SG` - SG\n* `GS` - GS\n* `SH` - SH\n* `SJ` - SJ\n* `SB` - SB\n* `SL` - SL\n* `SV` - SV\n* `SM` - SM\n* `SO` - SO\n* `PM` - PM\n* `RS` - RS\n* `SS` - SS\n* `ST` - ST\n* `SR` - SR\n* `SK` - SK\n* `SI` - SI\n* `SE` - SE\n* `SZ` - SZ\n* `SX` - SX\n* `SC` - SC\n* `SY` - SY\n* `TC` - TC\n* `TD` - TD\n* `TG` - TG\n* `TH` - TH\n* `TJ` - TJ\n* `TK` - TK\n* `TM` - TM\n* `TL` - TL\n* `TO` - TO\n* `TT` - TT\n* `TN` - TN\n* `TR` - TR\n* `TV` - TV\n* `TW` - TW\n* `TZ` - TZ\n* `UG` - UG\n* `UA` - UA\n* `UM` - UM\n* `UY` - UY\n* `US` - US\n* `UZ` - UZ\n* `VA` - VA\n* `VC` - VC\n* `VE` - VE\n* `VG` - VG\n* `VI` - VI\n* `VN` - VN\n* `VU` - VU\n* `WF` - WF\n* `WS` - WS\n* `YE` - YE\n* `ZA` - ZA\n* `ZM` - ZM\n* `ZW` - ZW",
            "oneOf": [
              {
                "$ref": "#/components/schemas/CountryCodeEnum"
              },
              {
                "$ref": "#/components/schemas/BlankEnum"
              },
              {
                "$ref": "#/components/schemas/NullEnum"
              }
            ]
          },
          "avg_response_time": {
            "type": [
              "integer",
              "null"
            ],
            "maximum": 2147483647,
            "minimum": 0,
            "title": "Average response time",
            "description": "Average response time of user to reject or accept the contract"
          },
          "completed_trades": {
            "type": "integer",
            "maximum": 2147483647,
            "minimum": 0,
            "title": "Completed trades on our platform"
          },
          "platform_volume": {
            "type": [
              "integer",
              "null"
            ],
            "readOnly": true
          },
          "feedback_score": {
            "type": [
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d{0,3}(?:\\.\\d{0,5})?$",
            "title": "Avg rating out of 5"
          },
          "last_seen": {
            "type": [
              "integer",
              "null"
            ],
            "maximum": 2147483647,
            "minimum": 0
          },
          "is_legacy": {
            "type": "boolean",
            "title": "Pro Trader Badge"
          },
          "bio": {
            "type": "string",
            "description": "What you are about, what you love and how people should contact you"
          },
          "user_uuid": {
            "type": "string",
            "format": "uuid"
          },
          "on_holiday": {
            "type": "boolean"
          },
          "hide_from_google": {
            "type": "boolean"
          },
          "date_joined": {
            "type": "string",
            "format": "date-time"
          },
          "profile_image": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri"
          },
          "is_kyc_verified": {
            "type": "boolean",
            "readOnly": true
          },
          "xp_level": {
            "allOf": [
              {
                "$ref": "#/components/schemas/XpLevelEnum"
              }
            ],
            "title": "Experience level",
            "description": "Current logic for this calculation is:\n\n    if xp < 10:\n        return \"NEWBIE\"\n    if xp >= 10 and xp < 25:\n        return \"APPRENTICE\"\n    if xp >= 25 and xp < 100:\n        return \"SPECIALIST\"\n    if xp >= 100 and xp < 500:\n        return \"EXPERT\"\n    if xp >= 500 and xp < 1000:\n        return \"VETERAN\"\n    if xp >= 1000 and xp < 2500:\n        return \"MASTER\"\n    if xp >= 2500 and xp < 5000:\n        return \"GRANDMASTER\"\n    if xp >= 5000 and xp < 10000:\n        return \"CHAMPION\"\n    if xp >= 10000:\n        return \"LEGENDARY\"\n\n\n\n* `NEWBIE` - Newbie\n* `APPRENTICE` - Apprentice\n* `SPECIALIST` - Specialist\n* `EXPERT` - Expert\n* `VETERAN` - Veteran\n* `MASTER` - Master\n* `GRANDMASTER` - Grand Master\n* `CHAMPION` - Champion\n* `LEGENDARY` - Legendary"
          }
        },
        "required": [
          "activity_status",
          "activity_tooltip",
          "is_email_verified",
          "is_kyc_verified",
          "is_phone_verified",
          "platform_volume",
          "username"
        ]
      },
      "PublicUserDetails": {
        "type": "object",
        "properties": {
          "username": {
            "type": "string",
            "description": "Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.",
            "pattern": "^[\\w.@+-]+$",
            "maxLength": 150
          },
          "timezone": {
            "type": "string"
          },
          "local_currency_symbol": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 16
          },
          "bio": {
            "type": "string",
            "description": "What you are about, what you love and how people should contact you"
          },
          "is_staff": {
            "type": "boolean",
            "title": "Staff status",
            "description": "Designates whether the user can log into this admin site."
          },
          "is_email_verified": {
            "type": "boolean",
            "readOnly": true
          },
          "last_seen": {
            "type": [
              "integer",
              "null"
            ],
            "maximum": 2147483647,
            "minimum": 0
          },
          "cached_last_seen": {
            "type": [
              "integer",
              "null"
            ],
            "readOnly": true
          },
          "profile_image": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri"
          },
          "activity_status": {
            "type": "string",
            "readOnly": true
          },
          "activity_tooltip": {
            "type": [
              "string",
              "null"
            ],
            "readOnly": true
          },
          "feedback_score": {
            "type": [
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d{0,3}(?:\\.\\d{0,5})?$",
            "title": "Avg rating out of 5"
          },
          "completed_trades": {
            "type": "integer",
            "maximum": 2147483647,
            "minimum": 0,
            "title": "Completed trades on our platform"
          },
          "trades_30d": {
            "type": "integer",
            "maximum": 2147483647,
            "minimum": 0
          },
          "platform_volume": {
            "type": [
              "integer",
              "null"
            ],
            "readOnly": true
          },
          "platform_volume_30d": {
            "type": [
              "integer",
              "null"
            ],
            "readOnly": true
          },
          "avg_response_time": {
            "type": [
              "integer",
              "null"
            ],
            "maximum": 2147483647,
            "minimum": 0,
            "title": "Average response time",
            "description": "Average response time of user to reject or accept the contract"
          },
          "user_uuid": {
            "type": "string",
            "format": "uuid"
          },
          "date_joined": {
            "type": "string",
            "format": "date-time"
          },
          "is_phone_verified": {
            "type": "boolean",
            "readOnly": true
          },
          "is_legacy": {
            "type": "boolean",
            "title": "Pro Trader Badge"
          },
          "primary_language": {
            "$ref": "#/components/schemas/PrimaryLanguageEnum"
          },
          "lang_list": {
            "type": "string",
            "title": "Known languages (comma separated string)",
            "maxLength": 512
          },
          "times_blocked": {
            "type": "integer",
            "maximum": 2147483647,
            "minimum": 0
          },
          "times_followed": {
            "type": "integer",
            "maximum": 2147483647,
            "minimum": 0
          },
          "imported_total_trades": {
            "type": [
              "integer",
              "null"
            ],
            "maximum": 2147483647,
            "minimum": 0,
            "title": "Imported trades"
          },
          "imported_volume": {
            "type": [
              "integer",
              "null"
            ],
            "readOnly": true
          },
          "on_holiday": {
            "type": "boolean"
          },
          "non_custodial": {
            "type": "boolean",
            "title": "Is the user a non-custodial user"
          },
          "xp_level": {
            "allOf": [
              {
                "$ref": "#/components/schemas/XpLevelEnum"
              }
            ],
            "title": "Experience level",
            "description": "Current logic for this calculation is:\n\n    if xp < 10:\n        return \"NEWBIE\"\n    if xp >= 10 and xp < 25:\n        return \"APPRENTICE\"\n    if xp >= 25 and xp < 100:\n        return \"SPECIALIST\"\n    if xp >= 100 and xp < 500:\n        return \"EXPERT\"\n    if xp >= 500 and xp < 1000:\n        return \"VETERAN\"\n    if xp >= 1000 and xp < 2500:\n        return \"MASTER\"\n    if xp >= 2500 and xp < 5000:\n        return \"GRANDMASTER\"\n    if xp >= 5000 and xp < 10000:\n        return \"CHAMPION\"\n    if xp >= 10000:\n        return \"LEGENDARY\"\n\n\n\n* `NEWBIE` - Newbie\n* `APPRENTICE` - Apprentice\n* `SPECIALIST` - Specialist\n* `EXPERT` - Expert\n* `VETERAN` - Veteran\n* `MASTER` - Master\n* `GRANDMASTER` - Grand Master\n* `CHAMPION` - Champion\n* `LEGENDARY` - Legendary"
          },
          "xp": {
            "type": "integer",
            "maximum": 2147483647,
            "minimum": 0,
            "title": "Experience points"
          },
          "stats": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {},
            "readOnly": true
          }
        },
        "required": [
          "activity_status",
          "activity_tooltip",
          "cached_last_seen",
          "imported_volume",
          "is_email_verified",
          "is_phone_verified",
          "platform_volume",
          "platform_volume_30d",
          "stats",
          "timezone",
          "username"
        ]
      },
      "PublishedTransaction": {
        "type": "object",
        "properties": {
          "error": {
            "type": "boolean"
          },
          "tx": {
            "type": "string",
            "description": "Transaction hash."
          }
        },
        "required": [
          "error",
          "tx"
        ]
      },
      "RatingEnum": {
        "enum": [
          "1",
          "2",
          "3",
          "4",
          "5"
        ],
        "type": "string",
        "description": "* `1` - 1\n* `2` - 2\n* `3` - 3\n* `4` - 4\n* `5` - 5"
      },
      "ReferralCommission": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "readOnly": true
          },
          "user": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReferralOwner"
              }
            ],
            "readOnly": true
          },
          "total_amount": {
            "type": "string",
            "format": "decimal",
            "pattern": "^-?\\d{0,14}(?:\\.\\d{0,18})?$",
            "readOnly": true,
            "title": "Total earnings"
          },
          "pending_amount": {
            "type": "string",
            "format": "decimal",
            "pattern": "^-?\\d{0,14}(?:\\.\\d{0,18})?$",
            "readOnly": true,
            "title": "Balance"
          },
          "paid_amount": {
            "type": "string",
            "format": "decimal",
            "pattern": "^-?\\d{0,14}(?:\\.\\d{0,18})?$",
            "readOnly": true,
            "title": "Paid"
          },
          "opt_in_next_payout": {
            "type": "boolean",
            "title": "Opt in?"
          },
          "btc_payout_address": {
            "type": [
              "string",
              "null"
            ],
            "title": "Payout address",
            "maxLength": 512
          },
          "show_on_leaderboard": {
            "type": "boolean",
            "title": "Show on referrer leaderboard",
            "description": "User opt-in. Hidden from the public referrer leaderboard when off."
          },
          "label": {
            "readOnly": true,
            "title": "Referrer label",
            "description": "Admin-assigned program label shown on the leaderboard.\n\n* `affiliate` - Affiliate\n* `advocate` - Advocate\n* `ambassador` - Ambassador\n* `local_legend` - Local Legend",
            "oneOf": [
              {
                "$ref": "#/components/schemas/LabelEnum"
              },
              {
                "$ref": "#/components/schemas/NullEnum"
              }
            ]
          },
          "fiat_values": {
            "type": "object",
            "additionalProperties": {},
            "readOnly": true
          },
          "total_referred_users": {
            "type": "integer",
            "readOnly": true
          },
          "total_referred_trades": {
            "type": "integer",
            "readOnly": true
          }
        },
        "required": [
          "fiat_values",
          "id",
          "label",
          "paid_amount",
          "pending_amount",
          "total_amount",
          "total_referred_trades",
          "total_referred_users",
          "user"
        ]
      },
      "ReferralOwner": {
        "type": "object",
        "description": "What the referral pages need about you.",
        "properties": {
          "username": {
            "type": "string",
            "readOnly": true,
            "description": "Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only."
          },
          "user_uuid": {
            "type": "string",
            "format": "uuid",
            "readOnly": true
          },
          "referral_code": {
            "type": [
              "string",
              "null"
            ],
            "readOnly": true,
            "title": "Unique referral code"
          },
          "local_currency_symbol": {
            "type": [
              "string",
              "null"
            ],
            "readOnly": true
          },
          "hide_from_google": {
            "type": "boolean",
            "readOnly": true
          }
        },
        "required": [
          "hide_from_google",
          "local_currency_symbol",
          "referral_code",
          "user_uuid",
          "username"
        ]
      },
      "ReferredUsersSerialier": {
        "type": "object",
        "properties": {
          "completed_trades": {
            "type": "integer",
            "readOnly": true,
            "title": "Completed trades on our platform"
          },
          "country_code": {
            "readOnly": true,
            "description": "Country code in alpha-2 format (two characters only).\n        See the list of available choices above.\n\n* `EU` - EU\n* `AW` - AW\n* `AF` - AF\n* `AO` - AO\n* `AI` - AI\n* `AX` - AX\n* `AL` - AL\n* `AD` - AD\n* `AE` - AE\n* `AR` - AR\n* `AM` - AM\n* `AS` - AS\n* `AQ` - AQ\n* `TF` - TF\n* `AG` - AG\n* `AU` - AU\n* `AT` - AT\n* `AZ` - AZ\n* `BI` - BI\n* `BE` - BE\n* `BJ` - BJ\n* `BQ` - BQ\n* `BF` - BF\n* `BD` - BD\n* `BG` - BG\n* `BH` - BH\n* `BS` - BS\n* `BA` - BA\n* `BL` - BL\n* `BY` - BY\n* `BZ` - BZ\n* `BM` - BM\n* `BO` - BO\n* `BR` - BR\n* `BB` - BB\n* `BN` - BN\n* `BT` - BT\n* `BV` - BV\n* `BW` - BW\n* `CF` - CF\n* `CA` - CA\n* `CC` - CC\n* `CH` - CH\n* `CL` - CL\n* `CN` - CN\n* `CI` - CI\n* `CM` - CM\n* `CD` - CD\n* `CG` - CG\n* `CK` - CK\n* `CO` - CO\n* `KM` - KM\n* `CV` - CV\n* `CR` - CR\n* `CU` - CU\n* `CW` - CW\n* `CX` - CX\n* `KY` - KY\n* `CY` - CY\n* `CZ` - CZ\n* `DE` - DE\n* `DJ` - DJ\n* `DM` - DM\n* `DK` - DK\n* `DO` - DO\n* `DZ` - DZ\n* `EC` - EC\n* `EG` - EG\n* `ER` - ER\n* `EH` - EH\n* `ES` - ES\n* `EE` - EE\n* `ET` - ET\n* `FI` - FI\n* `FJ` - FJ\n* `FK` - FK\n* `FR` - FR\n* `FO` - FO\n* `FM` - FM\n* `GA` - GA\n* `GB` - GB\n* `GE` - GE\n* `GG` - GG\n* `GH` - GH\n* `GI` - GI\n* `GN` - GN\n* `GP` - GP\n* `GM` - GM\n* `GW` - GW\n* `GQ` - GQ\n* `GR` - GR\n* `GD` - GD\n* `GL` - GL\n* `GT` - GT\n* `GF` - GF\n* `GU` - GU\n* `GY` - GY\n* `HK` - HK\n* `HM` - HM\n* `HN` - HN\n* `HR` - HR\n* `HT` - HT\n* `HU` - HU\n* `ID` - ID\n* `IM` - IM\n* `IN` - IN\n* `IO` - IO\n* `IE` - IE\n* `IR` - IR\n* `IQ` - IQ\n* `IS` - IS\n* `IL` - IL\n* `IT` - IT\n* `JM` - JM\n* `JE` - JE\n* `JO` - JO\n* `JP` - JP\n* `KZ` - KZ\n* `KE` - KE\n* `KG` - KG\n* `KH` - KH\n* `KI` - KI\n* `KN` - KN\n* `KR` - KR\n* `KW` - KW\n* `LA` - LA\n* `LB` - LB\n* `LR` - LR\n* `LY` - LY\n* `LC` - LC\n* `LI` - LI\n* `LK` - LK\n* `LS` - LS\n* `LT` - LT\n* `LU` - LU\n* `LV` - LV\n* `MO` - MO\n* `MF` - MF\n* `MA` - MA\n* `MC` - MC\n* `MD` - MD\n* `MG` - MG\n* `MV` - MV\n* `MX` - MX\n* `MH` - MH\n* `MK` - MK\n* `ML` - ML\n* `MT` - MT\n* `MM` - MM\n* `ME` - ME\n* `MN` - MN\n* `MP` - MP\n* `MZ` - MZ\n* `MR` - MR\n* `MS` - MS\n* `MQ` - MQ\n* `MU` - MU\n* `MW` - MW\n* `MY` - MY\n* `YT` - YT\n* `NA` - NA\n* `NC` - NC\n* `NE` - NE\n* `NF` - NF\n* `NG` - NG\n* `NI` - NI\n* `NU` - NU\n* `NL` - NL\n* `NO` - NO\n* `NP` - NP\n* `NR` - NR\n* `NZ` - NZ\n* `OM` - OM\n* `PK` - PK\n* `PA` - PA\n* `PN` - PN\n* `PE` - PE\n* `PH` - PH\n* `PW` - PW\n* `PG` - PG\n* `PL` - PL\n* `PR` - PR\n* `KP` - KP\n* `PT` - PT\n* `PY` - PY\n* `PS` - PS\n* `PF` - PF\n* `QA` - QA\n* `RE` - RE\n* `RO` - RO\n* `RU` - RU\n* `RW` - RW\n* `SA` - SA\n* `SD` - SD\n* `SN` - SN\n* `SG` - SG\n* `GS` - GS\n* `SH` - SH\n* `SJ` - SJ\n* `SB` - SB\n* `SL` - SL\n* `SV` - SV\n* `SM` - SM\n* `SO` - SO\n* `PM` - PM\n* `RS` - RS\n* `SS` - SS\n* `ST` - ST\n* `SR` - SR\n* `SK` - SK\n* `SI` - SI\n* `SE` - SE\n* `SZ` - SZ\n* `SX` - SX\n* `SC` - SC\n* `SY` - SY\n* `TC` - TC\n* `TD` - TD\n* `TG` - TG\n* `TH` - TH\n* `TJ` - TJ\n* `TK` - TK\n* `TM` - TM\n* `TL` - TL\n* `TO` - TO\n* `TT` - TT\n* `TN` - TN\n* `TR` - TR\n* `TV` - TV\n* `TW` - TW\n* `TZ` - TZ\n* `UG` - UG\n* `UA` - UA\n* `UM` - UM\n* `UY` - UY\n* `US` - US\n* `UZ` - UZ\n* `VA` - VA\n* `VC` - VC\n* `VE` - VE\n* `VG` - VG\n* `VI` - VI\n* `VN` - VN\n* `VU` - VU\n* `WF` - WF\n* `WS` - WS\n* `YE` - YE\n* `ZA` - ZA\n* `ZM` - ZM\n* `ZW` - ZW",
            "oneOf": [
              {
                "$ref": "#/components/schemas/CountryCodeEnum"
              },
              {
                "$ref": "#/components/schemas/NullEnum"
              }
            ]
          },
          "date_joined": {
            "type": "string",
            "format": "date-time",
            "readOnly": true
          },
          "username": {
            "type": "string",
            "readOnly": true,
            "description": "Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only."
          },
          "user_uuid": {
            "type": "string",
            "format": "uuid",
            "readOnly": true
          },
          "earnings": {
            "type": "string",
            "readOnly": true,
            "description": "BTC earned from this user's trades, as a string."
          }
        },
        "required": [
          "completed_trades",
          "country_code",
          "date_joined",
          "earnings",
          "user_uuid",
          "username"
        ]
      },
      "ReferrerTrade": {
        "type": "object",
        "description": "Serializer for trade to be viewed by referrers.\n\nThis is a restricted view for referrers, they only need a few fields to see.",
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "time_created": {
            "type": [
              "integer",
              "null"
            ],
            "maximum": 2147483647,
            "minimum": 0,
            "title": "Created time"
          },
          "coin_currency": {
            "$ref": "#/components/schemas/MinimalCurrency"
          },
          "fiat_currency": {
            "$ref": "#/components/schemas/MinimalCurrency"
          }
        },
        "required": [
          "coin_currency",
          "fiat_currency"
        ]
      },
      "SendSignedRequest": {
        "type": "object",
        "properties": {
          "currency": {
            "type": "string"
          },
          "signed_tx": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "currency"
        ]
      },
      "SignedRelaySignatureRequest": {
        "type": "object",
        "description": "Seller relay / cancel signatures (r, s, v).",
        "properties": {
          "r": {
            "type": "string",
            "minLength": 1
          },
          "s": {
            "type": "string",
            "minLength": 1
          },
          "v": {
            "type": "integer"
          }
        },
        "required": [
          "r",
          "s",
          "v"
        ]
      },
      "SwapCreateRequest": {
        "type": "object",
        "description": "Serialiser for register CreateSwapSerializer api.",
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "$ref": "#/components/schemas/SwapStatusEnum"
          },
          "provider": {
            "$ref": "#/components/schemas/ProviderEnum"
          },
          "from_crypto": {
            "type": "string",
            "description": "Crypto you want to swap from."
          },
          "to_currency": {
            "type": "string",
            "description": "Crypto you want to swap to."
          },
          "from_amount": {
            "type": "string",
            "format": "decimal",
            "pattern": "^-?\\d{0,14}(?:\\.\\d{0,18})?$"
          },
          "addresses_json": {},
          "initial_to_amount": {
            "type": "string",
            "format": "decimal",
            "pattern": "^-?\\d{0,14}(?:\\.\\d{0,18})?$",
            "description": "Initial expected amount to be recieved"
          },
          "provider_created_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        },
        "required": [
          "addresses_json",
          "from_amount",
          "from_crypto",
          "initial_to_amount",
          "provider",
          "to_currency"
        ]
      },
      "SwapEstimateResponse": {
        "type": "object",
        "properties": {
          "estimatedAmount": {
            "type": "string",
            "description": "Amount you would receive."
          },
          "transactionSpeedForecast": {
            "type": [
              "string",
              "null"
            ],
            "description": "Minutes, e.g. `10-60`."
          },
          "warningMessage": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "estimatedAmount"
        ]
      },
      "SwapRead": {
        "type": "object",
        "properties": {
          "provider": {
            "$ref": "#/components/schemas/ProviderEnum"
          },
          "swap_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "This is the id provided by the third party.",
            "maxLength": 256
          },
          "user": {
            "$ref": "#/components/schemas/PublicProfile"
          },
          "status": {
            "$ref": "#/components/schemas/SwapStatusEnum"
          },
          "from_crypto": {
            "$ref": "#/components/schemas/MinimalCurrency"
          },
          "to_currency": {
            "$ref": "#/components/schemas/MinimalCurrency"
          },
          "from_amount": {
            "type": "string",
            "format": "decimal",
            "pattern": "^-?\\d{0,14}(?:\\.\\d{0,18})?$"
          },
          "initial_to_amount": {
            "type": "string",
            "format": "decimal",
            "pattern": "^-?\\d{0,14}(?:\\.\\d{0,18})?$",
            "description": "Initial expected amount to be recieved"
          },
          "addresses_json": {},
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "tx_json": {},
          "final_to_amount": {
            "type": [
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d{0,14}(?:\\.\\d{0,18})?$",
            "description": "Final amount actually recieved by our user"
          },
          "created": {
            "type": "string",
            "format": "date-time",
            "readOnly": true
          },
          "provider_created_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        },
        "required": [
          "addresses_json",
          "created",
          "from_amount",
          "from_crypto",
          "initial_to_amount",
          "provider",
          "to_currency",
          "tx_json",
          "user"
        ]
      },
      "SwapStatusEnum": {
        "enum": [
          "NEW",
          "WAITING",
          "FUNDING",
          "CONFIRMING",
          "EXCHANGING",
          "SENDING",
          "FINISHED",
          "FAILED",
          "REFUNDED",
          "VERIFYING",
          "EXPIRED"
        ],
        "type": "string",
        "description": "* `NEW` - Swap created\n* `WAITING` - Waiting on user to fund\n* `FUNDING` - User funds sent\n* `CONFIRMING` - Confirming transaction\n* `EXCHANGING` - Exchanging on market\n* `SENDING` - Sending swap exchange to user\n* `FINISHED` - Swap finished\n* `FAILED` - Swap failed\n* `REFUNDED` - Swap refunded\n* `VERIFYING` - Swap verifying\n* `EXPIRED` - Swap expired"
      },
      "SwapUuid": {
        "type": "object",
        "description": "Serializer for using as response when swap is first created.",
        "properties": {
          "status": {
            "$ref": "#/components/schemas/SwapStatusEnum"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          }
        }
      },
      "TradeCommissionList": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "readOnly": true
          },
          "ref_user": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PublicUserDetails"
              }
            ],
            "readOnly": true
          },
          "trade": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReferrerTrade"
              }
            ],
            "readOnly": true
          },
          "amount": {
            "type": "string",
            "format": "decimal",
            "pattern": "^-?\\d{0,14}(?:\\.\\d{0,18})?$",
            "title": "Commission"
          },
          "percent": {
            "type": "string",
            "format": "decimal",
            "pattern": "^-?\\d{0,14}(?:\\.\\d{0,18})?$",
            "title": "Percent from our fee"
          },
          "is_paid": {
            "type": "boolean"
          },
          "created": {
            "type": "string",
            "format": "date-time",
            "readOnly": true
          }
        },
        "required": [
          "created",
          "id",
          "ref_user",
          "trade"
        ]
      },
      "TradeFeedbackCreateRequest": {
        "type": "object",
        "properties": {
          "rating": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RatingEnum"
              }
            ],
            "description": "1 to 5 stars.\n\n* `1` - 1\n* `2` - 2\n* `3` - 3\n* `4` - 4\n* `5` - 5"
          },
          "feedback": {
            "type": [
              "string",
              "null"
            ],
            "description": "At most 500 characters.",
            "maxLength": 500
          },
          "trade": {
            "type": "string",
            "format": "uuid",
            "description": "UUID of the trade you want to provide the feedback on."
          }
        },
        "required": [
          "feedback",
          "rating",
          "trade"
        ]
      },
      "TradeFeedbackRead": {
        "type": "object",
        "properties": {
          "feedback_for": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MinimalUserDetails"
              }
            ],
            "readOnly": true,
            "description": "Username"
          },
          "rating": {
            "type": [
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d{0,3}(?:\\.\\d{0,1})?$"
          },
          "feedback": {
            "type": [
              "string",
              "null"
            ]
          },
          "feedback_by": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MinimalUserDetails"
              }
            ],
            "readOnly": true,
            "description": "Username"
          },
          "id": {
            "type": "integer",
            "readOnly": true
          },
          "rating_percentage": {
            "type": [
              "number",
              "null"
            ],
            "format": "double",
            "readOnly": true
          },
          "time_created": {
            "type": [
              "integer",
              "null"
            ],
            "maximum": 2147483647,
            "minimum": 0,
            "title": "Created time"
          },
          "trade": {
            "type": "string",
            "format": "uuid"
          }
        },
        "required": [
          "feedback_by",
          "feedback_for",
          "id",
          "rating_percentage",
          "trade"
        ]
      },
      "TradeList": {
        "type": "object",
        "description": "Serializer for trade list view in Dashboard page.\n\nWe need this for optimized list view, the other view with extra details\nslows down the list response",
        "properties": {
          "status": {
            "$ref": "#/components/schemas/TradeStatusEnum"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "offer": {
            "readOnly": true
          },
          "buyer": {
            "$ref": "#/components/schemas/TradePartySummary"
          },
          "seller": {
            "$ref": "#/components/schemas/TradePartySummary"
          },
          "fiat_amount": {
            "type": "string",
            "format": "decimal",
            "pattern": "^-?\\d{0,14}(?:\\.\\d{0,18})?$"
          },
          "coin_amount": {
            "type": "string",
            "format": "decimal",
            "pattern": "^-?\\d{0,14}(?:\\.\\d{0,18})?$"
          },
          "time_created": {
            "type": [
              "integer",
              "null"
            ],
            "maximum": 2147483647,
            "minimum": 0,
            "title": "Created time"
          },
          "coin_currency": {
            "$ref": "#/components/schemas/MinimalCurrency"
          },
          "fiat_currency": {
            "$ref": "#/components/schemas/MinimalCurrency"
          }
        },
        "required": [
          "buyer",
          "coin_amount",
          "coin_currency",
          "fiat_amount",
          "fiat_currency",
          "offer",
          "seller"
        ]
      },
      "TradeParty": {
        "type": "object",
        "properties": {
          "username": {
            "type": "string",
            "description": "Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.",
            "pattern": "^[\\w.@+-]+$",
            "maxLength": 150
          },
          "activity_status": {
            "type": "string",
            "readOnly": true
          },
          "activity_tooltip": {
            "type": [
              "string",
              "null"
            ],
            "readOnly": true
          },
          "is_email_verified": {
            "type": "boolean",
            "readOnly": true
          },
          "is_phone_verified": {
            "type": "boolean",
            "readOnly": true
          },
          "phone_country_code": {
            "description": "Country code in alpha-2 format (two characters only).\n\n* `EU` - EU\n* `AW` - AW\n* `AF` - AF\n* `AO` - AO\n* `AI` - AI\n* `AX` - AX\n* `AL` - AL\n* `AD` - AD\n* `AE` - AE\n* `AR` - AR\n* `AM` - AM\n* `AS` - AS\n* `AQ` - AQ\n* `TF` - TF\n* `AG` - AG\n* `AU` - AU\n* `AT` - AT\n* `AZ` - AZ\n* `BI` - BI\n* `BE` - BE\n* `BJ` - BJ\n* `BQ` - BQ\n* `BF` - BF\n* `BD` - BD\n* `BG` - BG\n* `BH` - BH\n* `BS` - BS\n* `BA` - BA\n* `BL` - BL\n* `BY` - BY\n* `BZ` - BZ\n* `BM` - BM\n* `BO` - BO\n* `BR` - BR\n* `BB` - BB\n* `BN` - BN\n* `BT` - BT\n* `BV` - BV\n* `BW` - BW\n* `CF` - CF\n* `CA` - CA\n* `CC` - CC\n* `CH` - CH\n* `CL` - CL\n* `CN` - CN\n* `CI` - CI\n* `CM` - CM\n* `CD` - CD\n* `CG` - CG\n* `CK` - CK\n* `CO` - CO\n* `KM` - KM\n* `CV` - CV\n* `CR` - CR\n* `CU` - CU\n* `CW` - CW\n* `CX` - CX\n* `KY` - KY\n* `CY` - CY\n* `CZ` - CZ\n* `DE` - DE\n* `DJ` - DJ\n* `DM` - DM\n* `DK` - DK\n* `DO` - DO\n* `DZ` - DZ\n* `EC` - EC\n* `EG` - EG\n* `ER` - ER\n* `EH` - EH\n* `ES` - ES\n* `EE` - EE\n* `ET` - ET\n* `FI` - FI\n* `FJ` - FJ\n* `FK` - FK\n* `FR` - FR\n* `FO` - FO\n* `FM` - FM\n* `GA` - GA\n* `GB` - GB\n* `GE` - GE\n* `GG` - GG\n* `GH` - GH\n* `GI` - GI\n* `GN` - GN\n* `GP` - GP\n* `GM` - GM\n* `GW` - GW\n* `GQ` - GQ\n* `GR` - GR\n* `GD` - GD\n* `GL` - GL\n* `GT` - GT\n* `GF` - GF\n* `GU` - GU\n* `GY` - GY\n* `HK` - HK\n* `HM` - HM\n* `HN` - HN\n* `HR` - HR\n* `HT` - HT\n* `HU` - HU\n* `ID` - ID\n* `IM` - IM\n* `IN` - IN\n* `IO` - IO\n* `IE` - IE\n* `IR` - IR\n* `IQ` - IQ\n* `IS` - IS\n* `IL` - IL\n* `IT` - IT\n* `JM` - JM\n* `JE` - JE\n* `JO` - JO\n* `JP` - JP\n* `KZ` - KZ\n* `KE` - KE\n* `KG` - KG\n* `KH` - KH\n* `KI` - KI\n* `KN` - KN\n* `KR` - KR\n* `KW` - KW\n* `LA` - LA\n* `LB` - LB\n* `LR` - LR\n* `LY` - LY\n* `LC` - LC\n* `LI` - LI\n* `LK` - LK\n* `LS` - LS\n* `LT` - LT\n* `LU` - LU\n* `LV` - LV\n* `MO` - MO\n* `MF` - MF\n* `MA` - MA\n* `MC` - MC\n* `MD` - MD\n* `MG` - MG\n* `MV` - MV\n* `MX` - MX\n* `MH` - MH\n* `MK` - MK\n* `ML` - ML\n* `MT` - MT\n* `MM` - MM\n* `ME` - ME\n* `MN` - MN\n* `MP` - MP\n* `MZ` - MZ\n* `MR` - MR\n* `MS` - MS\n* `MQ` - MQ\n* `MU` - MU\n* `MW` - MW\n* `MY` - MY\n* `YT` - YT\n* `NA` - NA\n* `NC` - NC\n* `NE` - NE\n* `NF` - NF\n* `NG` - NG\n* `NI` - NI\n* `NU` - NU\n* `NL` - NL\n* `NO` - NO\n* `NP` - NP\n* `NR` - NR\n* `NZ` - NZ\n* `OM` - OM\n* `PK` - PK\n* `PA` - PA\n* `PN` - PN\n* `PE` - PE\n* `PH` - PH\n* `PW` - PW\n* `PG` - PG\n* `PL` - PL\n* `PR` - PR\n* `KP` - KP\n* `PT` - PT\n* `PY` - PY\n* `PS` - PS\n* `PF` - PF\n* `QA` - QA\n* `RE` - RE\n* `RO` - RO\n* `RU` - RU\n* `RW` - RW\n* `SA` - SA\n* `SD` - SD\n* `SN` - SN\n* `SG` - SG\n* `GS` - GS\n* `SH` - SH\n* `SJ` - SJ\n* `SB` - SB\n* `SL` - SL\n* `SV` - SV\n* `SM` - SM\n* `SO` - SO\n* `PM` - PM\n* `RS` - RS\n* `SS` - SS\n* `ST` - ST\n* `SR` - SR\n* `SK` - SK\n* `SI` - SI\n* `SE` - SE\n* `SZ` - SZ\n* `SX` - SX\n* `SC` - SC\n* `SY` - SY\n* `TC` - TC\n* `TD` - TD\n* `TG` - TG\n* `TH` - TH\n* `TJ` - TJ\n* `TK` - TK\n* `TM` - TM\n* `TL` - TL\n* `TO` - TO\n* `TT` - TT\n* `TN` - TN\n* `TR` - TR\n* `TV` - TV\n* `TW` - TW\n* `TZ` - TZ\n* `UG` - UG\n* `UA` - UA\n* `UM` - UM\n* `UY` - UY\n* `US` - US\n* `UZ` - UZ\n* `VA` - VA\n* `VC` - VC\n* `VE` - VE\n* `VG` - VG\n* `VI` - VI\n* `VN` - VN\n* `VU` - VU\n* `WF` - WF\n* `WS` - WS\n* `YE` - YE\n* `ZA` - ZA\n* `ZM` - ZM\n* `ZW` - ZW",
            "oneOf": [
              {
                "$ref": "#/components/schemas/CountryCodeEnum"
              },
              {
                "$ref": "#/components/schemas/BlankEnum"
              },
              {
                "$ref": "#/components/schemas/NullEnum"
              }
            ]
          },
          "avg_response_time": {
            "type": [
              "integer",
              "null"
            ],
            "maximum": 2147483647,
            "minimum": 0,
            "title": "Average response time",
            "description": "Average response time of user to reject or accept the contract"
          },
          "completed_trades": {
            "type": "integer",
            "maximum": 2147483647,
            "minimum": 0,
            "title": "Completed trades on our platform"
          },
          "platform_volume": {
            "type": [
              "integer",
              "null"
            ],
            "readOnly": true
          },
          "feedback_score": {
            "type": [
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d{0,3}(?:\\.\\d{0,5})?$",
            "title": "Avg rating out of 5"
          },
          "last_seen": {
            "type": [
              "integer",
              "null"
            ],
            "maximum": 2147483647,
            "minimum": 0
          },
          "is_legacy": {
            "type": "boolean",
            "title": "Pro Trader Badge"
          },
          "user_uuid": {
            "type": "string",
            "format": "uuid"
          },
          "hide_from_google": {
            "type": "boolean"
          },
          "date_joined": {
            "type": "string",
            "format": "date-time"
          },
          "profile_image": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri"
          }
        },
        "required": [
          "activity_status",
          "activity_tooltip",
          "is_email_verified",
          "is_phone_verified",
          "platform_volume",
          "username"
        ]
      },
      "TradePartySummary": {
        "type": "object",
        "properties": {
          "username": {
            "type": "string",
            "description": "Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.",
            "pattern": "^[\\w.@+-]+$",
            "maxLength": 150
          },
          "activity_status": {
            "type": "string",
            "readOnly": true
          },
          "activity_tooltip": {
            "type": [
              "string",
              "null"
            ],
            "readOnly": true
          },
          "last_seen": {
            "type": [
              "integer",
              "null"
            ],
            "maximum": 2147483647,
            "minimum": 0
          },
          "is_legacy": {
            "type": "boolean",
            "title": "Pro Trader Badge"
          },
          "user_uuid": {
            "type": "string",
            "format": "uuid"
          }
        },
        "required": [
          "activity_status",
          "activity_tooltip",
          "username"
        ]
      },
      "TradeRead": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "readOnly": true
          },
          "ad": {
            "readOnly": true
          },
          "status": {
            "$ref": "#/components/schemas/TradeStatusEnum"
          },
          "status_meta": {},
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "contract_responder": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TradeParty"
              }
            ],
            "readOnly": true
          },
          "buyer": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TradeParty"
              }
            ],
            "readOnly": true
          },
          "seller": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TradeParty"
              }
            ],
            "readOnly": true
          },
          "disputed_by": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/ProfileSlug"
              },
              {
                "type": "null"
              }
            ],
            "readOnly": true
          },
          "fiat_amount": {
            "type": "string",
            "format": "decimal",
            "pattern": "^-?\\d{0,14}(?:\\.\\d{0,18})?$"
          },
          "coin_amount": {
            "type": "string",
            "format": "decimal",
            "pattern": "^-?\\d{0,14}(?:\\.\\d{0,18})?$"
          },
          "time_of_expiry": {
            "type": [
              "integer",
              "null"
            ],
            "maximum": 2147483647,
            "minimum": 0,
            "title": "Expiry time"
          },
          "time_created": {
            "type": [
              "integer",
              "null"
            ],
            "maximum": 2147483647,
            "minimum": 0,
            "title": "Created time"
          },
          "coin_currency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Currency"
              }
            ],
            "readOnly": true
          },
          "fiat_currency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Currency"
              }
            ],
            "readOnly": true
          },
          "crypto_in_usd": {
            "type": "string",
            "format": "decimal",
            "pattern": "^-?\\d{0,14}(?:\\.\\d{0,18})?$",
            "title": "Crypto value in USD",
            "description": "Value of crypto in USD at the time of trade creation."
          },
          "responder_geo": {},
          "tx_meta": {
            "type": "object",
            "additionalProperties": true,
            "description": "Escrow state. Keys appear as the trade progresses; which ones depend on the coin. Values the seller or buyer signs come from the PATCH that moves the trade on.",
            "properties": {
              "escrow_version": {
                "description": "ETH, ERC20. Escrow contract version, `\"v1\"` or `\"v2\"`.",
                "type": "string"
              },
              "escrow_contract": {
                "description": "ETH, ERC20. Address of the escrow contract to fund.",
                "type": "string"
              },
              "feeless_escrow": {
                "description": "TRC20. The seller has Tron energy delegated, so pays `gasless_escrow_fee` instead of TRX gas.",
                "type": "boolean"
              },
              "gasless_escrow_fee": {
                "description": "TRC20. Facilitation fee for a feeless escrow.",
                "type": "integer"
              },
              "hashed_release_secret": {
                "description": "BTC. HASH160 of the release secret LocalCoinSwap holds; the escrow script pays the buyer when it's revealed.",
                "type": "string"
              },
              "hashed_return_secret": {
                "description": "BTC. HASH160 of the return (refund) secret.",
                "type": "string"
              },
              "escrow_witness": {
                "description": "BTC. Witness script of the escrow output.",
                "type": "string"
              },
              "fee_witness": {
                "description": "BTC. Witness script of the fee output.",
                "type": "string"
              },
              "approve_unsigned_tx": {
                "description": "ERC20, BEP20, TRC20 tokens. Token approval for the seller to sign, after `TRANSFER_APPROVED`. Same shape as `UnsignedTransaction`.",
                "type": "object"
              },
              "approve_signed_tx": {
                "description": "Tokens. The seller's signed approval: raw hex (EVM) or the signed Tron transaction object."
              },
              "trade_hash": {
                "description": "ETH, ERC20, BNB, BEP20, TRC20. bytes32 hex identifying the escrow on chain, set when the escrow is prepared.",
                "type": "string"
              },
              "escrow_unsigned_tx": {
                "description": "ETH, ERC20, BNB, BEP20, TRC20: the escrow transaction for the seller to sign (EVM: `value` and `gasPrice` as strings; Tron: a transaction object). BTC: `true`; the client builds the funding transaction itself."
              },
              "erc20_relayer_pays_escrow_gas": {
                "description": "ERC20 v2. LocalCoinSwap pays the escrow gas.",
                "type": "boolean"
              },
              "bep20_relayer_pays_escrow_gas": {
                "description": "BEP20 tokens. LocalCoinSwap pays the escrow gas.",
                "type": "boolean"
              },
              "trc20_relayer_pays_escrow_gas": {
                "description": "TRC20 tokens. LocalCoinSwap pays the escrow energy.",
                "type": "boolean"
              },
              "escrow_signed_tx": {
                "description": "The seller's signed escrow transaction, sent with `WAITING_FOR_MIN_ESCROW_CONFIRMS`: raw hex, or a signed Tron transaction object."
              },
              "relayer_escrow_signed_tx": {
                "description": "Relayed escrows (ERC20 v2, BEP20, TRC20 tokens). The escrow transaction LocalCoinSwap signed and broadcast for the seller."
              },
              "reported_escrow_tx": {
                "description": "EVM. Briefly, a broadcast hash the node didn't see yet: `{hash, signed_tx}`. Removed once it's found.",
                "type": "object"
              },
              "seller_signed_relay_signature": {
                "description": "ETH, ERC20, BNB, BEP20, TRC20. The seller's release authorisation, `{r, s, v}`, sent with `FUND_RECEIVED`.",
                "type": "object"
              },
              "release_signed_tx": {
                "description": "ETH, ERC20, BNB, BEP20, TRC20, LTC. The release transaction LocalCoinSwap signed and broadcast."
              },
              "seller_secret": {
                "description": "BTC. The seller's trade secret, encrypted to the buyer's `public_key` (ECIES, hex), sent with `FUND_RECEIVED`. The buyer decrypts it to claim the escrow.",
                "type": "string"
              },
              "buyer_secret": {
                "description": "BTC. The buyer's trade secret, encrypted to the seller's `public_key`, sent when the buyer cancels after escrow. The seller decrypts it to take the refund.",
                "type": "string"
              },
              "dispute_extra_data": {
                "description": "Sent with the dispute. EVM and Tron: the disputer's signature `{r, s, v}`, optionally with `dispute_deadline`."
              },
              "admin_release_secret": {
                "description": "BTC. Dispute won by the buyer: the release secret, encrypted to the buyer's `public_key`.",
                "type": "string"
              },
              "admin_return_secret": {
                "description": "BTC. Dispute won by the seller: the return secret, encrypted to the seller's `public_key`.",
                "type": "string"
              },
              "escrow_redeem_script": {
                "description": "LTC. 2-of-3 multisig script.",
                "type": "string"
              },
              "escrow_address": {
                "description": "LTC (old BTC trades too). Escrow P2WSH address.",
                "type": "string"
              },
              "escrow_script_pubkey": {
                "description": "LTC. Escrow scriptPubKey.",
                "type": "string"
              },
              "fee_address": {
                "description": "LTC (old BTC trades too). Fee address.",
                "type": "string"
              },
              "trade_pubkey": {
                "description": "LTC. LocalCoinSwap's key, the third multisig key.",
                "type": "string"
              },
              "release_signature": {
                "description": "LTC. The seller's partial signature on the release.",
                "type": "string"
              },
              "release_psbt_base64": {
                "description": "LTC. Release PSBT, base64.",
                "type": "string"
              },
              "cancel_signature": {
                "description": "LTC. Partial signature on the refund.",
                "type": "string"
              },
              "cancel_psbt_base64": {
                "description": "LTC. Refund PSBT, base64.",
                "type": "string"
              },
              "dispute_release_signed_tx": {
                "description": "LTC. Signed release after a dispute won by the buyer.",
                "type": "string"
              },
              "dispute_cancel_signed_tx": {
                "description": "LTC. Signed refund after a dispute won by the seller.",
                "type": "string"
              }
            }
          },
          "buyer_meta": {
            "type": "object",
            "additionalProperties": true,
            "description": "The buyer's escrow details. Set when the trade is created or accepted.",
            "properties": {
              "address": {
                "description": "The buyer's wallet address.",
                "type": "string"
              },
              "wallet_type": {
                "description": "`\"webwallet\"` (old trades may say `\"metamask\"`).",
                "type": "string"
              },
              "address_pubkey": {
                "description": "Public key of `address`, where needed.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "public_key": {
                "description": "The buyer's account key (secp256k1, hex). Secrets meant for the buyer are encrypted to it.",
                "type": "string"
              },
              "buyer_hashed_secret": {
                "description": "BTC. HASH160 of the buyer's trade secret.",
                "type": "string"
              },
              "buyer_hashed_public_key": {
                "description": "BTC. HASH160 of the buyer's BTC public key.",
                "type": "string"
              },
              "buyer_encrypted_secret": {
                "description": "BTC. The buyer's own trade secret, encrypted to their own account key, so their client can recover it.",
                "type": "string"
              },
              "buyer_hashed_secret_signed": {
                "description": "BTC. Signature of the hashed secret.",
                "type": "string"
              },
              "buyer_address_signed": {
                "description": "BTC. Signature of `address`.",
                "type": "string"
              }
            }
          },
          "seller_meta": {
            "type": "object",
            "additionalProperties": true,
            "description": "The seller's escrow details. Set when the trade is created or accepted.",
            "properties": {
              "address": {
                "description": "The seller's wallet address.",
                "type": "string"
              },
              "wallet_type": {
                "description": "`\"webwallet\"` (old trades may say `\"metamask\"`).",
                "type": "string"
              },
              "address_pubkey": {
                "description": "Public key of `address`, where needed.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "public_key": {
                "description": "The seller's account key (secp256k1, hex). Secrets meant for the seller are encrypted to it.",
                "type": "string"
              },
              "seller_hashed_secret": {
                "description": "BTC. HASH160 of the seller's trade secret.",
                "type": "string"
              },
              "seller_hashed_public_key": {
                "description": "BTC. HASH160 of the seller's BTC public key.",
                "type": "string"
              },
              "seller_encrypted_secret": {
                "description": "BTC. The seller's own trade secret, encrypted to their own account key, so their client can recover it.",
                "type": "string"
              }
            }
          },
          "non_custodial": {
            "type": "boolean"
          },
          "amount_to_escrow": {
            "type": "string",
            "format": "decimal",
            "pattern": "^-?\\d{0,14}(?:\\.\\d{0,18})?$"
          },
          "fees": {
            "type": "string",
            "format": "decimal",
            "pattern": "^-?\\d{0,14}(?:\\.\\d{0,18})?$"
          },
          "btc_escrow_data": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/BtcEscrowMeta"
              },
              {
                "type": "null"
              }
            ],
            "readOnly": true
          },
          "eth_escrow_data": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/EthEscrowMeta"
              },
              {
                "type": "null"
              }
            ],
            "readOnly": true
          },
          "multisig_escrow_data": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/MultiSigEscrowMeta"
              },
              {
                "type": "null"
              }
            ],
            "readOnly": true
          }
        },
        "required": [
          "ad",
          "amount_to_escrow",
          "btc_escrow_data",
          "buyer",
          "buyer_meta",
          "coin_amount",
          "coin_currency",
          "contract_responder",
          "disputed_by",
          "eth_escrow_data",
          "fees",
          "fiat_amount",
          "fiat_currency",
          "id",
          "multisig_escrow_data",
          "responder_geo",
          "seller",
          "seller_meta",
          "status_meta",
          "tx_meta"
        ]
      },
      "TradeStatusEnum": {
        "enum": [
          "CREATED",
          "ACCEPTED",
          "REJECTED",
          "WAITING_FOR_ESCROW",
          "BROADCASTING_ESCROW",
          "BROADCASTING_ESCROW_FAILED",
          "WAITING_FOR_MIN_ESCROW_CONFIRMS",
          "CRYPTO_ESC",
          "CRYPTO_ESC_FAILED",
          "FUND_PAID",
          "FUND_RECEIVED",
          "COMPLETED",
          "EXPIRED",
          "DISPUTED",
          "WAITING_FOR_DISPUTE_CONFIRMS",
          "DISPUTE_RESOLVE_BUYER",
          "DISPUTE_RESOLVE_SELLER",
          "CANCELLATION_REQUESTED",
          "CANCELLED",
          "CANCELLED_AFTER_ESCROW",
          "CANCELLATION_REJECTED",
          "BROADCASTING_RELEASE",
          "BROADCASTING_RELEASE_FAILED",
          "WAITING_FOR_CRYPTO_RELEASE_CONFIRMS",
          "CRYPTO_REL",
          "CRYPTO_REL_FAILED",
          "WAITING_FOR_MIN_APPROVE_CONFIRMS",
          "TRANSFER_APPROVED",
          "WAITING_FOR_TRANSFER_APPROVE"
        ],
        "type": "string",
        "description": "* `CREATED` - Created\n* `ACCEPTED` - Accepted\n* `REJECTED` - Rejected\n* `WAITING_FOR_ESCROW` - Waiting for escrow\n* `BROADCASTING_ESCROW` - Broadcasting escrow\n* `BROADCASTING_ESCROW_FAILED` - Broadcasting escrow failed\n* `WAITING_FOR_MIN_ESCROW_CONFIRMS` - Awaiting min escrow confs\n* `CRYPTO_ESC` - Crypto escrowed\n* `CRYPTO_ESC_FAILED` - Crypto escrow failed\n* `FUND_PAID` - Payment done\n* `FUND_RECEIVED` - Payment received\n* `COMPLETED` - Completed\n* `EXPIRED` - Expired\n* `DISPUTED` - Disputed\n* `WAITING_FOR_DISPUTE_CONFIRMS` - Awaiting min dispute confs\n* `DISPUTE_RESOLVE_BUYER` - Dispute released to buyer\n* `DISPUTE_RESOLVE_SELLER` - Dispute reverted to seller\n* `CANCELLATION_REQUESTED` - Cancellation requested\n* `CANCELLED` - Cancelled\n* `CANCELLED_AFTER_ESCROW` - Cancelled after escrow\n* `CANCELLATION_REJECTED` - Cancellation rejected\n* `BROADCASTING_RELEASE` - Broadcasting release\n* `BROADCASTING_RELEASE_FAILED` - Broadcasting release failed\n* `WAITING_FOR_CRYPTO_RELEASE_CONFIRMS` - Awaiting min release confs\n* `CRYPTO_REL` - Released\n* `CRYPTO_REL_FAILED` - Release failed\n* `WAITING_FOR_MIN_APPROVE_CONFIRMS` - Awaiting min approval confs\n* `TRANSFER_APPROVED` - Transfer approved\n* `WAITING_FOR_TRANSFER_APPROVE` - Waiting for transfer approval"
      },
      "TradeType": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "readOnly": true
          },
          "slug": {
            "oneOf": [
              {
                "type": "string",
                "maxLength": 100,
                "pattern": "^[-a-zA-Z0-9_]+$"
              },
              {
                "type": "string",
                "maxLength": 0
              }
            ]
          },
          "name": {
            "type": "string",
            "maxLength": 10
          },
          "action_name": {
            "type": "string",
            "maxLength": 10
          },
          "opposite_name": {
            "type": "string",
            "maxLength": 10
          },
          "opposite_action_name": {
            "type": "string",
            "maxLength": 10
          }
        },
        "required": [
          "action_name",
          "id",
          "name",
          "opposite_action_name",
          "opposite_name"
        ]
      },
      "TradeUtxo": {
        "type": "object",
        "properties": {
          "secret_uid": {
            "type": "string",
            "readOnly": true
          },
          "prev_tx": {
            "type": [
              "string",
              "null"
            ],
            "title": "Serialized previous transaction"
          },
          "tx_hash": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 256
          },
          "tx_pos": {
            "type": "integer",
            "maximum": 2147483647,
            "minimum": 0,
            "title": "Tx input position"
          },
          "value": {
            "type": "integer"
          },
          "witnessScript": {
            "type": "string"
          },
          "trade": {
            "type": "string",
            "format": "uuid"
          },
          "trade_secret_enc": {
            "type": [
              "string",
              "null"
            ],
            "title": "Encrypted trade secret",
            "maxLength": 1024
          },
          "tradeInstruction": {
            "type": "string"
          },
          "type": {
            "type": "string"
          }
        },
        "required": [
          "secret_uid",
          "trade",
          "tradeInstruction",
          "type",
          "value",
          "witnessScript"
        ]
      },
      "TradeUtxosResponse": {
        "type": "object",
        "properties": {
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TradeUtxo"
            }
          },
          "from_address": {
            "type": [
              "string",
              "null"
            ],
            "description": "Your newest BTC address: send the sweep here."
          },
          "address_enc_keys": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EncryptedAddressKey"
            }
          },
          "network_fees": {
            "$ref": "#/components/schemas/BtcNetworkFees"
          },
          "local_currency_symbol": {
            "type": "string"
          },
          "unit_amount_in_local_currency": {
            "type": "string",
            "format": "decimal",
            "pattern": "^-?\\d{0,28}(?:\\.\\d{0,4})?$",
            "description": "Price of 1 BTC."
          }
        },
        "required": [
          "address_enc_keys",
          "from_address",
          "local_currency_symbol",
          "network_fees",
          "results",
          "unit_amount_in_local_currency"
        ]
      },
      "TradeUuid": {
        "type": "object",
        "description": "Serializer for using as response when trade is first created.",
        "properties": {
          "status": {
            "$ref": "#/components/schemas/TradeStatusEnum"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          }
        }
      },
      "TradingHoursTypeEnum": {
        "enum": [
          "daily",
          "specific"
        ],
        "type": "string",
        "description": "* `daily` - daily\n* `specific` - specific"
      },
      "TronBroadcast": {
        "type": "object",
        "properties": {
          "tx": {
            "type": "string",
            "description": "Transaction ID."
          }
        },
        "required": [
          "tx"
        ]
      },
      "TronUnsignedTransaction": {
        "type": "object",
        "description": "TRX and TRC20: the node's transaction object. Sign `txID` and send the\nwhole object to `broadcast-trx-tx/`.",
        "properties": {
          "txID": {
            "type": "string"
          },
          "raw_data": {},
          "raw_data_hex": {
            "type": "string"
          },
          "visible": {
            "type": "boolean"
          }
        },
        "required": [
          "raw_data",
          "raw_data_hex",
          "txID"
        ]
      },
      "TrxSignedTxRequest": {
        "type": "object",
        "properties": {
          "signed_tx": {
            "description": "The signed Tron transaction object, with its `txID`."
          }
        },
        "required": [
          "signed_tx"
        ]
      },
      "TxtypeEnum": {
        "enum": [
          "ESCROW",
          "ESCROW_RELEASE",
          "ESCROW_FEE",
          "ESCROW_REFUND",
          "WITHDRAW",
          "DEPOSIT"
        ],
        "type": "string",
        "description": "* `ESCROW` - Escrow\n* `ESCROW_RELEASE` - Escrow Release\n* `ESCROW_FEE` - Escrow Fee\n* `ESCROW_REFUND` - Escrow Refund\n* `WITHDRAW` - Withdraw\n* `DEPOSIT` - Deposit"
      },
      "UnsignedTransaction": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/EvmUnsignedTransaction"
          },
          {
            "$ref": "#/components/schemas/TronUnsignedTransaction"
          }
        ]
      },
      "WalletBalance": {
        "type": "object",
        "properties": {
          "crypto_balance": {
            "type": "string",
            "format": "decimal",
            "pattern": "^-?\\d{0,36}(?:\\.\\d{0,18})?$"
          },
          "crypto_balance_base_unit": {
            "type": "string",
            "format": "decimal",
            "pattern": "^-?\\d{0,54}(?:\\.\\d{0,0})?$"
          },
          "confirmed_balance_base_unit": {
            "type": "string",
            "format": "decimal",
            "pattern": "^-?\\d{0,54}(?:\\.\\d{0,0})?$"
          },
          "fiat_balance": {
            "type": "string",
            "format": "decimal",
            "pattern": "^-?\\d{0,50}(?:\\.\\d{0,4})?$"
          },
          "crypto_slug": {
            "type": "string"
          },
          "local_currency_symbol": {
            "type": "string"
          },
          "unit_amount_in_local_currency": {
            "type": "string",
            "format": "decimal",
            "pattern": "^-?\\d{0,50}(?:\\.\\d{0,4})?$"
          }
        },
        "required": [
          "confirmed_balance_base_unit",
          "crypto_balance",
          "crypto_balance_base_unit",
          "crypto_slug",
          "fiat_balance",
          "local_currency_symbol",
          "unit_amount_in_local_currency"
        ]
      },
      "WalletTypeEnum": {
        "enum": [
          "webwallet"
        ],
        "type": "string",
        "description": "* `webwallet` - Web wallet"
      },
      "XpLevelEnum": {
        "enum": [
          "NEWBIE",
          "APPRENTICE",
          "SPECIALIST",
          "EXPERT",
          "VETERAN",
          "MASTER",
          "GRANDMASTER",
          "CHAMPION",
          "LEGENDARY"
        ],
        "type": "string",
        "description": "* `NEWBIE` - Newbie\n* `APPRENTICE` - Apprentice\n* `SPECIALIST` - Specialist\n* `EXPERT` - Expert\n* `VETERAN` - Veteran\n* `MASTER` - Master\n* `GRANDMASTER` - Grand Master\n* `CHAMPION` - Champion\n* `LEGENDARY` - Legendary"
      },
      "Error": {
        "type": "object",
        "required": [
          "message",
          "code",
          "error"
        ],
        "properties": {
          "message": {
            "type": "string",
            "description": "Readable message."
          },
          "code": {
            "type": "string",
            "description": "Stable machine code, e.g. `not_authenticated`, `api_key_scope`, `not_found`, `throttled`."
          },
          "detail": {
            "type": "string",
            "description": "Same text as `message`."
          },
          "error": {
            "type": "boolean",
            "const": true
          }
        }
      },
      "FieldError": {
        "type": "object",
        "required": [
          "message",
          "code"
        ],
        "properties": {
          "message": {
            "type": "string"
          },
          "code": {
            "type": "string",
            "description": "e.g. `required`, `invalid`."
          }
        }
      },
      "ValidationError": {
        "type": "object",
        "description": "Keys are the request fields that failed (nested for nested fields); `non_field_errors` holds errors about the whole request.",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "boolean",
            "const": true
          },
          "non_field_errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FieldError"
            }
          }
        },
        "additionalProperties": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/FieldError"
          }
        }
      }
    },
    "securitySchemes": {
      "ApiKey": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "description": "`ApiKey lcs_<prefix>_<secret>`"
      }
    },
    "responses": {
      "BadRequest": {
        "description": "The request is invalid.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ValidationError"
            }
          }
        }
      },
      "Unauthorized": {
        "description": "The API key is missing or invalid.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Forbidden": {
        "description": "The key lacks the scope (`api_key_scope`) or the object isn't yours.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "NotFound": {
        "description": "No such object, or not one you can see.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "TooManyRequests": {
        "description": "Rate limit reached (`throttled`).",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://api.localcoinswap.com"
    }
  ],
  "tags": [
    {
      "name": "Market data",
      "description": ""
    },
    {
      "name": "Offers",
      "description": "\nOffers are listed on LocalCoinSwap listings for other traders to respond to.\n\n#### Following operations are possible using Offers:\n\n    - Create\n    - Edit\n    - Delete\n    - Read\n    - Search\n"
    },
    {
      "name": "Trades",
      "description": ""
    },
    {
      "name": "Trade chat",
      "description": ""
    },
    {
      "name": "Feedback",
      "description": ""
    },
    {
      "name": "Notifications",
      "description": ""
    },
    {
      "name": "Swaps",
      "description": ""
    },
    {
      "name": "Wallet",
      "description": ""
    },
    {
      "name": "Referrals",
      "description": ""
    }
  ],
  "x-tagGroups": [
    {
      "name": "API Endpoints",
      "tags": [
        "Market data",
        "Offers",
        "Trades",
        "Trade chat",
        "Feedback",
        "Notifications",
        "Swaps",
        "Wallet",
        "Referrals"
      ]
    }
  ]
}
