-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.c
36 lines (29 loc) · 846 Bytes
/
test.c
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
/* Copyright (c) 2023, Julia Desmazes. All rights reserved.
*
* This work is licensed under the Creative Commons Attribution-NonCommercial
* 4.0 International License.
*
* This code is provided "as is" without any express or implied warranties. */
#include <stdio.h>
#include "ouch_s.h"
int main(){
printf("OUCH lib test\n");
/* type test */
u64_t raw = 1000;
timestamp_t t = htobe64(raw);
print_timestamp_t(t);
/* struct test */
entry_order_request_s req = {0};
/* set acceptable values for enums */
req.side = BUY;
req.time_in_force = DAY;
req.display = VISIBLE;
req.capacity = AGENCY;
req.inter_market_sweep_eligibility = ELIGIBLE;
req.cross_type = CONTINUOUS_MARKET;
req.appendage_length = sizeof(u32_t);
req.appendage_tag = 3;
req.optional_appendage.min_qty = 10;
print_entry_order_request(&req);
return 0;
}