-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathperformance.json
More file actions
342 lines (342 loc) · 14.4 KB
/
performance.json
File metadata and controls
342 lines (342 loc) · 14.4 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
{
"title": "Performance",
"category": "derived",
"docpath": "performances",
"introduction": [
"A Performance is a hierarchical collection of <a class=\"link\" href=\"/documentation/accounts\">Account</a> balances describing the financial performance of an <a class=\"link\" href=\"/documentation/entities\">Entity</a> over a period of time. They are generic representations of popular accounting constructs known as the 'Income Statement', 'Profit & Loss', or 'Statement of Financial Performance'.",
"The Peformance object is jurisdiction agnostic, and obeys simple double-entry accounting rules. They list income and expense, each nesting its own children.",
"You can retrieve a Performance denominated in an arbitrary <a class=\"link\" href=\"/documentation/unit\">Global Unit</a> or <a class=\"link\" href=\"/documentation/custom_unit\">Custom Unit</a>. Amatino will automatically calculate the implicit gain or loss relative to each Account's underlying denomination and include those gains and losses in each Account balance.",
"A Performance may be retrieved to an arbitrary depth. Depth in the Performance context is the number of levels down the Account hierarchy Amatino should go when retrieving the Performance. For example, if a top-level Account has child accounts three layers deep, then specifying a depth of three will retrieve all those children.",
"Regardless of the depth you specify, Amatino will calculate recursive balances at full depth."
],
"object": {
"name": "Performance",
"exposition": "Performance objects are returned with the following structure",
"form": {
"root": "object",
"components": [
{
"key": {
"value": "\"entity_id\"",
"mono": true
},
"type": {
"value": "JSON String",
"mono": false
},
"description": {
"value": "The identifer of the <a class=\"link\" href=\"\\documentation\\entities\">Entity</a> this Performance describes",
"mono": false
},
"example": {
"value": "\"oB3cjSNKXklkJ4Tb\"",
"mono": true
}
},
{
"key": {
"value": "\"start_time\"",
"mono": true
},
"type": {
"value": "JSON String",
"mono": false
},
"description": {
"value": "Beginning of the period over which performance is measured, in the format YYYY-MM-DD_HH24:MI:SS.US, in UTC.",
"mono": false
},
"example": {
"value": "\"2017-01-01_00:00:00.00000\"",
"mono": true
}
},
{
"key": {
"value": "\"end_time\"",
"mono": true
},
"type": {
"value": "JSON String",
"mono": false
},
"description": {
"value": "End of the period over which performance is measured, in the format YYYY-MM-DD_HH24:MI:SS.US, in UTC.",
"mono": false
},
"example": {
"value": "\"2018-01-01_00:00:00.00000\"",
"mono": true
}
},
{
"key": {
"value": "\"generated_time\"",
"mono": true
},
"type": {
"value": "JSON String",
"mono": false
},
"description": {
"value": "Time that this Performance was computed, in the format YYYY-MM-DD_HH24:MI:SS.US, in UTC",
"mono": false
},
"example": {
"value": "\"2018-05-02_05:01:54.72941\"",
"mono": true
}
},
{
"key": {
"value": "\"global_unit_denomination\"",
"mono": true
},
"description": {
"value": "The id of the global unit in which this Performance is denominated, if applicable",
"mono": false
},
"type": {
"value": "JSON Number or JSON Null",
"mono": false
},
"example": {
"value": "5",
"mono": true
}
},
{
"key": {
"value": "\"custom_unit_denomination\"",
"mono": true
},
"description": {
"value": "The id of the custom unit in which this Performance is denominated, if applicable.",
"mono": false
},
"type": {
"value": "JSON Number or JSON Null",
"mono": false
},
"example": {
"value": "null",
"mono": true
}
},
{
"key" :{
"value": "\"income\"",
"mono": true
},
"description": {
"value": "A list of <a class=\"link\" href=\"/documentation/trees/node\">Tree Node</a> objects representing income Accounts",
"mono": false
},
"type": {
"value": "JSON Array",
"mono": false
},
"list objects": {
"value": "Tree Node",
"mono": false,
"link": "/documentation/trees/node"
},
"example": {
"value": "See <a href=\"/documentation/trees/node\" class=\"link\">Tree Nodes</a>",
"mono": false
}
},
{
"key" :{
"value": "\"expenses\"",
"mono": true
},
"description": {
"value": "A list of <a class=\"link\" href=\"/documentation/trees/node\">Tree Node</a> objects representing expense Accounts",
"mono": false
},
"type": {
"value": "JSON Array",
"mono": false
},
"list objects": {
"value": "Tree Node",
"mono": false,
"link": "/documentation/trees/node"
},
"example": {
"value": "See <a href=\"/documentation/trees/node\" class=\"link\">Tree Nodes</a>",
"mono": false
}
},
{
"key" :{
"value": "\"depth\"",
"mono": true
},
"description": {
"value": "The maximum Account depth to which this Performance recurses",
"mono": false
},
"type": {
"value": "JSON Number",
"mono": false
},
"example": {
"value": "3",
"mono": true
}
}
]
}
},
"actions": [
{
"name": "Retrieve",
"method": "GET",
"path": "/performances",
"description": "Retrieve a Performance",
"return_root_type": "JSON Object",
"required_json_data": {
"root": "object",
"components": [
{
"key": {
"value": "\"start_time\"",
"mono": true
},
"type": {
"value": "JSON String",
"mono": false
},
"description": {
"value": "Beginning of the period over which performance is measured, in the format YYYY-MM-DD_HH24:MI:SS.US, in UTC, exclusive (>)",
"mono": false
},
"example": {
"value": "\"2017-01-01_00:00:00.00000\"",
"mono": true
}
},
{
"key": {
"value": "\"end_time\"",
"mono": true
},
"type": {
"value": "JSON String",
"mono": false
},
"description": {
"value": "End of the period over which performance is measured, in the format YYYY-MM-DD_HH24:MI:SS.US, in UTC, inclusive (<=)",
"mono": false
},
"example": {
"value": "\"2018-01-01_00:00:00.00000\"",
"mono": true
}
},
{
"key": {
"value": "\"global_unit_denomination\"",
"mono": true
},
"description": {
"value": "The id of the global unit denomination in which you would like to view the Tree. Specify either global or custom unit denomination.",
"mono": false
},
"type": {
"value": "JSON Number or JSON Null",
"mono": false
},
"example": {
"value": "5",
"mono": true
},
"source": {
"value": "/units/list",
"mono": false,
"link": "/documentation/unit_list"
}
},
{
"key": {
"value": "\"custom_unit_denomination\"",
"mono": true
},
"description": {
"value": "The id of the custom unit in which you would like to view the Ledger, if desired. Specify either global or custom unit denomination",
"mono": false
},
"type": {
"value": "JSON Number or JSON Null",
"mono": false
},
"example": {
"value": "null",
"mono": true
},
"source": {
"value": "/custom_units/list",
"mono": false,
"link": "/documentation/custom_unit_list"
}
},
{
"key": {
"value": "\"depth\"",
"mono": true
},
"description": {
"value": "The number of levels of Accounts you wish the Position to include. Specify null for full depth.",
"mono": false
},
"type": {
"value": "JSON Number or JSON Null",
"mono": false
},
"example": {
"value": "3",
"mono": true
},
"max value": {
"value": 4096,
"mono": true
},
"min value": {
"value": 1,
"mono": true
}
}
]
},
"required_headers": [
{
"key": "X-Signature",
"content": "Your <a class=\"link\" href=\"/documentation/sessions\">Session</a> signature",
"example": "\"yxATCPRKAAXHNiPctNQPHEGGVJF\"..."
},
{
"key": "X-Session-ID",
"content": "An an integer <a class=\"link\" href=\"/documentation/sessions\">Session</a> ID",
"example": 7449059267091272858
}
],
"required_url_parameters": [
{
"key": "entity_id",
"type": "string",
"description": "The entity id of the Entity for which you wish to retrieve a Performance",
"example": "oB3cjSNKXklkJ4Tb",
"repeatable": false
}
],
"returns": {
"root": "object",
"components": {
"object": "tree"
}
}
}
]
}