|
262 | 262 | (let ((sxml (options->sxml uuid options "latest"))) |
263 | 263 | (test-equal "BUY 100 SPY" |
264 | 264 | '("07/01/19" "Buy SPY" "100. SPY" "100. SPY" "Open Long" "CAD" |
265 | | - "C$1.0000" "C$20,000.00" "C$9.95" "C$20,000.00" "C$9.95" |
| 265 | + "C$1.00" "C$20,000.00" "C$9.95" "C$20,000.00" "C$9.95" |
266 | 266 | "C$20,009.95" "C$0.00" "C$0.00" "C$0.00") |
267 | 267 | (sxml->table-row-col sxml 1 1 #f)) |
268 | 268 |
|
269 | 269 | (test-equal "BUY 50 SPY" |
270 | | - '("12/11/19" "Buy SPY" "50. SPY" "150. SPY" "Buy" "CAD" "C$1.0000" |
| 270 | + '("12/11/19" "Buy SPY" "50. SPY" "150. SPY" "Buy" "CAD" "C$1.00" |
271 | 271 | "C$16,000.00" "C$9.95" "C$16,000.00" "C$9.95" "C$36,019.90" |
272 | 272 | "C$200.10" "C$0.00" "C$0.00" "C$0.00") |
273 | 273 | (sxml->table-row-col sxml 1 2 #f)) |
274 | 274 |
|
275 | 275 | (test-equal "Sell 75 SPY" |
276 | | - '("03/18/20" "Sell SPY" "-75. SPY" "75. SPY" "Sell" "CAD" "C$1.0000" |
| 276 | + '("03/18/20" "Sell SPY" "-75. SPY" "75. SPY" "Sell" "CAD" "C$1.00" |
277 | 277 | "C$12,000.00" "C$9.95" "C$12,000.00" "C$9.95" "C$18,009.95" |
278 | 278 | "C$240.13" "C$18,009.95" "C$11,990.05" "-C$6,019.90" |
279 | 279 | "-C$6,009.95" "-C$6,009.95" "-C$6,009.95" "-C$6,019.90" "-C$6,019.90") |
280 | 280 | (sxml->table-row-col sxml 1 3 #f)) |
281 | 281 |
|
282 | 282 | (test-equal "BUY 250 SPY" |
283 | | - '("04/01/20" "Buy SPY" "250. SPY" "325. SPY" "Buy" "CAD" "C$1.0000" |
| 283 | + '("04/01/20" "Buy SPY" "250. SPY" "325. SPY" "Buy" "CAD" "C$1.00" |
284 | 284 | "C$42,000.00" "C$9.95" "C$42,000.00" "C$9.95" "C$60,019.90" |
285 | 285 | "C$240.13" "-C$6,009.95" "-C$6,019.90" "-C$6,019.90") |
286 | 286 | (sxml->table-row-col sxml 1 4 #f)) |
287 | 287 |
|
288 | 288 | (test-equal "Return Capital $2500" |
289 | 289 | '("04/16/20" "Return of Capital" "0. SPY" "325. SPY" "Return of capital" |
290 | | - "CAD" "C$1.0000" "-C$2,500.00" "-C$2,500.00" "C$57,519.90" |
| 290 | + "CAD" "C$1.00" "-C$2,500.00" "-C$2,500.00" "C$57,519.90" |
291 | 291 | "C$184.68" "-C$6,009.95" "-C$6,019.90" "-C$6,019.90") |
292 | 292 | (sxml->table-row-col sxml 1 5 #f)) |
293 | 293 |
|
294 | 294 | (test-equal "BUY 125 SPY" |
295 | | - '("05/02/20" "Buy spy" "125. SPY" "450. SPY" "Buy" "CAD" "C$1.0000" |
| 295 | + '("05/02/20" "Buy spy" "125. SPY" "450. SPY" "Buy" "CAD" "C$1.00" |
296 | 296 | "C$47,500.00" "C$0.00" "C$47,500.00" "C$0.00" "C$105,019.90" |
297 | 297 | "C$176.98" "-C$6,009.95" "-C$6,019.90" "-C$6,019.90") |
298 | 298 | (sxml->table-row-col sxml 1 6 #f)) |
299 | 299 |
|
300 | 300 | (test-equal "2:1 split" |
301 | 301 | ' ("05/11/20" "stock split" "450. SPY" "900. SPY" "Stock split" |
302 | | - "CAD" "C$1.0000" "C$105,019.90" "C$233.38" "-C$6,009.95" |
| 302 | + "CAD" "C$1.00" "C$105,019.90" "C$233.38" "-C$6,009.95" |
303 | 303 | "-C$6,019.90" "-C$6,019.90") |
304 | 304 | (sxml->table-row-col sxml 1 7 #f)) |
305 | 305 |
|
306 | 306 | (test-equal "sell 135 SPY" |
307 | | - '("05/21/20" "Sell SPY" "-135. SPY" "765. SPY" "Sell" "CAD" "C$1.0000" |
| 307 | + '("05/21/20" "Sell SPY" "-135. SPY" "765. SPY" "Sell" "CAD" "C$1.00" |
308 | 308 | "C$21,500.00" "C$9.95" "C$21,500.00" "C$9.95" "C$89,266.92" |
309 | 309 | "C$116.69" "C$15,752.98" "C$21,490.05" "C$5,737.06" |
310 | 310 | "C$5,747.02" "C$5,747.02" "-C$262.94" "-C$282.84" "-C$282.84") |
311 | 311 | (sxml->table-row-col sxml 1 8 #f)) |
312 | 312 |
|
313 | 313 | (test-equal "BUY 150 SPY" |
314 | | - '("06/03/20" "Buy spy" "150. SPY" "915. SPY" "Buy" "CAD" "C$1.0000" |
| 314 | + '("06/03/20" "Buy spy" "150. SPY" "915. SPY" "Buy" "CAD" "C$1.00" |
315 | 315 | "C$21,000.00" "C$0.00" "C$21,000.00" "C$0.00" "C$110,266.92" |
316 | 316 | "C$116.69" "-C$262.94" "-C$282.84" "-C$282.84") |
317 | 317 | (sxml->table-row-col sxml 1 9 #f)) |
318 | 318 |
|
319 | 319 | (test-equal "sell 915 SPY close long" |
320 | 320 | '("06/10/20" "Sell SPY" "-915. SPY" "0. SPY" "Sell" "CAD" |
321 | | - "C$1.0000" "C$128,100.00" "C$9.95" "C$128,100.00" "C$9.95" |
| 321 | + "C$1.00" "C$128,100.00" "C$9.95" "C$128,100.00" "C$9.95" |
322 | 322 | "C$0.00" "C$120.51" "C$110,266.92" "C$128,090.05" "C$17,823.14" |
323 | 323 | "C$17,833.08" "C$17,833.08" "C$17,570.15" "C$17,540.30" "C$17,540.30") |
324 | 324 | (sxml->table-row-col sxml 1 10 #f)) |
325 | 325 |
|
326 | 326 | (test-equal "short-sell 85 SPY" |
327 | 327 | '("06/10/20" "Sell SPY Short" "-85. SPY" "-85. SPY" "Open Short" |
328 | | - "CAD" "C$1.0000" "-C$11,900.00" "C$9.95" "-C$11,900.00" "C$9.95" |
| 328 | + "CAD" "C$1.00" "-C$11,900.00" "C$9.95" "-C$11,900.00" "C$9.95" |
329 | 329 | "-C$11,890.05" "C$17,570.15" "C$17,540.30" "C$17,540.30") |
330 | 330 | (sxml->table-row-col sxml 1 11 #f)) |
331 | 331 |
|
332 | 332 | (test-equal "short-sell 65 SPY" |
333 | 333 | '("06/15/20" "Sell SPY Short" "-65. SPY" "-150. SPY" "Short Sell" |
334 | | - "CAD" "C$1.0000" "-C$11,050.00" "C$9.95" "-C$11,050.00" "C$9.95" |
| 334 | + "CAD" "C$1.00" "-C$11,050.00" "C$9.95" "-C$11,050.00" "C$9.95" |
335 | 335 | "-C$22,930.10" "C$139.88" "C$17,570.15" "C$17,540.30" "C$17,540.30") |
336 | 336 | (sxml->table-row-col sxml 1 12 #f)) |
337 | 337 |
|
338 | 338 | (test-equal "buy 50 SPY short" |
339 | 339 | '("06/18/20" "Buy SPY Close Short" "50. SPY" "-100. SPY" "Cover Buy" |
340 | | - "CAD" "C$1.0000" "-C$5,000.00" "C$9.95" "-C$5,000.00" "C$9.95" |
| 340 | + "CAD" "C$1.00" "-C$5,000.00" "C$9.95" "-C$5,000.00" "C$9.95" |
341 | 341 | "-C$15,286.73" "C$152.87" "-C$7,643.37" "-C$5,009.95" "C$2,633.42" |
342 | 342 | "C$2,643.37" "C$2,643.37" "C$20,213.52" "C$20,173.72" "C$20,173.72") |
343 | 343 | (sxml->table-row-col sxml 1 13 #f)) |
344 | 344 |
|
345 | 345 | (test-equal "BUY 100 SPY close short" |
346 | 346 | '("06/20/20" "Buy SPY Close Short" "100. SPY" "0. SPY" "Cover Buy" |
347 | | - "CAD" "C$1.0000" "-C$8,000.00" "C$4.98" "-C$8,000.00" "C$4.98" |
| 347 | + "CAD" "C$1.00" "-C$8,000.00" "C$4.98" "-C$8,000.00" "C$4.98" |
348 | 348 | "C$0.00" "C$152.87" "-C$15,286.73" "-C$8,004.98" "C$7,281.75" |
349 | 349 | "C$7,286.73" "C$7,286.73" "C$27,500.25" "C$27,455.47" "C$27,455.47") |
350 | 350 | (sxml->table-row-col sxml 1 14 #f)) |
351 | 351 |
|
352 | 352 | (test-equal "BUY 100 SPY" |
353 | 353 | '("06/21/20" "Buy SPY" "100. SPY" "100. SPY" "Open Long" "CAD" |
354 | | - "C$1.0000" "C$8,000.00" "C$4.98" "C$8,000.00" "C$4.98" |
| 354 | + "C$1.00" "C$8,000.00" "C$4.98" "C$8,000.00" "C$4.98" |
355 | 355 | "C$8,004.98" "C$27,500.25" "C$27,455.47" "C$27,455.47") |
356 | 356 | (sxml->table-row-col sxml 1 15 #f)))) |
357 | 357 | (gnc-clear-current-session))) |
358 | 358 |
|
359 | | - |
0 commit comments