> ## Documentation Index
> Fetch the complete documentation index at: https://cobo-docs-feature-cobo-cli.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Deposit to Exchange Account (Investor Only)

> <Note>This content applies to WaaS 1.0 only. We highly recommend that you upgrade to [WaaS 2.0](https://www.cobo.com/developers/v2/guides/overview/introduction).</Note> This endpoint allows users to deposit funds into their trading account. The user must provide their exchange account token, the coin they wish to deposit, the amount they wish to deposit, and a unique request ID. The endpoint returns a JSON response with information about the deposit, including the request ID, the coin, the absolute amount deposited, the estimated amount received, the status of the deposit, the absolute fee charged, and the fee in the same coin as the deposit.

#### Request

<ParamField body="exchange_account_token" type="String" required>to exchange account token (aquire from Web)</ParamField>
<ParamField body="coin" type="String" required>Coin code</ParamField>
<ParamField body="amount" type="Int" required>Int amount (e.g. if 1 BTC is to be withdrawn, the amount should be multiplied by 100,000,000 (Satoshis))</ParamField>
<ParamField body="request_id" type="String" required>Request ID (Universally unique ID for each request)</ParamField>

#### Response

<ResponseField name="success" type="bool">request successful or failed</ResponseField>

<ResponseField name="result" type="object">
  <Expandable title="object">
    <ResponseField name="request_id" type="String">Request ID (Universally unique ID for each request)</ResponseField>
    <ResponseField name="coin" type="String">Coin code</ResponseField>
    <ResponseField name="amount" type="Int">Int amount contains decimals (e.g. if 1 BTC is to be deposited, the amount should be multiplied by 100,000,000 (Satoshis))</ResponseField>
    <ResponseField name="abs_amount" type="String">Absolute amount. If you trade 1.5 BTC, then the abs\_amount is 1.5</ResponseField>
    <ResponseField name="status" type="String">Status: ok, pending, failed, human\_check</ResponseField>
    <ResponseField name="fee" type="Int">Fee amount (Note that the value here contains decimals. For example, a BTC value of 100,000,000 here is actually 1 BTC)</ResponseField>
    <ResponseField name="abs_fee" type="String">Absolute fee value. For examle, abs\_cobo\_fee 0.00005 means exactly 0.00005BTC</ResponseField>
    <ResponseField name="estimated_amount_received" type="Int">Estimated amount received (Note that the value here contains decimals. For example, a BTC value of 100,000,000 here is actually 1 BTC)</ResponseField>
  </Expandable>
</ResponseField>

<RequestExample>
  ```python Python
  request(
      "POST",
      "/v1/custody/trading_deposit/",
      {
          "exchange_account_token": "token",
          "coin": "BTC",
          "amount": "100000000",
          "request_id": "UNIQUE_ID_FOR_DEPOSIT"
      },
      api_key, api_secret, host
  )
  ```

  ```javascript JavaScript
  coboFetch('POST', '/v1/custody/trading_deposit/',
          {
              "exchange_account_token": "token",
              "coin": "BTC",
              "amount": "100000000",
              "request_id": "UNIQUE_ID_FOR_DEPOSIT"
          },
          api_key, api_secret, host
      ).then(res => {
          res.json().then((data)=>{
              console.log(JSON.stringify(data, null, 4));
          })
      }).catch(err => {
          console.log(err)
      });
  ```

  ```go Go
  Request("POST", "/v1/custody/trading_deposit/", map[string]string{
      "exchange_account_token": "token",
      "coin": "BTC",
      "amount": "100000000",
      "request_id": "UNIQUE_ID_FOR_DEPOSIT"
  })
  ```
</RequestExample>

<ResponseExample>
  ```json
  {
    "success": true,
    "result": {
      "request_id": "UNIQUE_ID_FOR_DEPOSIT",
      "coin": "BTC",
      "amount": 100000000,
      "abs_amount": "1",
      "status": "ok",
      "fee": 500000,
      "abs_fee": "0.0005",
      "estimated_amount_received": "99950000"
    }
  }
  ```
</ResponseExample>
