{
  "opencollection": "1.0.0",
  "info": {
    "name": "DriveWealth Accounts API",
    "version": "1.0"
  },
  "items": [
    {
      "info": {
        "name": "Accounts",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Create Account",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://bo-api.drivewealth.io/back-office/accounts",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Creates a trading Account."
        },
        {
          "info": {
            "name": "Retrieve Account",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://bo-api.drivewealth.io/back-office/accounts/:accountID",
            "params": [
              {
                "name": "accountID",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Retrieves an Account details by accountID."
        },
        {
          "info": {
            "name": "Update Account",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://bo-api.drivewealth.io/back-office/accounts/:accountID",
            "params": [
              {
                "name": "accountID",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Updates an Account details by accountID."
        },
        {
          "info": {
            "name": "Retrieve Account Cash",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://bo-api.drivewealth.io/back-office/accounts/:accountID/summary/money",
            "params": [
              {
                "name": "accountID",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Retrieves an Account Cash details by accountID."
        },
        {
          "info": {
            "name": "Retrieve Account Summary",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://bo-api.drivewealth.io/back-office/accounts/:accountID/summary",
            "params": [
              {
                "name": "accountID",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Retrieves an Account Summary details by accountID.\n\nThe full Account Summary API is now deprecated. Instead, use the individual APIs for retrieving the Account's Positions, Transactions, or Orders separately."
        },
        {
          "info": {
            "name": "Retrieve Account Performance",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://bo-api.drivewealth.io/back-office/accounts/:accountID/performance",
            "params": [
              {
                "name": "accountID",
                "value": "",
                "type": "path"
              },
              {
                "name": "period",
                "value": "3d",
                "type": "query",
                "description": "Used for relative date range, accepts a number and a unit of time (E.g: 3d = 3 Days or 2w = 2 Weeks)."
              },
              {
                "name": "from",
                "value": "2018-09-18",
                "type": "query",
                "description": "Start date and time of requested time frame of the accounts performance."
              },
              {
                "name": "to",
                "value": "2019-09-18",
                "type": "query",
                "description": "End date and time of requested time frame of the accounts performance."
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Retrieves realtime Account Performance details by accountID."
        },
        {
          "info": {
            "name": "Retrieve Account Margin",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://bo-api.drivewealth.io/back-office/accounts/:accountID/summary/margin",
            "params": [
              {
                "name": "accountID",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Retrieves Account Margin details by accountID."
        },
        {
          "info": {
            "name": "Retrieve Account Lots",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://bo-api.drivewealth.io/back-office/accounts/:accountID/position-details",
            "params": [
              {
                "name": "accountID",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Retrieves an Account Lots details by accountID."
        },
        {
          "info": {
            "name": "List User Accounts",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://bo-api.drivewealth.io/back-office/users/:userID/accounts",
            "params": [
              {
                "name": "userID",
                "value": "cc07f91b-7ee1-4868-b8fc-823c70a1b932",
                "type": "path",
                "description": "Unique ID of the User to fetch their accounts at DriveWealth."
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Retrieves a list of User Accounts by userID."
        }
      ]
    }
  ],
  "bundled": true
}