Orders

Perform several estimations in one request

This endpoint is equivalent to /orders/estimate except that several estimations can be performed in a single request.

post/orders/estimate/multiple

Request

  • Base URL
    https://exchange.api.bity.com/v2
  • Auth
    • none
    • or OAuth 2
      Authorization codehttps://connect.bity.com/oauth2/auth
      Token URLhttps://connect.bity.com/oauth2/token
    • or OAuth 2
      Client credentials
      Token URLhttps://connect.bity.com/oauth2/token
      Scopeshttps://auth.bity.com/scopes/exchange.place
    • or OAuth 2
      Client credentials
      Token URLhttps://connect.bity.com/oauth2/token
  • TypeScript
    A function with typed inputs. Its response is checked against the schema.

Request body

Example request

[
  {
    "input": {
      "currency": "BTC"
    },
    "output": {
      "currency": "BTC"
    }
  }
]

Response

Successful operation

Example response

[
  {
    "input": {
      "currency": "BTC",
      "minimum_amount": "12.34"
    },
    "output": {
      "currency": "BTC",
      "minimum_amount": "12.34"
    },
    "price_breakdown": {
      "customer_trading_fee": {
        "amount": "12.34",
        "currency": "BTC"
      },
      "instant_payment_fee": {
        "amount": "12.34",
        "currency": "BTC"
      },
      "non-verified_fee": {
        "amount": "12.34",
        "currency": "BTC"
      },
      "output_transaction_cost": {
        "amount": "12.34",
        "currency": "BTC"
      },
      "partner_fee": {
        "amount": "12.34",
        "currency": "BTC"
      }
    }
  }
]

Changes

No recorded changes to this operation across all 1 revision of this API.