> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://partner.ninjatrader.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://partner.ninjatrader.com/_mcp/server.

# Submit Fund Transaction

POST https://live.tradovateapi.com/v1/fundTransaction/submitfundtransaction
Content-Type: application/json

### Submit a deposit or withdrawal request for an account.

**Available to:** All authenticated users

**Environments:** Live

**[Rate Limit](/overview/core-concepts/rate-limits):** No endpoint-specific limit

Submit a funding request against a live account. Set `outgoing` to `false` for a deposit or `true` for a withdrawal. The request creates a fund transaction that moves through the standard funding review workflow, and the response returns the created `fundTransaction` record.

Account holders can submit requests for their own accounts. Organization administrators can submit on behalf of customer accounts in their organization.

**Field Details**

The `fundCurrencyId` must correspond to one of the supported currencies: USD, EUR, AUD, GBP, or CAD. Currency IDs are environment-specific — use the `/currency/list` endpoint to retrieve valid IDs.

Leave the fee fields (`feePaymentType`, `feeAmount`, `feeCurrencyId`, `feeDescription`) empty. Any applicable transaction fee is looked up automatically from the account's fee schedule. Custom fees are reserved for internal administrators, and requests that include them are rejected.

Set `fullBalance` to `true` on a withdrawal to request the account's entire balance.

**`fundPaymentType` Values**

| Value | Meaning |
|-------|---------|
| `WTR` | Wire deposit |
| `WTS` | Wire withdrawal — requires `bankAccountId` |
| `ACHR` | ACH deposit — requires an approved ACH application on the account |
| `ACHS` | ACH withdrawal — requires an approved ACH application on the account |
| `CKR` | Check deposit — USD only |
| `CKS` | Check withdrawal — no longer supported; requests are rejected |
| `DCR`, `DCS` | (Internal) Debit card transactions. Set automatically by the system through the debit card funding flow. These values are not intended for partner workflows. |
| `BOOKR`, `BOOKS` | (Internal) Book transfers. Set automatically by the system. These values are not intended for partner workflows. |
| `SHR`, `SHS` | (Internal) Shadow fund transactions. Set automatically by [`submitShadowFundTransaction`](/api/rest-api-endpoints/funds/submit-shadow-fund-transaction) and [`submitManagedFundTransaction`](/api/rest-api-endpoints/funds/submit-managed-fund-transaction). Requests using these values are rejected on this endpoint. |
| `CKF`, `WTF`, `TF`, `TT`, `FX`, `XFR`, `MDF`, `FPR` | (Internal) Legacy transaction type codes that can appear on historical fund transaction records. No current funding workflow submits them — use the documented types above for new requests. |

**Funds in Transit**

If your organization has Funds in Transit enabled with a tradable cap configured, qualifying ACH deposits (`ACHR`) may be processed as in-transit transactions: the deposit amount, up to the organization's remaining cap, becomes tradable immediately while the transfer settles. In-transit funds are tradable but not withdrawable. Deposits that don't qualify follow standard processing.

**Common Failure Scenarios**

- Account is closed or restricted
- Caller is neither the account holder nor an organization administrator
- Withdrawal amount exceeds the account's available margin excess
- `ACHR` or `ACHS` submitted without an approved ACH application
- Custom fee fields included by a non-administrator
- Payment type is reserved for system use (`DCR`, `DCS`, `BOOKR`, `BOOKS`, `SHR`, `SHS`) or targets a shadow account
- A pending `submitFundTransaction` request already exists for the account

**Error Messages**

| `errorText` | Trigger |
|-------------|---------|
| `"You are not authorized to perform this operation"` | Caller is neither the account holder nor an organization administrator |
| `"Account not open for funding"` | Account is closed or restricted |
| `"The selected currency is not supported. Please select either USD, EUR, AUD, or GBP."` | `fundCurrencyId` is not a supported currency |
| `"You do not have sufficient margin excess to place this request. Please decrease the amount."` | Withdrawal exceeds available funds (`errorCode: InsufficientFunds`) |
| `"Insufficient funds for transaction fees"` | Funds-in-transit deposit can't cover the transaction fee (`errorCode: InsufficientFunds`) |
| `"Custom fee is not allowed in fund requests."` | Fee fields included by a non-administrator |
| `"There are no approved ACH applications. Please submit a new ACH application under Transfers & Payments, Add ACH Account."` | `ACHR`/`ACHS` without an approved ACH application (`errorCode: AchNoApprovedApplications`) |
| `"Check deposits must be in US dollars."` | `CKR` with a non-USD currency |
| `"Check withdrawals are no longer supported. Please select another withdrawal option."` | `fundPaymentType` is `CKS` |
| `"Not supported"` | Shadow account, shadow payment type, or a system-reserved payment type submitted by a non-administrator |
| `"Pending submitFundTransaction request already exists for this account."` | A concurrent request is still processing (`errorCode: ConcurrentRequestRejected`) |

**Related Endpoints**

- Use [`inTransitFundTransaction`](/api/rest-api-endpoints/funds/in-transit-fund-transaction) to record a wire deposit that has been initiated but hasn't settled yet.
- Use [`submitFundConversion`](/api/rest-api-endpoints/funds/submit-fund-conversion) to convert cash between currencies within an account.
- Use [`adjustCash`](/api/rest-api-endpoints/funds/adjust-cash) to manage simulated balances on demo accounts.

Reference: https://partner.ninjatrader.com/connect/api/rest-api-endpoints/funds/submit-fund-transaction

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: connect
  version: 1.0.0
paths:
  /fundTransaction/submitfundtransaction:
    post:
      operationId: submit-fund-transaction
      summary: Submit Fund Transaction
      description: >-
        ### Submit a deposit or withdrawal request for an account.


        **Available to:** All authenticated users


        **Environments:** Live


        **[Rate Limit](/overview/core-concepts/rate-limits):** No
        endpoint-specific limit


        Submit a funding request against a live account. Set `outgoing` to
        `false` for a deposit or `true` for a withdrawal. The request creates a
        fund transaction that moves through the standard funding review
        workflow, and the response returns the created `fundTransaction` record.


        Account holders can submit requests for their own accounts. Organization
        administrators can submit on behalf of customer accounts in their
        organization.


        **Field Details**


        The `fundCurrencyId` must correspond to one of the supported currencies:
        USD, EUR, AUD, GBP, or CAD. Currency IDs are environment-specific — use
        the `/currency/list` endpoint to retrieve valid IDs.


        Leave the fee fields (`feePaymentType`, `feeAmount`, `feeCurrencyId`,
        `feeDescription`) empty. Any applicable transaction fee is looked up
        automatically from the account's fee schedule. Custom fees are reserved
        for internal administrators, and requests that include them are
        rejected.


        Set `fullBalance` to `true` on a withdrawal to request the account's
        entire balance.


        **`fundPaymentType` Values**


        | Value | Meaning |

        |-------|---------|

        | `WTR` | Wire deposit |

        | `WTS` | Wire withdrawal — requires `bankAccountId` |

        | `ACHR` | ACH deposit — requires an approved ACH application on the
        account |

        | `ACHS` | ACH withdrawal — requires an approved ACH application on the
        account |

        | `CKR` | Check deposit — USD only |

        | `CKS` | Check withdrawal — no longer supported; requests are rejected
        |

        | `DCR`, `DCS` | (Internal) Debit card transactions. Set automatically
        by the system through the debit card funding flow. These values are not
        intended for partner workflows. |

        | `BOOKR`, `BOOKS` | (Internal) Book transfers. Set automatically by the
        system. These values are not intended for partner workflows. |

        | `SHR`, `SHS` | (Internal) Shadow fund transactions. Set automatically
        by
        [`submitShadowFundTransaction`](/api/rest-api-endpoints/funds/submit-shadow-fund-transaction)
        and
        [`submitManagedFundTransaction`](/api/rest-api-endpoints/funds/submit-managed-fund-transaction).
        Requests using these values are rejected on this endpoint. |

        | `CKF`, `WTF`, `TF`, `TT`, `FX`, `XFR`, `MDF`, `FPR` | (Internal)
        Legacy transaction type codes that can appear on historical fund
        transaction records. No current funding workflow submits them — use the
        documented types above for new requests. |


        **Funds in Transit**


        If your organization has Funds in Transit enabled with a tradable cap
        configured, qualifying ACH deposits (`ACHR`) may be processed as
        in-transit transactions: the deposit amount, up to the organization's
        remaining cap, becomes tradable immediately while the transfer settles.
        In-transit funds are tradable but not withdrawable. Deposits that don't
        qualify follow standard processing.


        **Common Failure Scenarios**


        - Account is closed or restricted

        - Caller is neither the account holder nor an organization administrator

        - Withdrawal amount exceeds the account's available margin excess

        - `ACHR` or `ACHS` submitted without an approved ACH application

        - Custom fee fields included by a non-administrator

        - Payment type is reserved for system use (`DCR`, `DCS`, `BOOKR`,
        `BOOKS`, `SHR`, `SHS`) or targets a shadow account

        - A pending `submitFundTransaction` request already exists for the
        account


        **Error Messages**


        | `errorText` | Trigger |

        |-------------|---------|

        | `"You are not authorized to perform this operation"` | Caller is
        neither the account holder nor an organization administrator |

        | `"Account not open for funding"` | Account is closed or restricted |

        | `"The selected currency is not supported. Please select either USD,
        EUR, AUD, or GBP."` | `fundCurrencyId` is not a supported currency |

        | `"You do not have sufficient margin excess to place this request.
        Please decrease the amount."` | Withdrawal exceeds available funds
        (`errorCode: InsufficientFunds`) |

        | `"Insufficient funds for transaction fees"` | Funds-in-transit deposit
        can't cover the transaction fee (`errorCode: InsufficientFunds`) |

        | `"Custom fee is not allowed in fund requests."` | Fee fields included
        by a non-administrator |

        | `"There are no approved ACH applications. Please submit a new ACH
        application under Transfers & Payments, Add ACH Account."` |
        `ACHR`/`ACHS` without an approved ACH application (`errorCode:
        AchNoApprovedApplications`) |

        | `"Check deposits must be in US dollars."` | `CKR` with a non-USD
        currency |

        | `"Check withdrawals are no longer supported. Please select another
        withdrawal option."` | `fundPaymentType` is `CKS` |

        | `"Not supported"` | Shadow account, shadow payment type, or a
        system-reserved payment type submitted by a non-administrator |

        | `"Pending submitFundTransaction request already exists for this
        account."` | A concurrent request is still processing (`errorCode:
        ConcurrentRequestRejected`) |


        **Related Endpoints**


        - Use
        [`inTransitFundTransaction`](/api/rest-api-endpoints/funds/in-transit-fund-transaction)
        to record a wire deposit that has been initiated but hasn't settled yet.

        - Use
        [`submitFundConversion`](/api/rest-api-endpoints/funds/submit-fund-conversion)
        to convert cash between currencies within an account.

        - Use [`adjustCash`](/api/rest-api-endpoints/funds/adjust-cash) to
        manage simulated balances on demo accounts.
      tags:
        - Funds
      parameters:
        - name: Authorization
          in: header
          description: Bearer authentication
          required: true
          schema:
            type: string
      responses:
        '200':
          description: FundTransactionResponse
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FundTransactionResponse'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SubmitFundTransaction'
servers:
  - url: https://live.tradovateapi.com/v1
    description: https://live.tradovateapi.com/v1
components:
  schemas:
    SubmitFundTransactionFundPaymentType:
      type: string
      enum:
        - ACHR
        - ACHS
        - BOOKR
        - BOOKS
        - CKF
        - CKR
        - CKS
        - DCR
        - DCS
        - FPR
        - FX
        - MDF
        - SHR
        - SHS
        - TF
        - TT
        - WTF
        - WTR
        - WTS
        - XFR
      description: >-
        ACHR, ACHS, BOOKR, BOOKS, CKF, CKR, CKS, DCR, DCS, FPR, FX, MDF, SHR,
        SHS, TF, TT, WTF, WTR, WTS, XFR
      title: SubmitFundTransactionFundPaymentType
    SubmitFundTransactionFeePaymentType:
      type: string
      enum:
        - ACHR
        - ACHS
        - BOOKR
        - BOOKS
        - CKF
        - CKR
        - CKS
        - DCR
        - DCS
        - FPR
        - FX
        - MDF
        - SHR
        - SHS
        - TF
        - TT
        - WTF
        - WTR
        - WTS
        - XFR
      description: >-
        ACHR, ACHS, BOOKR, BOOKS, CKF, CKR, CKS, DCR, DCS, FPR, FX, MDF, SHR,
        SHS, TF, TT, WTF, WTR, WTS, XFR
      title: SubmitFundTransactionFeePaymentType
    SubmitFundTransaction:
      type: object
      properties:
        accountId:
          type: integer
          format: int64
        outgoing:
          type: boolean
        fundPaymentType:
          $ref: '#/components/schemas/SubmitFundTransactionFundPaymentType'
          description: >-
            ACHR, ACHS, BOOKR, BOOKS, CKF, CKR, CKS, DCR, DCS, FPR, FX, MDF,
            SHR, SHS, TF, TT, WTF, WTR, WTS, XFR
        fundAmount:
          type: number
          format: double
        fundCurrencyId:
          type: integer
          format: int64
        fundDescription:
          type: string
        feePaymentType:
          $ref: '#/components/schemas/SubmitFundTransactionFeePaymentType'
          description: >-
            ACHR, ACHS, BOOKR, BOOKS, CKF, CKR, CKS, DCR, DCS, FPR, FX, MDF,
            SHR, SHS, TF, TT, WTF, WTR, WTS, XFR
        feeAmount:
          type: number
          format: double
        feeCurrencyId:
          type: integer
          format: int64
        feeDescription:
          type: string
        bankAccountId:
          type: integer
          format: int64
        fullBalance:
          type: boolean
      required:
        - accountId
        - outgoing
        - fundPaymentType
        - fundAmount
        - fundCurrencyId
      title: SubmitFundTransaction
    FundTransactionFundPaymentType:
      type: string
      enum:
        - ACHR
        - ACHS
        - BOOKR
        - BOOKS
        - CKF
        - CKR
        - CKS
        - DCR
        - DCS
        - FPR
        - FX
        - MDF
        - SHR
        - SHS
        - TF
        - TT
        - WTF
        - WTR
        - WTS
        - XFR
      description: >-
        ACHR, ACHS, BOOKR, BOOKS, CKF, CKR, CKS, DCR, DCS, FPR, FX, MDF, SHR,
        SHS, TF, TT, WTF, WTR, WTS, XFR
      title: FundTransactionFundPaymentType
    FundTransactionFeePaymentType:
      type: string
      enum:
        - ACHR
        - ACHS
        - BOOKR
        - BOOKS
        - CKF
        - CKR
        - CKS
        - DCR
        - DCS
        - FPR
        - FX
        - MDF
        - SHR
        - SHS
        - TF
        - TT
        - WTF
        - WTR
        - WTS
        - XFR
      description: >-
        ACHR, ACHS, BOOKR, BOOKS, CKF, CKR, CKS, DCR, DCS, FPR, FX, MDF, SHR,
        SHS, TF, TT, WTF, WTR, WTS, XFR
      title: FundTransactionFeePaymentType
    FundTransactionStatus:
      type: string
      enum:
        - Approved
        - Declined
        - InReview
        - InSecondaryReview
        - InTransit
        - Locked
        - Pending
        - ReplicaNTC
        - ReviewCompleted
        - Suspended
      description: >-
        Approved, Declined, InReview, InSecondaryReview, InTransit, Locked,
        Pending, ReplicaNTC, ReviewCompleted, Suspended
      title: FundTransactionStatus
    TradeDate:
      type: object
      properties:
        year:
          type: integer
        month:
          type: integer
        day:
          type: integer
      required:
        - year
        - month
        - day
      title: TradeDate
    FundTransactionSuspendReason:
      type: string
      enum:
        - CurrencyConversionRequired
        - IncompleteRequest
        - IncorrectRoutingNumber
        - IncorrectSwiftCode
        - LargeWireConfirmation
        - Other
        - TooLateToProcess
        - TradingHold
      description: >-
        CurrencyConversionRequired, IncompleteRequest, IncorrectRoutingNumber,
        IncorrectSwiftCode, LargeWireConfirmation, Other, TooLateToProcess,
        TradingHold
      title: FundTransactionSuspendReason
    FundTransactionAchrSecondCheckResult:
      type: string
      enum:
        - DataUnavailable
        - NSF
        - NoPaymentItemsAssigned
        - OK
      description: DataUnavailable, NSF, NoPaymentItemsAssigned, OK
      title: FundTransactionAchrSecondCheckResult
    FundTransaction:
      type: object
      properties:
        id:
          type: integer
          format: int64
        accountId:
          type: integer
          format: int64
        timestamp:
          type: string
          format: date-time
        submitterId:
          type: integer
          format: int64
        outgoing:
          type: boolean
        fundPaymentType:
          $ref: '#/components/schemas/FundTransactionFundPaymentType'
          description: >-
            ACHR, ACHS, BOOKR, BOOKS, CKF, CKR, CKS, DCR, DCS, FPR, FX, MDF,
            SHR, SHS, TF, TT, WTF, WTR, WTS, XFR
        fundAmount:
          type: number
          format: double
        fundCurrencyId:
          type: integer
          format: int64
        fundDescription:
          type: string
        feePaymentType:
          $ref: '#/components/schemas/FundTransactionFeePaymentType'
          description: >-
            ACHR, ACHS, BOOKR, BOOKS, CKF, CKR, CKS, DCR, DCS, FPR, FX, MDF,
            SHR, SHS, TF, TT, WTF, WTR, WTS, XFR
        feeAmount:
          type: number
          format: double
        feeCurrencyId:
          type: integer
          format: int64
        feeDescription:
          type: string
        bankAccountId:
          type: integer
          format: int64
        approved:
          type: boolean
        status:
          $ref: '#/components/schemas/FundTransactionStatus'
          description: >-
            Approved, Declined, InReview, InSecondaryReview, InTransit, Locked,
            Pending, ReplicaNTC, ReviewCompleted, Suspended
        autoApprovalDate:
          $ref: '#/components/schemas/TradeDate'
        suspendReason:
          $ref: '#/components/schemas/FundTransactionSuspendReason'
          description: >-
            CurrencyConversionRequired, IncompleteRequest,
            IncorrectRoutingNumber, IncorrectSwiftCode, LargeWireConfirmation,
            Other, TooLateToProcess, TradingHold
        suspendReasonNotes:
          type: string
        fullBalance:
          type: boolean
        approvalDate:
          type: string
          format: date-time
        submissionSignalId:
          type: integer
          format: int64
        achId:
          type: integer
          format: int64
        achrSecondCheckResult:
          $ref: '#/components/schemas/FundTransactionAchrSecondCheckResult'
          description: DataUnavailable, NSF, NoPaymentItemsAssigned, OK
        achrSecondCheckTimestamp:
          type: string
          format: date-time
        achrSecondCheckComments:
          type: string
        returnCode:
          type: string
        statementDate:
          $ref: '#/components/schemas/TradeDate'
        managedFundingMethodId:
          type: integer
          format: int64
        paymentInitiationApplicationId:
          type: integer
          format: int64
        transactionIdentifier:
          type: string
      required:
        - accountId
        - timestamp
        - submitterId
        - outgoing
        - fundPaymentType
        - fundAmount
        - fundCurrencyId
      title: FundTransaction
    FundTransactionResponseErrorCode:
      type: string
      enum:
        - AccountLockFailed
        - AchDepositAboveMaximum
        - AchDepositBelowMinimum
        - AchDepositExpected
        - AchDepositFrequencyExceeded
        - AchDepositHoldPeriod
        - AchNoApprovedApplications
        - AchPendingDepositExists
        - AchWithdrawalFrequencyExceeded
        - ApprovalStatusLocked
        - BankAccountNSF
        - ConcurrentRequestRejected
        - DuplicateAchReturn
        - DuplicateShadowTransaction
        - FullBalanceRequestPending
        - FullBalanceWithAchHolds
        - FullBalanceWithOpenPositions
        - FullBalanceWithPendingAch
        - InsufficientFunds
        - TransactionAlreadyApproved
        - TransactionAlreadyDeclined
        - TransactionNotApplicable
        - TransactionNotFound
        - Unknown
        - WireDepositHoldPeriod
      description: >-
        AccountLockFailed, AchDepositAboveMaximum, AchDepositBelowMinimum,
        AchDepositExpected, AchDepositFrequencyExceeded, AchDepositHoldPeriod,
        AchNoApprovedApplications, AchPendingDepositExists,
        AchWithdrawalFrequencyExceeded, ApprovalStatusLocked, BankAccountNSF,
        ConcurrentRequestRejected, DuplicateAchReturn,
        DuplicateShadowTransaction, FullBalanceRequestPending,
        FullBalanceWithAchHolds, FullBalanceWithOpenPositions,
        FullBalanceWithPendingAch, InsufficientFunds,
        TransactionAlreadyApproved, TransactionAlreadyDeclined,
        TransactionNotApplicable, TransactionNotFound, Unknown,
        WireDepositHoldPeriod
      title: FundTransactionResponseErrorCode
    FundTransactionResponse:
      type: object
      properties:
        errorText:
          type: string
          description: Non-empty if the request failed
        errorHeader:
          type: string
          description: Non-empty if the request failed
        fundTransaction:
          $ref: '#/components/schemas/FundTransaction'
        errorCode:
          $ref: '#/components/schemas/FundTransactionResponseErrorCode'
          description: >-
            AccountLockFailed, AchDepositAboveMaximum, AchDepositBelowMinimum,
            AchDepositExpected, AchDepositFrequencyExceeded,
            AchDepositHoldPeriod, AchNoApprovedApplications,
            AchPendingDepositExists, AchWithdrawalFrequencyExceeded,
            ApprovalStatusLocked, BankAccountNSF, ConcurrentRequestRejected,
            DuplicateAchReturn, DuplicateShadowTransaction,
            FullBalanceRequestPending, FullBalanceWithAchHolds,
            FullBalanceWithOpenPositions, FullBalanceWithPendingAch,
            InsufficientFunds, TransactionAlreadyApproved,
            TransactionAlreadyDeclined, TransactionNotApplicable,
            TransactionNotFound, Unknown, WireDepositHoldPeriod
      title: FundTransactionResponse
  securitySchemes:
    bearer_access_token:
      type: http
      scheme: bearer

```

## Examples



**Request**

```json
{
  "accountId": 12345,
  "outgoing": true,
  "fundPaymentType": "ACHR",
  "fundAmount": 2500.75,
  "fundCurrencyId": 840
}
```

**Response**

```json
{
  "errorText": "",
  "errorHeader": "",
  "fundTransaction": {
    "accountId": 12345,
    "timestamp": "2024-06-10T14:45:00Z",
    "submitterId": 67890,
    "outgoing": true,
    "fundPaymentType": "ACHR",
    "fundAmount": 2500.75,
    "fundCurrencyId": 840,
    "id": 987654321,
    "fundDescription": "Withdrawal via ACH",
    "feePaymentType": "",
    "feeAmount": 0,
    "feeCurrencyId": 0,
    "feeDescription": "",
    "bankAccountId": 555123,
    "approved": true,
    "status": "Approved",
    "autoApprovalDate": {
      "year": 2024,
      "month": 6,
      "day": 11
    },
    "suspendReason": "Other",
    "suspendReasonNotes": "",
    "fullBalance": false,
    "approvalDate": "2024-06-10T15:00:00Z",
    "submissionSignalId": 4321,
    "achId": 7890,
    "achrSecondCheckResult": "OK",
    "achrSecondCheckTimestamp": "2024-06-10T14:50:00Z",
    "achrSecondCheckComments": "Second check passed successfully",
    "returnCode": "00",
    "statementDate": {
      "year": 2024,
      "month": 6,
      "day": 10
    },
    "managedFundingMethodId": 321,
    "paymentInitiationApplicationId": 654,
    "transactionIdentifier": "TXN-20240610-987654321"
  },
  "errorCode": ""
}
```

**SDK Code**

```python
import requests

url = "https://live.tradovateapi.com/v1/fundTransaction/submitfundtransaction"

payload = {
    "accountId": 12345,
    "outgoing": True,
    "fundPaymentType": "ACHR",
    "fundAmount": 2500.75,
    "fundCurrencyId": 840
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://live.tradovateapi.com/v1/fundTransaction/submitfundtransaction';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"accountId":12345,"outgoing":true,"fundPaymentType":"ACHR","fundAmount":2500.75,"fundCurrencyId":840}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://live.tradovateapi.com/v1/fundTransaction/submitfundtransaction"

	payload := strings.NewReader("{\n  \"accountId\": 12345,\n  \"outgoing\": true,\n  \"fundPaymentType\": \"ACHR\",\n  \"fundAmount\": 2500.75,\n  \"fundCurrencyId\": 840\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://live.tradovateapi.com/v1/fundTransaction/submitfundtransaction")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"accountId\": 12345,\n  \"outgoing\": true,\n  \"fundPaymentType\": \"ACHR\",\n  \"fundAmount\": 2500.75,\n  \"fundCurrencyId\": 840\n}"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://live.tradovateapi.com/v1/fundTransaction/submitfundtransaction")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"accountId\": 12345,\n  \"outgoing\": true,\n  \"fundPaymentType\": \"ACHR\",\n  \"fundAmount\": 2500.75,\n  \"fundCurrencyId\": 840\n}")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://live.tradovateapi.com/v1/fundTransaction/submitfundtransaction', [
  'body' => '{
  "accountId": 12345,
  "outgoing": true,
  "fundPaymentType": "ACHR",
  "fundAmount": 2500.75,
  "fundCurrencyId": 840
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://live.tradovateapi.com/v1/fundTransaction/submitfundtransaction");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": 12345,\n  \"outgoing\": true,\n  \"fundPaymentType\": \"ACHR\",\n  \"fundAmount\": 2500.75,\n  \"fundCurrencyId\": 840\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "accountId": 12345,
  "outgoing": true,
  "fundPaymentType": "ACHR",
  "fundAmount": 2500.75,
  "fundCurrencyId": 840
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://live.tradovateapi.com/v1/fundTransaction/submitfundtransaction")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```