-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsingleOrder.json
executable file
·83 lines (83 loc) · 2.45 KB
/
singleOrder.json
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
{
"$id": "https://raw.githubusercontent.com/lowcarbontrade/fix-reference/main/singleOrder.json",
"$schema": "https://json-schema.org/draft/2020-12/schema#",
"type": "object",
"properties": {
"Header": {
"$ref": "https://raw.githubusercontent.com/lowcarbontrade/fix-reference/main/header.json"
},
"Body": {
"type": "object",
"properties": {
"ClOrdID": {
"type": "string",
"description": "Unique identifier for Order as assigned by institution"
},
"HandlInst": {
"type": "string",
"description": "Instructions for order handling on Broker trading floor (2 = Automated execution order, public, Broker intervention OK)",
"enum": [
"2"
]
},
"Instrument": {
"$ref": "https://raw.githubusercontent.com/lowcarbontrade/fix-reference/main/instrument.json"
},
"Side": {
"type": "string",
"description": "Side of order (1 = buy, 2 = sell)",
"enum": [
"1",
"2"
]
},
"OrderQtyData": {
"$ref": "https://raw.githubusercontent.com/lowcarbontrade/fix-reference/main/orderQtyData.json"
},
"OrdType": {
"type": "string",
"description": "Order Type (1 = market, 2 = limit)",
"enum": [
"1",
"2"
]
},
"Price": {
"type": "number",
"description": "Price of a limit order",
"minimum": 0.1
},
"TimeInForce": {
"type": "string",
"description": "Time in force (1 = GTC)",
"enum": [
"1"
],
"default": "1"
},
"TransactTime": {
"type": "string",
"description": "Time of execution/order creation (always expressed in UTC (Universal Time Coordinated, also known as \"GMT\")",
"pattern": "\\b[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{6}Z\\b"
}
},
"required": [
"ClOrdID",
"HandlInst",
"Instrument",
"Side",
"OrderQtyData",
"OrdType",
"TransactTime"
]
},
"Trailer": {
"$ref": "https://raw.githubusercontent.com/lowcarbontrade/fix-reference/main/trailer.json"
}
},
"required": [
"Header",
"Body",
"Trailer"
]
}