Depending on applicable regulations or business limitations, specific API requests may not be available for your use.

Get All Folio Orders

Request orders (either all or open only) for a folio. This will return a list of orders. Only orders that are open or closed and not older than 10 days will be returned.

Request URL

Syntax GET /restapi/accounts/{accountnumber}/folios/{folionumber}/orders
Example URL https://api.uat.foliofn.com/restapi/accounts/RA1234ABCD/folios/RA1234ABCD03/orders?openOnly=true

Query Parameters

Name Required? Values Description
openOnly no, default is false “true” or “false” Set to “true” to only return open orders. “false” will return all orders within the past 10 days.

Response Data Fields

See Get a Folio Order for the details of each field.

Response Body Example


Status Code: 200 OK
Content-Type: application/json
Date: Wed, 18 Dec 2013 19:34:50 GMT
Link: <https://api.uat.foliofn.com/restapi/accounts/RA1234ABCD/folios/RA1234ABCD03/orders>; rel="POST"; type="application/json"; title="createFolioOrder", <https://api.uat.foliofn.com/restapi/accounts/RA1234ABCD/folios/RA1234ABCD03/orders>; rel="PUT"; type="application/json"; title="updateFolioOrder"
Location: https://api.uat.foliofn.com/restapi/accounts/RA1234ABCD/folios/RA1234ABCD03/orders
Server: Sun GlassFish Enterprise Server v2.1.1
Transfer-Encoding: chunked
X-Powered-By: Servlet/2.5

[ {
    "folioOrderOid": "6917529027779555108",
    "folioOrderId": "10441RP4",
    "folioOid": "648518346341520193",
    "folioNumber": "RA1234ABCD03",
    "accountNumber": "RA1234ABCD",
    "dollarShareBasedIndicator": "D",
    "orderType": "W",
    "orderSubType": "M",
    "term": null,
    "commission": "0.00",
    "state": "F",
    "creationDate": "2013-12-03T05:00:00.000+0000",
    "executionDate": "2013-12-03T05:00:00.000+0000",
    "buyLimitPercent": "2.00000000",
    "sellLimitPercent": "2.00000000",
    "discretionary": false,
    "solicited": false,
    "reasonForTrade": "NS",
    "securityOrders": [{
        "securityOrderOid": "9151314443395316966",
        "side": "2",
        "security": {
            "ticker": "JCI",
            "cusip": "478366107",
            "id": null
        },
        "estimatedPrice": "0.000000",
        "filledPrice": "49.907432",
        "requestedDollarAmount": "4000.00000",
        "requestedPrice": "49.870000",
        "secFee": "0.07",
        "commission": "0.00",
        "state": "F",
        "limitPrice": "0.000000",
        "stopPrice": "0.000000",
        "modificationTimestamp": "2013-12-13T04:52:15.812+0000",
        "creationTimestamp": "2013-12-03T15:52:31.143+0000",
        "executionTimestamp": "2013-12-03T16:09:53.236+0000",
        "marketMakerExecutionTimestamp": null,
        "quoteTimestamp": "2013-12-03T15:35:56.000+0000",
        "dollarShareBasedIndicator": "D",
        "taxLotSelections": null,
        "securityOrderId": "10H7LF76",
        "estimatedDollarAmount": "0.00000",
        "estimatedShareAmount": "0.00000",
        "filledDollarAmount": "4000.00000",
        "filledShareAmount": "80.14838",
        "requestedShareAmount": "4000.00000",
        "stateReasonCode": "0"
    }],
    "requestedBuyDollarAmount": "0.00000",
    "requestedSellDollarAmount": "4000.00000",
    "estimatedBuyDollarAmount": "0.00000",
    "estimatedSellDollarAmount": "3999.19791",
    "filledBuyDollarAmount": "0.00000",
    "filledSellDollarAmount": "4000.00000",
    "totalCommission": "0.00",
    "totalFee": "0.07",
    "stateReasonCode": "0",
    "modificationTimestamp": "2013-12-13T04:52:15.788+0000",
    "taxlotReliefMethod": "WLFS",
    "taxlotReliefMethodLongTermTaxRate": "10.00000000",
    "taxlotReliefMethodShortTermTaxRate": "40.00000000",
    "tradeOriginatingMemberOid": "5260204364768781948",
    "scheduledWindowDatetime": "2013-12-03T16:00:00.000+0000",
    "creationMethod": "A"
}]


Change Log

05/11/2018

  1. Added creationMethod

Getting Started

REST APIs

Resources