John Colvin
0dc278eed5
chore: Support timezones when parsing iso dates
...
This is needed because FTX (and perhaps other exchanges) format
expirations with timezones
2023-01-04 13:35:38 -05:00
John Colvin
43ba30365a
fix: Update OSTREAM_FMT_IMPL macro
...
This macro defines 2 template specialization fns, 'parse' and 'format'.
* Change 'format' to be a const method
* Declare return type w/ 'decltype' (per latest official example from fmtlib)
2023-01-04 13:35:38 -05:00
Taha Afzal
5515404062
CCMarketDataListener now listens to CC and writes data to shared memory
2023-01-02 18:44:57 -05:00
John Colvin
3b1a2357cc
fix build (client): Change 'WIN32' macros to '_WIN32'
...
Not sure exactly how this broke, but the WIN32 macro is no longer defined.
2023-01-02 18:42:39 -05:00
John Colvin
35371fe971
refactor: Remove redundant optional.h
...
It was from a time when Windows std didn't provide the 'optional' header
2023-01-02 18:42:39 -05:00
John Colvin
34be51c648
refactor: Include <limits> in sane_algorithm.h
...
Although the build was fine, many methods in this header file depend on 'limits'
so it is appropriate to include it. Presumably all references to such methods are
made from source files that include <limits> by coincidence.
2023-01-02 18:42:39 -05:00
John Colvin
84e6f010d7
build: Benign changes to remove errors in gcc 12
2023-01-02 18:42:38 -05:00
John Colvin
b360f953db
build: Benign changes to remove errors in clang 15
2023-01-02 18:42:38 -05:00
John Colvin
41b8c9238c
build: Remove server/sparkd from libspark include path
2022-09-21 00:14:38 -05:00
John Colvin
28b66306da
chore (linux build): Add benign changes to satisfy gcc11
2022-09-21 00:14:38 -05:00
John Colvin
0bdbc1897a
chore (linux build): Add benign changes to satisfy clang13
2022-09-21 00:14:38 -05:00
John Colvin
5900ce7d12
Fix windows build after moving FileUtils to lib
2022-05-02 12:29:02 -04:00
John Colvin
ca3bc5059e
Read public key from config (for login/auth)
2022-05-02 12:29:02 -04:00
John Colvin
8a96c7441e
refactor: Clean up KeyCode
2022-05-02 12:29:01 -04:00
John Colvin
dace332ac5
refactor: Move FileUtils into lib
2022-05-02 12:29:01 -04:00
John Colvin
884a79e13a
refactor: Clean up protobuf files
...
* Rename files to snake_case (per Google style guide)
https://developers.google.com/protocol-buffers/docs/style
* Prohibit single line functions in clang-format for proto files
* Run clang-format
2022-02-14 14:01:52 -05:00
John Colvin
d646b4b54f
refactor: Replace terse 'unused' attributes w/ macro
2022-01-11 18:14:54 -05:00
John Colvin
2ef66bc91f
Fix server build after upgrading externals
2021-12-11 15:20:41 -05:00
John Colvin
62bf1d069c
Fix build errors caused by big merge, externals upgrade
...
A lot of server-side changes were just merged as part of the Brandon
project (crypto). Many of those changes were in libspark (a lib on
which both the client and server depend), and upgrades to its external
dependencies. As a result, windows counterparts of several upgraded
external libs needed to be similarly upgraded (or added for the first
time). These libs include: boost, btree, catch, curl, fmt, nlohmann json,
openssl, range, rxcpp, websocketpp
This change also makes protobuf generation compatible with python3, and thus
eliminates the build's dependency on python2
2021-12-09 11:40:42 -05:00
John Colvin
dccb50d269
fix build: Satisfy new compilers gcc10, clang12
2021-11-19 16:30:58 -05:00
John Colvin
e83c466bf2
Port over some handy tools from spartan
2021-11-19 16:30:58 -05:00
John Colvin
f9db93e41a
Add simple HTTPClient
...
The binance depth stream must be bootstrapped with a depth snapshot,
which is retrieved via an HTTP GET request
2021-11-19 16:20:45 -05:00
John Colvin
1679dc61a1
Add bts_assert_msgf macro for templated assert msgs
2021-11-19 16:19:26 -05:00
John Colvin
a0ce1b361f
Add >=, <= operators to ValueWrapper
2021-11-19 15:42:35 -05:00
John Colvin
7ede27e90b
refactor: Clean up ValueWrapper
2021-11-19 15:42:33 -05:00
John Colvin
ba53334a7c
Introduce SyntheticBook class
...
* Price levels are computed lazily
* Once computed, a price level can be accessed in O(1)
* Unit tests piggy back on rigorous existing unit tests in
'synthetic_book_computation'
* Not integrated into the matcher, as that is non-trivial
work, and the March 2021 roll is fast approaching
2021-10-25 13:27:12 -04:00
Pedro Pinto
ce98e862c3
Upgraded boost
2021-10-03 14:39:36 -04:00
Pedro Pinto
417e331e8e
Cleaned up mdp3.
2021-02-05 18:37:12 -05:00
Pedro Pinto
b8f146364b
Windows continues to suck ass.
2021-02-03 16:17:28 -05:00
Pedro Pinto
ddf65972c0
Trying to fix windows build.
2021-02-03 14:52:05 -05:00
John Colvin
6badc8099f
refactor: Make ValueWrapper constructors constexpr
2021-02-01 23:44:21 -06:00
John Colvin
e9232e3bae
Add math utils 'factorial' and 'choose'
2021-02-01 23:44:21 -06:00
John Colvin
166ab7d299
refactor: Make ValueWrapper binary ops constexpr
2021-02-01 23:41:23 -06:00
John Colvin
2447da3c08
refactor: Rename 'map_utils.h' -> 'MapUtils.h/cc'
...
Also refactor the relevant namespace 'bts::utils' methods to be static
methods in the newly created class 'MapUtils.' This is part of the
effort to favor static class methods over namespaced functions.
2021-02-01 22:56:21 -06:00
Pedro Pinto
2cffcb4e25
Merged
2021-01-16 12:32:34 -05:00
Pedro Pinto
de063e51f0
Another clang-format run, changed how parameters are binned
2020-12-30 17:30:10 -05:00
Pedro Pinto
8f21a77150
Ran clang-format across all files
2020-12-30 17:11:18 -05:00
Pedro Pinto
c9a0d4489b
Added max loss, added start/stop times for simulation, added price only order changes.
2020-12-22 10:58:05 -05:00
John Colvin
e4c36c8470
improve iceberg deduction
2020-12-03 17:11:34 -06:00
Pedro Pinto
5ccd28d84d
Refactored.
2020-08-01 20:38:53 -04:00
Pedro Pinto
b63b11982b
Refactoring.
2020-07-15 12:24:01 -04:00
Pedro Pinto
26bdef7ddd
Merged with master
2020-07-11 12:30:06 -04:00
Pedro Pinto
db0ffba8ed
Fixed windows build
2020-07-10 13:00:20 -04:00
Pedro Pinto
5d5db9ad9f
Fixed MBO parser to extract the right exchange key.
2020-07-06 09:33:06 -04:00
Pedro Pinto
5ea6dccdd4
Something here breaks
2020-07-02 19:04:49 -04:00
Eric Harding
75eaf8c3d4
IL3ExecutionReportParser
2020-05-12 13:54:28 -05:00
Eric Harding
1b43124756
Add ReentrancyGuard.h
2020-05-02 13:10:49 -04:00
Pedro Pinto
3e817d4fb0
Refactor
2020-04-29 13:16:16 -04:00
Eric Harding
6bd516d4f2
cleanup
2020-04-27 11:26:42 -04:00
Eric Harding
385f3ea402
add unix_nano_now() to datetime.h
2020-02-14 16:05:00 -06:00