-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathaccount_orders_openapi.yaml
More file actions
2651 lines (2635 loc) · 71 KB
/
account_orders_openapi.yaml
File metadata and controls
2651 lines (2635 loc) · 71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
openapi: 3.0.1
info:
title: Trader API - Account Access and User Preferences
description: Schwab Trader API access to Account, Order entry and User Preferences
version: 1.0.0
contact:
name: Schwab Trader API team
email: TraderAPI@Schwab.com
servers:
- url: https://api.schwabapi.com/trader/v1
security:
- oauth:
- read
- write
tags:
- name: Accounts
- name: Orders
- name: Transactions
paths:
/accounts/accountNumbers:
get:
tags:
- Accounts
summary: Get list of account numbers and their encrypted values
description: >-
Account numbers in plain text cannot be used outside of headers or
request/response bodies. As the first step consumers must invoke this
service to retrieve the list of plain text/encrypted value pairs, and
use encrypted account values for all subsequent calls for any
accountNumber request.
operationId: getAccountNumbers
responses:
'200':
description: List of valid "accounts", matching the provided input parameters.
headers:
Schwab-Client-CorrelId:
$ref: '#/components/headers/Schwab-Client-CorrelId'
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/AccountNumberHash'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/NotAuthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'500':
$ref: '#/components/responses/InternalServerError'
'503':
$ref: '#/components/responses/ServiceUnavailable'
/accounts:
get:
tags:
- Accounts
summary: Get linked account(s) balances and positions for the logged in user.
description: >-
All the linked account information for the user logged in. The
balances on these accounts are displayed by default however the
positions
on these accounts will be displayed based on the "positions" flag.
operationId: getAccounts
parameters:
- name: fields
in: query
description: >-
This allows one to determine which fields they want returned.
Possible value in this String can be:
<br><code>positions</code><br>
Example:<br><code>fields=positions</code>
schema:
type: string
responses:
'200':
description: List of valid "accounts", matching the provided input parameters.
headers:
Schwab-Client-CorrelId:
$ref: '#/components/headers/Schwab-Client-CorrelId'
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Account'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/NotAuthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'500':
$ref: '#/components/responses/InternalServerError'
'503':
$ref: '#/components/responses/ServiceUnavailable'
/accounts/{accountNumber}:
get:
tags:
- Accounts
summary: Get a specific account balance and positions for the logged in user.
description: |-
Specific account information with balances and positions.
The balance information on these accounts is displayed by default but
Positions will be returned based on the "positions" flag.
operationId: getAccount
parameters:
- name: accountNumber
in: path
description: The encrypted ID of the account
required: true
schema:
type: string
- name: fields
in: query
description: >-
This allows one to determine
which fields they want returned. Possible values in this String can
be:
<br><code>positions</code><br>
Example:<br><code>fields=positions</code>
schema:
type: string
responses:
'200':
description: A valid account, matching the provided input parameters
headers:
Schwab-Client-CorrelId:
$ref: '#/components/headers/Schwab-Client-CorrelId'
content:
application/json:
schema:
$ref: '#/components/schemas/Account'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/NotAuthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'500':
$ref: '#/components/responses/InternalServerError'
'503':
$ref: '#/components/responses/ServiceUnavailable'
/accounts/{accountNumber}/orders:
get:
tags:
- Orders
summary: Get all orders for a specific account.
description: >-
All orders for a specific account. Orders retrieved can be filtered
based on input parameters below.
operationId: getOrdersByPathParam
parameters:
- name: accountNumber
in: path
description: The encrypted ID of the account
required: true
schema:
type: string
- name: maxResults
in: query
description: The max number of orders to retrieve. Default is 3000.
schema:
type: integer
format: int64
- name: fromEnteredTime
in: query
description: >-
Specifies that no orders entered before this time should be
returned.
Valid ISO-8601 formats are :<br>
<code>yyyy-MM-dd'T'HH:mm:ss.SSSZ</code>
Date must be within 60 days from today's date. 'toEnteredTime' must
also be set.
required: true
schema:
type: string
- name: toEnteredTime
in: query
description: >-
Specifies that no orders entered after this time should be
returned.Valid
ISO-8601 formats are :<br> <code>yyyy-MM-dd'T'HH:mm:ss.SSSZ</code>.
'fromEnteredTime' must also be set.
required: true
schema:
type: string
- name: status
in: query
description: Specifies that only orders of this status should be returned.
schema:
$ref: '#/components/schemas/apiOrderStatus'
responses:
'200':
description: >-
A List of orders for the account, matching the provided input
parameters
headers:
Schwab-Client-CorrelId:
$ref: '#/components/headers/Schwab-Client-CorrelId'
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Order'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/NotAuthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'500':
$ref: '#/components/responses/InternalServerError'
'503':
$ref: '#/components/responses/ServiceUnavailable'
post:
tags:
- Orders
summary: Place order for a specific account.
description: Place an order for a specific account.
operationId: placeOrder
parameters:
- name: accountNumber
in: path
description: The encrypted ID of the account
required: true
schema:
type: string
requestBody:
description: The new Order Object.
content:
application/json:
schema:
$ref: '#/components/schemas/OrderRequest'
required: true
responses:
'201':
description: Empty response body if an order was successfully placed/created.
headers:
Schwab-Client-CorrelId:
$ref: '#/components/headers/Schwab-Client-CorrelId'
Location:
description: |-
Link to the newly created order if order was successfully
created.
schema:
type: string
content: {}
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/NotAuthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'500':
$ref: '#/components/responses/InternalServerError'
'503':
$ref: '#/components/responses/ServiceUnavailable'
x-codegen-request-body-name: body
/accounts/{accountNumber}/orders/{orderId}:
get:
tags:
- Orders
summary: Get a specific order by its ID, for a specific account
description: Get a specific order by its ID, for a specific account
operationId: getOrder
parameters:
- name: accountNumber
in: path
description: The encrypted ID of the account
required: true
schema:
type: string
- name: orderId
in: path
description: The ID of the order being retrieved.
required: true
schema:
type: integer
format: int64
responses:
'200':
description: An order object, matching the input parameters
headers:
Schwab-Client-CorrelId:
$ref: '#/components/headers/Schwab-Client-CorrelId'
content:
application/json:
schema:
$ref: '#/components/schemas/Order'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/NotAuthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'500':
$ref: '#/components/responses/InternalServerError'
'503':
$ref: '#/components/responses/ServiceUnavailable'
delete:
tags:
- Orders
summary: Cancel an order for a specific account
description: Cancel a specific order for a specific account<br>
operationId: cancelOrder
parameters:
- name: accountNumber
in: path
description: The encrypted ID of the account
required: true
schema:
type: string
- name: orderId
in: path
description: The ID of the order being cancelled
required: true
schema:
type: integer
format: int64
responses:
'200':
description: Empty response body if an order was successfully canceled.
headers:
Schwab-Client-CorrelId:
$ref: '#/components/headers/Schwab-Client-CorrelId'
content: {}
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/NotAuthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'500':
$ref: '#/components/responses/InternalServerError'
'503':
$ref: '#/components/responses/ServiceUnavailable'
put:
tags:
- Orders
summary: Replace order for a specific account
description: >-
Replace an existing order for an account. The existing order will be
replaced by the new order. Once replaced, the old order
will be canceled and a new order will be created.
operationId: replaceOrder
parameters:
- name: accountNumber
in: path
description: The encrypted ID of the account
required: true
schema:
type: string
- name: orderId
in: path
description: The ID of the order being retrieved.
required: true
schema:
type: integer
format: int64
requestBody:
description: The Order Object.
content:
application/json:
schema:
$ref: '#/components/schemas/OrderRequest'
required: true
responses:
'201':
description: Empty response body if an order was successfully replaced/created.
headers:
Schwab-Client-CorrelId:
$ref: '#/components/headers/Schwab-Client-CorrelId'
Location:
description: |-
Link to the newly created order if order was successfully
created.
schema:
type: string
content: {}
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/NotAuthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'500':
$ref: '#/components/responses/InternalServerError'
'503':
$ref: '#/components/responses/ServiceUnavailable'
x-codegen-request-body-name: body
/orders:
get:
tags:
- Orders
summary: Get all orders for all accounts
description: Get all orders for all accounts<br>
operationId: getOrdersByQueryParam
parameters:
- name: maxResults
in: query
description: The max number of orders to retrieve. Default is 3000.
schema:
type: integer
format: int64
- name: fromEnteredTime
in: query
description: >-
Specifies that no orders entered before this time should be
returned. Valid ISO-8601 formats are-
yyyy-MM-dd'T'HH:mm:ss.SSSZ Date must be within 60 days from today's
date.
'toEnteredTime' must also be set.
required: true
schema:
type: string
- name: toEnteredTime
in: query
description: >-
Specifies that no orders entered after this time should be
returned.Valid ISO-8601 formats are -
yyyy-MM-dd'T'HH:mm:ss.SSSZ. 'fromEnteredTime' must also be set.
required: true
schema:
type: string
- name: status
in: query
description: Specifies that only orders of this status should be returned.
schema:
$ref: '#/components/schemas/apiOrderStatus'
responses:
'200':
description: |-
A List of orders for the specified account or if its not mentioned,
for all the linked accounts, matching the provided input parameters.
headers:
Schwab-Client-CorrelId:
$ref: '#/components/headers/Schwab-Client-CorrelId'
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Order'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/NotAuthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'500':
$ref: '#/components/responses/InternalServerError'
'503':
$ref: '#/components/responses/ServiceUnavailable'
/accounts/{accountNumber}/previewOrder:
post:
tags:
- Orders
summary: Preview order for a specific account. **Coming Soon**.
description: Preview an order for a specific account.
operationId: previewOrder
parameters:
- name: accountNumber
in: path
description: The encrypted ID of the account
required: true
schema:
type: string
requestBody:
description: The Order Object.
content:
application/json:
schema:
$ref: '#/components/schemas/PreviewOrder'
required: true
responses:
'200':
description: An order object, matching the input parameters
headers:
Schwab-Client-CorrelId:
$ref: '#/components/headers/Schwab-Client-CorrelId'
content:
application/json:
schema:
$ref: '#/components/schemas/PreviewOrder'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/NotAuthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'500':
$ref: '#/components/responses/InternalServerError'
'503':
$ref: '#/components/responses/ServiceUnavailable'
/accounts/{accountNumber}/transactions:
get:
tags:
- Transactions
summary: Get all transactions information for a specific account.
description: >-
All transactions for a specific account. Maximum transactions in
response is 3000.
operationId: getTransactionsByPathParam
parameters:
- name: accountNumber
in: path
description: The encrypted ID of the account
required: true
schema:
type: string
- name: startDate
in: query
description: >-
Specifies that no transactions entered before this time should be
returned.
Valid ISO-8601 formats are :<br>
<code>yyyy-MM-dd'T'HH:mm:ss.SSSZ</code>
Date must be within 60 days from today's date. 'endDate' must also
be set.
required: true
schema:
type: string
- name: endDate
in: query
description: >-
Specifies that no transactions entered after this time should be
returned.Valid
ISO-8601 formats are :<br> <code>yyyy-MM-dd'T'HH:mm:ss.SSSZ</code>.
'startDate' must also be set.
required: true
schema:
type: string
- name: symbol
in: query
description: >-
It filters all the transaction activities based on the symbol
specified. <u>NOTE:</u> If there is any special character in the
symbol, please send th encoded value.
schema:
type: string
- name: types
in: query
description: Specifies that only transactions of this status should be returned.
required: true
schema:
$ref: '#/components/schemas/TransactionType'
responses:
'200':
description: |-
A List of orders for the account, matching the provided input
parameters
headers:
Schwab-Client-CorrelId:
$ref: '#/components/headers/Schwab-Client-CorrelId'
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Transaction'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/NotAuthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'500':
$ref: '#/components/responses/InternalServerError'
'503':
$ref: '#/components/responses/ServiceUnavailable'
/accounts/{accountNumber}/transactions/{transactionId}:
get:
tags:
- Transactions
summary: Get specific transaction information for a specific account
description: Get specific transaction information for a specific account
operationId: getTransactionsById
parameters:
- name: accountNumber
in: path
description: The encrypted ID of the account
required: true
schema:
type: string
- name: transactionId
in: path
description: The ID of the transaction being retrieved.
required: true
schema:
type: integer
format: int64
responses:
'200':
description: >-
A List of orders for the account, matching the provided input
parameters
headers:
Schwab-Client-CorrelId:
$ref: '#/components/headers/Schwab-Client-CorrelId'
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Transaction'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/NotAuthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'500':
$ref: '#/components/responses/InternalServerError'
'503':
$ref: '#/components/responses/ServiceUnavailable'
/userPreference:
get:
tags:
- UserPreference
summary: Get user preference information for the logged in user.
description: Get user preference information for the logged in user.
operationId: getUserPreference
responses:
'200':
description: List of user preference values.
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/UserPreference'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/NotAuthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'500':
$ref: '#/components/responses/InternalServerError'
'503':
$ref: '#/components/responses/ServiceUnavailable'
components:
securitySchemes:
oauth:
type: oauth2
flows:
authorizationCode:
authorizationUrl: >-
https://api.schwabapi.com/v1/oauth/authorize?response_type=code&client_id=1wzwOrhivb2PkR1UCAUVTKYqC4MTNYlj&scope=readonly&redirect_uri=https://developer.schwab.com/oauth2-redirect.html
tokenUrl: https://api.schwabapi.com/v1/oauth/token
scopes: {}
parameters:
ThirdPartyId:
name: ThirdPartyId
in: header
description: The ID of the registered third party application
required: true
schema:
type: string
example: 8e0744d6-c9c3-490e-9d00-2c62de9275f3
Accept:
name: Accept
in: header
description: application/json
required: true
schema:
type: string
example: application/json
ContentType:
name: Content-Type
in: header
description: application/json
required: true
schema:
type: string
example: application/json
Schwab-Client-Channel:
name: Schwab-Client-Channel
in: header
description: Channel name. e.g- GW
required: true
schema:
type: string
example: GW
Schwab-Client-CorrelId:
name: Schwab-Client-CorrelId
in: header
description: Correlation Id. Auto generated
schema:
type: string
example: e1a8f21f-c08c-4a3b-b721-3219e391c415
Schwab-Resource-Version:
name: Schwab-Resource-Version
in: header
description: version. e.g- 1.0
required: false
schema:
type: string
Schwab-Client-AppId:
name: Schwab-Client-AppId
in: header
description: schwab appId. e.g- AD00007919
required: true
schema:
type: string
example: AD00007919
Schwab-RRBus-PilotRollout:
name: Schwab-RRBus-PilotRollout
in: header
required: true
schema:
type: string
example: Region=TUP
headers:
Schwab-Client-CorrelId:
description: Correlation Id. Auto generated
schema:
type: string
responses:
BadRequest:
description: An error message indicating the validation problem with the request.
headers:
Schwab-Client-CorrelID:
$ref: '#/components/headers/Schwab-Client-CorrelId'
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceError'
NotAuthorized:
description: >-
An error message indicating either authorization token is invalid or
there are no accounts the caller is allowed to view or use for trading
that are registered with the provided third party application
headers:
Schwab-Client-CorrelID:
$ref: '#/components/headers/Schwab-Client-CorrelId'
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceError'
Forbidden:
description: >-
An error message indicating the caller is forbidden from accessing this
service
headers:
Schwab-Client-CorrelID:
$ref: '#/components/headers/Schwab-Client-CorrelId'
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceError'
NotFound:
description: An error message indicating the resource is not found
headers:
Schwab-Client-CorrelID:
$ref: '#/components/headers/Schwab-Client-CorrelId'
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceError'
InternalServerError:
description: An error message indicating there was an unexpected server error
headers:
Schwab-Client-CorrelID:
$ref: '#/components/headers/Schwab-Client-CorrelId'
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceError'
ServiceUnavailable:
description: An error message indicating server has a temporary problem responding
headers:
Schwab-Client-CorrelID:
$ref: '#/components/headers/Schwab-Client-CorrelId'
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceError'
schemas:
AccountNumberHash:
type: object
properties:
accountNumber:
type: string
hashValue:
type: string
session:
type: string
enum:
- NORMAL
- AM
- PM
- SEAMLESS
duration:
type: string
enum:
- DAY
- GOOD_TILL_CANCEL
- FILL_OR_KILL
- IMMEDIATE_OR_CANCEL
- END_OF_WEEK
- END_OF_MONTH
- NEXT_END_OF_MONTH
- UNKNOWN
orderType:
type: string
enum:
- MARKET
- LIMIT
- STOP
- STOP_LIMIT
- TRAILING_STOP
- CABINET
- NON_MARKETABLE
- MARKET_ON_CLOSE
- EXERCISE
- TRAILING_STOP_LIMIT
- NET_DEBIT
- NET_CREDIT
- NET_ZERO
- LIMIT_ON_CLOSE
- UNKNOWN
orderTypeRequest:
description: >-
Same as orderType, but does not have UNKNOWN since this type is not
allowed as an input
type: string
enum:
- MARKET
- LIMIT
- STOP
- STOP_LIMIT
- TRAILING_STOP
- CABINET
- NON_MARKETABLE
- MARKET_ON_CLOSE
- EXERCISE
- TRAILING_STOP_LIMIT
- NET_DEBIT
- NET_CREDIT
- NET_ZERO
- LIMIT_ON_CLOSE
complexOrderStrategyType:
type: string
enum:
- NONE
- COVERED
- VERTICAL
- BACK_RATIO
- CALENDAR
- DIAGONAL
- STRADDLE
- STRANGLE
- COLLAR_SYNTHETIC
- BUTTERFLY
- CONDOR
- IRON_CONDOR
- VERTICAL_ROLL
- COLLAR_WITH_STOCK
- DOUBLE_DIAGONAL
- UNBALANCED_BUTTERFLY
- UNBALANCED_CONDOR
- UNBALANCED_IRON_CONDOR
- UNBALANCED_VERTICAL_ROLL
- MUTUAL_FUND_SWAP
- CUSTOM
requestedDestination:
type: string
enum:
- INET
- ECN_ARCA
- CBOE
- AMEX
- PHLX
- ISE
- BOX
- NYSE
- NASDAQ
- BATS
- C2
- AUTO
stopPriceLinkBasis:
type: string
enum:
- MANUAL
- BASE
- TRIGGER
- LAST
- BID
- ASK
- ASK_BID
- MARK
- AVERAGE
stopPriceLinkType:
type: string
enum:
- VALUE
- PERCENT
- TICK
stopPriceOffset:
type: number
format: double
stopType:
type: string
enum:
- STANDARD
- BID
- ASK
- LAST
- MARK
priceLinkBasis:
type: string
enum:
- MANUAL
- BASE
- TRIGGER
- LAST
- BID
- ASK
- ASK_BID
- MARK
- AVERAGE
priceLinkType:
type: string
enum:
- VALUE
- PERCENT
- TICK
taxLotMethod:
type: string
enum:
- FIFO
- LIFO
- HIGH_COST
- LOW_COST
- AVERAGE_COST
- SPECIFIC_LOT
- LOSS_HARVESTER
specialInstruction:
type: string
enum:
- ALL_OR_NONE
- DO_NOT_REDUCE
- ALL_OR_NONE_DO_NOT_REDUCE
orderStrategyType:
type: string
enum:
- SINGLE
- CANCEL
- RECALL
- PAIR
- FLATTEN
- TWO_DAY_SWAP
- BLAST_ALL
- OCO
- TRIGGER