Commit Graph

372 Commits

Author SHA1 Message Date
realaltffour 85b73c76e7
doc: add acc_retrieve_portfolio() 2020-08-09 18:40:57 +03:00
realaltffour ac6308eb32
account: add acc_retrieve_portfolio() 2020-08-09 18:36:32 +03:00
realaltffour 432abe9e13
account: handle sessions in acc_auth_client() 2020-08-09 13:52:02 +03:00
realaltffour 225bb0ab2d
chnge: acc_retrieval -> acc_retrieval_portfolio 2020-08-09 13:26:02 +03:00
realaltffour 90706edc42
test: add verify_jwt_token() 2020-08-09 13:18:18 +03:00
realaltffour b119b2e236
test: add create_jwt_token() 2020-08-09 13:14:41 +03:00
realaltffour 5d9d85112d
doc: add verify_jwt_token() 2020-08-09 12:47:34 +03:00
realaltffour e406aa67ea
doc: add create_jwt_token() 2020-08-09 12:44:19 +03:00
realaltffour d2d6dea553
doc: add JWTClaim struct 2020-08-09 12:11:40 +03:00
realaltffour 8e1f3098d3
sandbox: add jwt basic test 2020-08-09 12:08:58 +03:00
realaltffour eb54e24dbf
account: add jwt sessions 2020-08-09 11:31:56 +03:00
realaltffour 3bf5093861
doc: acc_auth_client() 2020-08-09 07:37:35 +03:00
realaltffour 9b7b243919
doc: add req_server_salt() 2020-08-09 07:35:27 +03:00
realaltffour efb7c20b84
account: complete acc_auth_client() 2020-08-08 18:11:34 +03:00
realaltffour f6f84eec6c
account: req_server_salt() 2020-08-08 17:39:43 +03:00
realaltffour 79b48fef3c
account: remove username hashing 2020-08-08 14:43:56 +03:00
realaltffour 2a4c206367
doc: add acc_create_client() 2020-08-08 14:33:55 +03:00
realaltffour 1601340c5e
doc: add wait_and_read_branched() 2020-08-08 14:20:07 +03:00
realaltffour 35cb030743
doc: add get_server_salt() 2020-08-08 14:13:49 +03:00
realaltffour bf62f56878
account: add acc_create_client() 2020-08-08 14:03:11 +03:00
realaltffour 0ed7fcc1f3
account: add get_server_salt() 2020-08-08 11:50:04 +03:00
realaltffour 1e70c28faf
account: get_server_hash() 2020-08-07 19:14:37 +03:00
realaltffour 308102381f
network: add master/worker servers ip/certs pool 2020-08-07 11:19:38 +03:00
realaltffour d2ed9c30e4
certs: manage it 2020-08-07 11:08:28 +03:00
realaltffour 97b7456da7
fix: type in test_gen_tls_cleint_config() 2020-08-06 14:01:09 +03:00
realaltffour a1d5b17941
test: add gen_tls_client_config() 2020-08-06 14:00:34 +03:00
realaltffour bfba8eb871
doc: add gen_tls_cleint_config() 2020-08-06 13:58:25 +03:00
realaltffour b3135910c4
doc: add danger::NoCertificateVerification 2020-08-06 13:54:39 +03:00
realaltffour 1a741ebaa2
test: add gen_tls_server_config() 2020-08-06 13:51:38 +03:00
realaltffour f7f2bfe561
doc: add TlsClient::event_set() 2020-08-06 13:29:29 +03:00
realaltffour 54e6e017b1
doc: add TlsClient::register() 2020-08-06 13:28:37 +03:00
realaltffour 644c864147
doc: add TlsClient::register() 2020-08-06 13:26:37 +03:00
realaltffour 419485778b
doc: add TlsClient::do_write() 2020-08-06 13:25:47 +03:00
realaltffour 92d2f3072c
doc: add TlsClient::do_read() 2020-08-06 13:23:44 +03:00
realaltffour b76c97ab7b
doc: add TlsClient::ready() 2020-08-06 13:21:59 +03:00
realaltffour f3c8647b79
doc: add TlsClient::new() 2020-08-06 13:19:30 +03:00
realaltffour 843e26590d
doc: add TlsClient struct 2020-08-06 13:16:07 +03:00
realaltffour 2ce53955b9
doc: add lookup_ipv4() 2020-08-06 12:56:35 +03:00
realaltffour eeacb1b438
network: standarize lookup_ipv4() 2020-08-06 12:54:33 +03:00
realaltffour 7d3ebbc505
network: add tls_client_sandbox.rs 2020-08-06 12:50:24 +03:00
realaltffour 7ae26ae04c
network: add tls_client.rs 2020-08-06 09:49:27 +03:00
realaltffour 8cbce6155d
sandbox: add enabling of sub sandboxes 2020-08-06 08:13:44 +03:00
realaltffour 025c2cbfdf
fix: tls_sandbox missing argument 2020-08-06 07:57:24 +03:00
realaltffour f07a2bf8c7
doc: add gen_tls_server_config() 2020-08-06 07:56:35 +03:00
realaltffour c085fd037c
doc: add load_ocsp() 2020-08-06 07:52:13 +03:00
realaltffour a4b0c9f9e3
doc: add load_private_key() 2020-08-06 07:51:13 +03:00
realaltffour 9fe0350f00
doc: add load_certs() 2020-08-06 07:50:17 +03:00
realaltffour 2eaf2a960c
network: add gen_tls_server_config() 2020-08-06 07:48:10 +03:00
realaltffour 71ce9d4c3e
fix: Arc doesn't build with Debug 2020-08-06 06:18:05 +03:00
realaltffour cb3f156f67
doc: add TlsServer::conn_event() 2020-08-05 19:56:35 +03:00
realaltffour ddd3f92d7e
doc: add TlsServer::accept() 2020-08-05 19:48:25 +03:00
realaltffour 87a7c9b36f
doc: add TlsServer::new() 2020-08-05 19:45:31 +03:00
realaltffour 783fd97363
doc: add TlsServer 2020-08-05 19:42:45 +03:00
realaltffour 5bed4709ad
doc: add TlsConnection 2020-08-05 19:37:20 +03:00
realaltffour 773e98258d
doc: add TlsConnection::event_set() 2020-08-05 19:29:52 +03:00
realaltffour d7dcc1075b
doc: add TlsConnection::deregister() 2020-08-05 19:27:39 +03:00
realaltffour 3b2ca7a39c
doc: add TlsConnection::reregister() 2020-08-05 19:26:36 +03:00
realaltffour 076641e92f
doc: TlsConnection::register() 2020-08-05 19:25:33 +03:00
realaltffour 82aeb2d265
doc: add TlsConnection::do_tls_write_and_handle_error() 2020-08-05 19:18:32 +03:00
realaltffour f5ec61e994
doc: add TlsConnection::incoming_plaintext() 2020-08-05 19:15:54 +03:00
realaltffour 0ee840a54c
doc: add TlsConnection::try_plain_connection() 2020-08-05 19:13:42 +03:00
realaltffour cda88e27db
doc: add do_tls_read() 2020-08-05 19:11:32 +03:00
realaltffour 0ecb9b5f59
doc: add TlsConnection::ready() 2020-08-05 19:06:38 +03:00
realaltffour 3731bb430d
doc: add TlsConnection::new() 2020-08-05 19:02:00 +03:00
realaltffour 8c9d895b05
network: add handle_data() 2020-08-05 18:58:00 +03:00
realaltffour f4d7b30597
network: tls_server now works 2020-08-05 14:36:00 +03:00
realaltffour 9d446a9f59
network: add basic tls_connection impl 2020-08-05 09:57:56 +03:00
realaltffour b144eaf9ae
network: add basic structure 2020-08-05 08:19:46 +03:00
realaltffour aada938639
parser: add message_builder() 2020-08-04 20:13:46 +03:00
realaltffour 7784fb6b90
parser: Message & MessageType are now defaultable 2020-08-04 19:47:52 +03:00
realaltffour 0f1046533b
parser: make data as u8 array, and remove data_size 2020-08-04 15:38:47 +03:00
realaltffour 8f131ab561
doc: add acc_auth_client() 2020-08-04 15:03:36 +03:00
realaltffour 969d0eb83f
account: add acc_auth_client() 2020-08-04 15:00:40 +03:00
realaltffour 7c3398907f
account: add hash_usr.rs 2020-08-04 09:14:12 +03:00
realaltffour 2513b5d95f
test: add hash_email_client() 2020-08-04 06:54:51 +03:00
realaltffour 0ba5afe70b
test: add hash_email_client() 2020-08-04 06:46:38 +03:00
realaltffour 012d319923
doc: add hash_email_server() 2020-08-04 06:38:01 +03:00
realaltffour 4432e19b08
doc: add hash_email_client() 2020-08-04 06:34:27 +03:00
realaltffour 38da0bc8a6
account: add hash_email_client() 2020-08-04 06:16:34 +03:00
realaltffour 1398dba32e
test: add hash_pwd_server() 2020-08-03 20:57:08 +03:00
realaltffour 6924019e9e
docs: fix examples being run 2020-08-03 20:49:11 +03:00
realaltffour 84a62d1238
test: add hash__pwd_client() 2020-08-03 20:39:01 +03:00
realaltffour 78a1fd624e
account: add documentation.
- add documentation for hash_pwd_server()
- add documentation for hash_pwd_client()
2020-08-03 20:03:34 +03:00
realaltffour 0559895031
account: add hash_pwd_server() 2020-08-03 18:56:10 +03:00
realaltffour 366a37939b
account: add hashash_pwd_client() 2020-08-03 16:44:17 +03:00
realaltffour 9ca38f0d69
account: add basic structure 2020-08-03 11:00:46 +03:00
realaltffour 482d945c99
doc: remove deducable return type of functions 2020-08-02 13:27:02 +03:00
realaltffour 63e5f26006
doc: add get_stock_from_db_since_epoch() & get_stock_from_db_between_epochs() 2020-08-02 13:24:45 +03:00
realaltffour 582558793f
doc: add get_stock_from_db() 2020-08-02 13:18:04 +03:00
realaltffour 0107b13972
doc: add get_company_from_db() 2020-08-02 13:13:03 +03:00
realaltffour 0ecbc6302e
doc: add create_stock() 2020-08-02 13:08:13 +03:00
realaltffour e79a18f8d8
doc: add create_company() 2020-08-02 13:04:45 +03:00
realaltffour 011af7d9cb
doc: add db_init() 2020-08-02 10:27:28 +03:00
realaltffour 9e5a48ff37
doc: add db_connect() 2020-08-02 10:24:28 +03:00
realaltffour 1cdcc99a25
doc: add path_exists() 2020-08-02 10:17:28 +03:00
realaltffour 25fa5f0f44
doc: add gen_log() 2020-08-02 10:14:53 +03:00
realaltffour c9a7aada10
docs: add libtrader_init_log() & libtrader_init() 2020-08-02 10:12:20 +03:00
realaltffour ee20660ffd
fix: sandbox not building 2020-08-01 13:46:58 +03:00
realaltffour dc81e741ad
test: add get_stock_from_db_between_epochs() test 2020-08-01 13:22:49 +03:00
realaltffour 500f5d3927
test: add get_sstock_from_db_since_epoch() test 2020-08-01 13:12:12 +03:00
realaltffour 5c69ba27b2
test: add get_stock_from_db() test 2020-08-01 11:57:44 +03:00
realaltffour dfbd8325cf
chnge: timestamp to bigint 2020-08-01 11:50:25 +03:00
realaltffour 2e2f3aeb77
test: add get_company_from_db() test 2020-07-31 19:19:59 +03:00
realaltffour 461c8fda0e
test: create_stock() test 2020-07-31 19:06:00 +03:00
realaltffour 77ebef7843
test: add create_company() test 2020-07-31 18:35:49 +03:00
realaltffour cca4d98cdd
test: add libtrader_init() test 2020-07-31 14:41:15 +03:00
realaltffour 78bc69fd2d
test: add libtrader_init_log() test 2020-07-31 14:27:27 +03:00
realaltffour 3ed0ea47bb
test: add db_init() test 2020-07-31 14:14:49 +03:00
realaltffour af10bfb5d9
fix: test_db_connect() 2020-07-31 13:29:17 +03:00
realaltffour 37698ec745
test: add db_connect() test 2020-07-31 13:25:23 +03:00
realaltffour 1c725e28a4
clean: make line length consistent to 120 2020-07-31 12:59:52 +03:00
realaltffour 442ec5cd1a
add: path_exists() 2020-07-31 11:16:18 +03:00
realaltffour 83c29c211d
fix: wrong gitignore condition 2020-07-31 10:42:57 +03:00
realaltffour d8a0a213a2
add: gen_log() 2020-07-31 10:40:34 +03:00
realaltffour 35ea915581
fix: filename change in libtrader/initializer.rs 2020-07-30 13:36:44 +03:00
realaltffour 96d0a544bf
clean: make initializer file names consistent 2020-07-30 13:33:54 +03:00
realaltffour 7f30b78cf0
clean: make PositionType converatable to bool 2020-07-30 13:31:23 +03:00
realaltffour 8bb3a112f1
clean: make SQL syntax consistent 2020-07-30 13:11:43 +03:00
realaltffour 85071c7666
clean: remove .to_string() repetition 2020-07-30 12:56:12 +03:00
realaltffour 883678da8c
clean: connect str generation 2020-07-30 12:40:53 +03:00
realaltffour ca74aec812
add: display for WorkerState 2020-07-29 12:30:45 +03:00
realaltffour f823d36f21
add: display for WorkerServer 2020-07-29 12:30:44 +03:00
realaltffour 222cfb3ed4
add: display for MasterState 2020-07-29 12:30:44 +03:00
realaltffour 55069bdb4d
add: display for GlobalState 2020-07-29 12:30:44 +03:00
realaltffour 2b4fce04fe
add: display for MessageType 2020-07-29 12:30:44 +03:00
realaltffour d59e19aee5
add: display for Message 2020-07-29 12:30:43 +03:00
realaltffour 7125a7572d
add: display for Instructions 2020-07-29 12:30:43 +03:00
realaltffour f129da45ac
add: display for StockVal 2020-07-29 12:30:43 +03:00
realaltffour 187ff72eda
add: display for Company 2020-07-29 12:30:42 +03:00
realaltffour 65db7a06b8
add: display for SessionID 2020-07-29 12:30:42 +03:00
realaltffour b9c52cf718
add: display for Position 2020-07-29 12:30:42 +03:00
realaltffour 14321bf70a
add: display for Portfolio 2020-07-29 12:30:41 +03:00
realaltffour 8e7dafd415
add: display for Order 2020-07-29 12:30:41 +03:00
realaltffour f67bc9bf06
add: display for Order 2020-07-29 12:30:41 +03:00
realaltffour 14258d0532
add: display for Account 2020-07-29 12:30:40 +03:00
realaltffour 80413bfc81
add: now all references logging system 2020-07-29 12:30:40 +03:00
realaltffour 00d7e03e27
add: logging system. 2020-07-29 12:30:40 +03:00
realaltffour a43da118ff add: db_gen_connect_str 2020-07-28 10:34:55 +03:00
realaltffour e8e82d2cca
add: position sql 2020-07-27 14:14:12 +03:00
realaltffour 73cab50d18
fix: convert String to str in sql query 2020-07-26 14:06:17 +03:00
realaltffour 64f21f422f
sql: add transaction in accounts table 2020-07-26 14:03:31 +03:00
realaltffour 26c5abf246
sql: add account_schema & accounts table 2020-07-26 13:50:05 +03:00
realaltffour 6b273f3989
add: get_stock_from_db*() funcs 2020-07-26 13:31:33 +03:00
realaltffour fd5307c288
add: create_stock()
- add create_stock function.
- rename unsusued variables to be prefixed with '_' in create_company.rs
2020-07-26 10:52:19 +03:00
realaltffour 22b57e7fb7
add: get_company_from_db() 2020-07-26 10:19:50 +03:00
realaltffour 4d888a9954
add: create_company 2020-07-25 14:57:36 +03:00
realaltffour d42410ded3
add: basic structure for db cmds
- add basic structure for db cmds
- remove unneeded sql scripts. 004_table_create_stock and it's
duplicate.
2020-07-25 14:10:48 +03:00
realaltffour 9ca1f741d9
chnge: organize sql files & dynamically store vals
- reorganize the sql script files order.
- make it so that the creation of stock asset dynamic i.e company per table
2020-07-25 13:55:19 +03:00
realaltffour 9a5c6dbe14
add: db_init loading of companies data.
- load companies into state in db_init()
- fix wrong integer sizes in StockVal & Company
2020-07-25 13:40:45 +03:00
realaltffour 92ff206f35
add: StockVal sql conversion 2020-07-25 09:11:04 +03:00
realaltffour a6022b61fb
fix: unsigned is apparently not avlble in postgresql 2020-07-25 09:06:48 +03:00
realaltffour e476538035
add: StockVal
- change 'numeric' to 'bigint' in 002_table_stock
- add StockVal file
- add mod.rs file for ds/generic
- use StockVal and Company in global_state.rs
- make application buildable
2020-07-24 11:19:56 +03:00
realaltffour cb8a6ce2aa
add: company ds 2020-07-24 11:07:00 +03:00
realaltffour 431917358b
add: basic unbuildable memory data stores 2020-07-24 10:38:17 +03:00
realaltffour e8055056c4
fix: compilation 2020-07-23 18:04:14 +03:00
realaltffour 3806697864
add: GlobalState 2020-07-23 16:07:25 +03:00
realaltffour d85f0842ea
add: basic libtrader_init 2020-07-22 14:34:48 +03:00
realaltffour 462ee42f98
add: sql init scripts execution 2020-07-20 11:53:09 +03:00
realaltffour 21ca337e7f
fix: now build is compilable 2020-07-20 11:53:09 +03:00
realaltffour 57f802ab78
add: basic unbuildable init() 2020-07-20 11:53:08 +03:00
realaltffour 074ffcf7f2
chnge: asset -> asset_schema 2020-07-20 11:53:08 +03:00
realaltffour 91ddd2814e
add: 004_table_sessions 2020-07-20 11:53:07 +03:00
realaltffour 50ce999a01
warning: temp allow dead_code 2020-07-20 11:53:07 +03:00
realaltffour 473bc01f05
warning: remove extra includes 2020-07-20 11:53:06 +03:00
realaltffour db2e2da0dc
add: 003_schema_sessions 2020-07-20 11:53:06 +03:00
realaltffour 7621406965
db: add 001_schema_asset & 002_table_stock 2020-07-20 11:53:06 +03:00
realaltffour ece474b285
fix compilation error with removing unneeded ds 2020-07-20 11:53:05 +03:00
realaltffour 4d160570ac
ds: remove unneeded assets 2020-07-20 11:53:05 +03:00
realaltffour 82249644b7
db: add sql companies table 2020-07-20 11:53:04 +03:00
realaltffour 163454619c
ds: add ISIN code in Company structure 2020-07-20 11:53:04 +03:00
realaltffour cdb781afdf
db: add sandbox deployment & fix master deployment 2020-07-20 11:53:02 +03:00
realaltffour 6f4cab7acb
ds: add account 2020-07-20 11:53:02 +03:00
realaltffour 1a73b1f5b7
ds: add instruction list 2020-07-20 11:53:00 +03:00
realaltffour 4b75eaf58f
ds: add message & message type 2020-07-20 11:53:00 +03:00
realaltffour 9588e394bc
ds: fix compilation 2020-07-20 11:53:00 +03:00
realaltffour 8e0be31bbe
ds: add workerstate 2020-07-20 11:52:59 +03:00
realaltffour 7831b15f5f
ds: add MasterServer 2020-07-20 11:52:59 +03:00
realaltffour 962f9f8267
ds: add WorkerServer 2020-07-20 11:52:58 +03:00
realaltffour 48693bfcc2
ds: add sessionID 2020-07-20 11:52:58 +03:00
realaltffour 3a5f41071a
ds: refactor types 2020-07-20 11:52:57 +03:00
realaltffour ed1770803f
ds: add order definition 2020-07-20 11:52:57 +03:00
realaltffour 477eba8342
ds: add portfolio 2020-07-20 11:52:57 +03:00
realaltffour 2699b90187
ds: fix compilation with position 2020-07-20 11:52:56 +03:00
realaltffour d7f5bd381e
ds: remove trasnaction & add position 2020-07-20 11:52:56 +03:00
realaltffour 73a3a20524
ds: add stock definition 2020-07-20 11:52:55 +03:00
realaltffour 8251bb315e
ds: add Transactiontype & Transatction definition 2020-07-20 11:52:55 +03:00
realaltffour 7e26a46e51
add basic infrastructure 2020-07-20 11:52:54 +03:00
realaltffour 2e658af71a
rust: changed project to be in rust 2020-07-20 11:52:53 +03:00
realaltffour 56156f2dff
add: sql init scripts execution 2020-07-20 11:43:25 +03:00
realaltffour 496d93cc7d
fix: now build is compilable 2020-07-15 05:53:31 +03:00
realaltffour 1a35d056cf
add: basic unbuildable init() 2020-07-14 19:49:09 +03:00
realaltffour 49e56fb019
chnge: asset -> asset_schema 2020-07-13 12:13:53 +03:00
realaltffour c826cb24da
add: 004_table_sessions 2020-07-13 12:10:04 +03:00
realaltffour c69292ad16
Merge branch 'master' of github.com:realaltffour/PaperTrader into db 2020-07-13 12:05:01 +03:00
realaltffour b8e325918d
warning: temp allow dead_code 2020-07-13 12:01:26 +03:00
realaltffour 90392bb65b
warning: remove extra includes 2020-07-13 11:56:27 +03:00
realaltffour 07e1465d0a
add: 003_schema_sessions 2020-07-13 11:53:40 +03:00
realaltffour 88697b8d63
db: add 001_schema_asset & 002_table_stock 2020-07-01 13:56:21 +03:00
realaltffour 8a04c9f4db
Merge branch 'master' into db 2020-07-01 13:15:35 +03:00
realaltffour 9f4d5d0a79
fix compilation error with removing unneeded ds 2020-07-01 13:14:58 +03:00