Skip to content

Commit 9c08c7e

Browse files
committed
order enhancement
1 parent c0536b4 commit 9c08c7e

10 files changed

+812
-103
lines changed

data/order_response.jsonc

+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
//OrderGet:
2+
{
3+
"session": "'NORMAL' or 'AM' or 'PM' or 'SEAMLESS'",
4+
"duration": "'DAY' or 'GOOD_TILL_CANCEL' or 'FILL_OR_KILL'",
5+
"orderType": "'MARKET' or 'LIMIT' or 'STOP' or 'STOP_LIMIT' or 'TRAILING_STOP' or 'MARKET_ON_CLOSE' or 'EXERCISE' or 'TRAILING_STOP_LIMIT' or 'NET_DEBIT' or 'NET_CREDIT' or 'NET_ZERO'",
6+
"cancelTime": {
7+
"date": "string",
8+
"shortFormat": false
9+
},
10+
"complexOrderStrategyType": "'NONE' or 'COVERED' or 'VERTICAL' or 'BACK_RATIO' or 'CALENDAR' or 'DIAGONAL' or 'STRADDLE' or 'STRANGLE' or 'COLLAR_SYNTHETIC' or 'BUTTERFLY' or 'CONDOR' or 'IRON_CONDOR' or 'VERTICAL_ROLL' or 'COLLAR_WITH_STOCK' or 'DOUBLE_DIAGONAL' or 'UNBALANCED_BUTTERFLY' or 'UNBALANCED_CONDOR' or 'UNBALANCED_IRON_CONDOR' or 'UNBALANCED_VERTICAL_ROLL' or 'CUSTOM'",
11+
"quantity": 0,
12+
"filledQuantity": 0,
13+
"remainingQuantity": 0,
14+
"requestedDestination": "'INET' or 'ECN_ARCA' or 'CBOE' or 'AMEX' or 'PHLX' or 'ISE' or 'BOX' or 'NYSE' or 'NASDAQ' or 'BATS' or 'C2' or 'AUTO'",
15+
"destinationLinkName": "string",
16+
"releaseTime": "string",
17+
"stopPrice": 0,
18+
"stopPriceLinkBasis": "'MANUAL' or 'BASE' or 'TRIGGER' or 'LAST' or 'BID' or 'ASK' or 'ASK_BID' or 'MARK' or 'AVERAGE'",
19+
"stopPriceLinkType": "'VALUE' or 'PERCENT' or 'TICK'",
20+
"stopPriceOffset": 0,
21+
"stopType": "'STANDARD' or 'BID' or 'ASK' or 'LAST' or 'MARK'",
22+
"priceLinkBasis": "'MANUAL' or 'BASE' or 'TRIGGER' or 'LAST' or 'BID' or 'ASK' or 'ASK_BID' or 'MARK' or 'AVERAGE'",
23+
"priceLinkType": "'VALUE' or 'PERCENT' or 'TICK'",
24+
"price": 0,
25+
"taxLotMethod": "'FIFO' or 'LIFO' or 'HIGH_COST' or 'LOW_COST' or 'AVERAGE_COST' or 'SPECIFIC_LOT'",
26+
"orderLegCollection": [
27+
{
28+
"orderLegType": "'EQUITY' or 'OPTION' or 'INDEX' or 'MUTUAL_FUND' or 'CASH_EQUIVALENT' or 'FIXED_INCOME' or 'CURRENCY'",
29+
"legId": 0,
30+
"instrument": "The type <Instrument> has the following subclasses [Equity, FixedIncome, MutualFund, CashEquivalent, Option] descriptions are listed below\"",
31+
"instruction": "'BUY' or 'SELL' or 'BUY_TO_COVER' or 'SELL_SHORT' or 'BUY_TO_OPEN' or 'BUY_TO_CLOSE' or 'SELL_TO_OPEN' or 'SELL_TO_CLOSE' or 'EXCHANGE'",
32+
"positionEffect": "'OPENING' or 'CLOSING' or 'AUTOMATIC'",
33+
"quantity": 0,
34+
"quantityType": "'ALL_SHARES' or 'DOLLARS' or 'SHARES'"
35+
}
36+
],
37+
"activationPrice": 0,
38+
"specialInstruction": "'ALL_OR_NONE' or 'DO_NOT_REDUCE' or 'ALL_OR_NONE_DO_NOT_REDUCE'",
39+
"orderStrategyType": "'SINGLE' or 'OCO' or 'TRIGGER'",
40+
"orderId": 0,
41+
"cancelable": false,
42+
"editable": false,
43+
"status": "'AWAITING_PARENT_ORDER' or 'AWAITING_CONDITION' or 'AWAITING_MANUAL_REVIEW' or 'ACCEPTED' or 'AWAITING_UR_OUT' or 'PENDING_ACTIVATION' or 'QUEUED' or 'WORKING' or 'REJECTED' or 'PENDING_CANCEL' or 'CANCELED' or 'PENDING_REPLACE' or 'REPLACED' or 'FILLED' or 'EXPIRED'",
44+
"enteredTime": "string",
45+
"closeTime": "string",
46+
"tag": "string",
47+
"accountId": 0,
48+
"orderActivityCollection": [
49+
"The type <OrderActivity> has the following subclasses [Execution] descriptions are listed below"
50+
],
51+
"replacingOrderCollection": [
52+
{}
53+
],
54+
"childOrderStrategies": [
55+
{}
56+
],
57+
"statusDescription": "string"
58+
}

data/order_response_sub_classes.jsonc

+73
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
//The class <Instrument> has the
2+
//following subclasses:
3+
//-Equity
4+
//-FixedIncome
5+
//-MutualFund
6+
//-CashEquivalent
7+
//-Option
8+
//-OrderActivity
9+
10+
{
11+
"equity": {
12+
"assetType": "'EQUITY' or 'OPTION' or 'INDEX' or 'MUTUAL_FUND' or 'CASH_EQUIVALENT' or 'FIXED_INCOME' or 'CURRENCY'",
13+
"cusip": "string",
14+
"symbol": "string",
15+
"description": "string"
16+
},
17+
"fixed_income": {
18+
"assetType": "'EQUITY' or 'OPTION' or 'INDEX' or 'MUTUAL_FUND' or 'CASH_EQUIVALENT' or 'FIXED_INCOME' or 'CURRENCY'",
19+
"cusip": "string",
20+
"symbol": "string",
21+
"description": "string",
22+
"maturityDate": "string",
23+
"variableRate": 0,
24+
"factor": 0
25+
},
26+
"mutual_fund": {
27+
"assetType": "'EQUITY' or 'OPTION' or 'INDEX' or 'MUTUAL_FUND' or 'CASH_EQUIVALENT' or 'FIXED_INCOME' or 'CURRENCY'",
28+
"cusip": "string",
29+
"symbol": "string",
30+
"description": "string",
31+
"type": "'NOT_APPLICABLE' or 'OPEN_END_NON_TAXABLE' or 'OPEN_END_TAXABLE' or 'NO_LOAD_NON_TAXABLE' or 'NO_LOAD_TAXABLE'"
32+
},
33+
"cash_equivalent": {
34+
"assetType": "'EQUITY' or 'OPTION' or 'INDEX' or 'MUTUAL_FUND' or 'CASH_EQUIVALENT' or 'FIXED_INCOME' or 'CURRENCY'",
35+
"cusip": "string",
36+
"symbol": "string",
37+
"description": "string",
38+
"type": "'SAVINGS' or 'MONEY_MARKET_FUND'"
39+
},
40+
"option": {
41+
"assetType": "'EQUITY' or 'OPTION' or 'INDEX' or 'MUTUAL_FUND' or 'CASH_EQUIVALENT' or 'FIXED_INCOME' or 'CURRENCY'",
42+
"cusip": "string",
43+
"symbol": "string",
44+
"description": "string",
45+
"type": "'VANILLA' or 'BINARY' or 'BARRIER'",
46+
"putCall": "'PUT' or 'CALL'",
47+
"underlyingSymbol": "string",
48+
"optionMultiplier": 0,
49+
"optionDeliverables": [
50+
{
51+
"symbol": "string",
52+
"deliverableUnits": 0,
53+
"currencyType": "'USD' or 'CAD' or 'EUR' or 'JPY'",
54+
"assetType": "'EQUITY' or 'OPTION' or 'INDEX' or 'MUTUAL_FUND' or 'CASH_EQUIVALENT' or 'FIXED_INCOME' or 'CURRENCY'"
55+
}
56+
]
57+
},
58+
"order_acitivity": {
59+
"activityType": "'EXECUTION' or 'ORDER_ACTION'",
60+
"executionType": "'FILL'",
61+
"quantity": 0,
62+
"orderRemainingQuantity": 0,
63+
"executionLegs": [
64+
{
65+
"legId": 0,
66+
"quantity": 0,
67+
"mismarkedQuantity": 0,
68+
"price": 0,
69+
"time": "string"
70+
}
71+
]
72+
}
73+
}

0 commit comments

Comments
 (0)