Get All Transfers
Retrieve all deposits and withdrawals of a particular trading account
Overview
This GET endpoint enables you to retrieve all deposits and withdrawals of a particular trading account.
There are eight required parameters that must be provided in the request:
Et-App-Key (header). This is the unique key of your app that identifies your app when communicating with our service. Contact your administrator to get this key.
Authorization (header). This is the authorization token from the very first token request. The value of this header must have the following format:
Bearer BQ898r9fefi
(Bearer
+ 1 space + the token).API version (path). Unless necessary, leave it at "1.0".
accountId (path). This is the internal identifier of the trading account in AutoShares.
pageNumber (query). This is the number of the page (all transfers are split in pages).
pageSize (query). This is the preferable size of the page (maximum value is 99).
sortField (query). This is a parameter by which all returned transfers must be sorted.
desc (query). This boolean parameter indicates if the returned transfers should be sorted in ascending (false) or descending (true) order.
Here's the final template for this API request:
Response
In response to this API request, you will receive an array of JSON dictionaries containing detailed information about all transfers on this trading account.
where:
Id
Internal ID of the transfer.
String
AccountId
Internal ID of the trading account on whose behalf the transfer was performed.
Integer
Mechanism
The transfer mechanism. Possible values:
ACH,
Check,
Wire.
String
IsDeposit
Indicates if this transfer is a deposit.
Boolean
Status
The status of the transfer.
String
Comment
An accompanying comment.
String
Amount
The amount transferred in USD.
Double
TransferDate
The date on which the transfer was finalized at the clearing firm. The funds will be available in the trading account the following trading session when AutoShares receives Start-of-Day files from the clearing firm.
String
CreatedAt
The date on which the transfer was initiated.
String
Common Mistakes
Here are some of the common mistakes that developers make when attempting to send a request to list all transfers.
Failing to Specify the Et-App-Key Parameter
If you specify the wrong Et-App-Key parameter or fail to include it in the header altogether, you'll get the following error:
Last updated