Commit Graph

309 Commits

Author SHA1 Message Date
Mark Veidemanis 2ca518962c
Commit serde code 2022-07-21 13:46:25 +01:00
Mark Veidemanis ec33750c50
Require 100% feedback score to combat fraud 2022-07-21 13:46:21 +01:00
Mark Veidemanis ccb6a0f5bd
Fix running dist on all assets 2022-07-21 13:46:18 +01:00
Mark Veidemanis 7323c9446c
Start implementing LBTC class 2022-07-21 13:46:14 +01:00
Mark Veidemanis b1fd9a3197
Move some Agora functions to money/markets 2022-07-21 13:46:11 +01:00
Mark Veidemanis 45392455fa
Fix Agora tests 2022-07-21 13:46:08 +01:00
Mark Veidemanis f9c57e60bf
Create mock LocalBitcoins object 2022-07-21 13:46:05 +01:00
Mark Veidemanis ef1056c140
Pass sources to IRC client 2022-07-21 13:46:00 +01:00
Mark Veidemanis 1827bf5fff
Move common ad details to dedicated config section 2022-07-21 13:45:57 +01:00
Mark Veidemanis 32d4a9d0bd
Port Agora API copy to LocalBitcoins 2022-07-21 13:45:53 +01:00
Mark Veidemanis ff96322ffd
Add example settings file 2022-07-21 13:45:50 +01:00
Mark Veidemanis 7f85d21538
Begin implementing LocalBitcoins version of Agora abstraction API 2022-07-21 13:45:46 +01:00
Mark Veidemanis cb15346a78
Refactor Agora into sources 2022-07-21 13:45:43 +01:00
Rufus Segar 8bec00d825
Add localbitcoins.py 2022-07-21 13:45:41 +01:00
Mark Veidemanis e3d3595efd
Add extra tests for transactions fields 2022-07-21 13:45:38 +01:00
Mark Veidemanis c213fe9d5d
Fix transactions tests 2022-07-21 13:45:36 +01:00
Mark Veidemanis fbe9dc2325
Fix output from release trade and notify about useless accounts 2022-07-21 13:45:33 +01:00
Mark Veidemanis 4e9e5ef0fb
Pass through payment details to redist 2022-07-21 13:45:30 +01:00
Mark Veidemanis 7effd60954
Fix references and make releasing live 2022-07-21 13:45:27 +01:00
Mark Veidemanis 4a0d8ed1ad
Create a function to get all valid bank details 2022-07-21 13:45:25 +01:00
Mark Veidemanis 5ed07abc07
Fix visibility setting and use the account details when distributing ads 2022-07-21 13:45:22 +01:00
Mark Veidemanis 6b599902c0
Don't use the asset name in references 2022-07-21 13:45:20 +01:00
Mark Veidemanis 3fba402964
Don't do a different thing for only one provider 2022-07-21 13:45:17 +01:00
Mark Veidemanis f2c9725fcb
Implement propagating account data to ads 2022-07-21 13:45:14 +01:00
Mark Veidemanis aefa6c58a4
Call the base class from TrueLayer with our fetched transactions 2022-07-21 13:45:12 +01:00
Mark Veidemanis cbb7294f23
Implement mapping and transaction fetching 2022-07-21 13:45:09 +01:00
Mark Veidemanis 878a261295
Add a todo in Agora 2022-07-21 13:45:06 +01:00
Mark Veidemanis 75b005485f
Remove some debugging code from Transactions and TrueLayer 2022-07-21 13:45:01 +01:00
Mark Veidemanis 95e9a55f19
Handle multiple accounts with TrueLayer 2022-07-21 13:44:59 +01:00
Mark Veidemanis 28d4db5694
Clean up colored logging 2022-07-21 13:44:56 +01:00
Mark Veidemanis 34a182cbf5
Simplify logger initialisation 2022-07-21 13:44:53 +01:00
Mark Veidemanis 539d6f1fbb
Use the Python logger instead of the Twisted one 2022-07-21 13:44:50 +01:00
Mark Veidemanis 80c696ef73
Add docstrings in Nordigen functions 2022-07-21 13:44:48 +01:00
Mark Veidemanis cb4dbe18f6
Remove fail argument in TrueLayer 2022-07-21 13:44:46 +01:00
Mark Veidemanis 4033496866
Remove leftover files 2022-07-21 13:44:44 +01:00
Mark Veidemanis 50c71703fd
Move IRC, commands and notify classes into a UX class 2022-07-21 13:44:43 +01:00
Mark Veidemanis 2423e4a066
Move sinks into their own class 2022-07-21 13:44:41 +01:00
Mark Veidemanis 2a8c56ead5
Remove references to Revolut in Transactions 2022-07-21 13:44:39 +01:00
Mark Veidemanis 971a6733a9
Remove debugging code and loop constructor 2022-07-21 13:44:37 +01:00
Mark Veidemanis 053293dfee
Fix Agora tests 2022-07-21 13:44:36 +01:00
Mark Veidemanis 2266300064
Remove calls to Revolut 2022-07-21 13:44:34 +01:00
Mark Veidemanis b53fbfc905
Fix TrueLayer 2022-07-21 13:44:32 +01:00
Mark Veidemanis 88e87e53d5
Re-enable Nordigen 2022-07-21 13:44:30 +01:00
Mark Veidemanis 8ab915fa65
Implement signin command for TrueLayer 2022-07-21 13:44:29 +01:00
Mark Veidemanis cbb81cec81
Create proper authcode flow for TrueLayer 2022-07-21 13:44:25 +01:00
Mark Veidemanis 6879d5040e
Fix transactions tests 2022-07-21 13:44:23 +01:00
Mark Veidemanis 3bf2e65cd7
Refactor initialisation and add docstrings to util module 2022-07-21 13:44:22 +01:00
Mark Veidemanis cdf99641ba
Implement getting TrueLayer access tokens 2022-07-21 13:44:20 +01:00
Mark Veidemanis a40423af8c
Begin implementing TrueLayer API 2022-07-21 13:44:19 +01:00
Mark Veidemanis ded27b9842
Begin implementing Nordigen API 2022-07-21 13:44:18 +01:00
Mark Veidemanis b9968612c8
Begin implementing Fidor API 2022-07-21 13:44:17 +01:00
Mark Veidemanis 5688c8adb5
Begin implementing Yapily API 2022-07-21 13:44:16 +01:00
Mark Veidemanis 4bcd2ddeff
Fix indentation while setting ES endpoint in Transactions 2022-07-21 13:44:15 +01:00
Mark Veidemanis fe643fc407
Simplify and refactor initialisation code 2022-07-21 13:44:14 +01:00
Mark Veidemanis f1cb463682
Fix errors and don't print ES logging 2022-07-21 13:44:13 +01:00
Mark Veidemanis 3ff4d512a4
Store cheat output in ES 2022-07-21 13:44:13 +01:00
Mark Veidemanis 9ef7f952f7
Create boilerplate money tests 2022-07-21 13:44:12 +01:00
Mark Veidemanis 6f9cf5cd01
Remove some debugging code from transactions tests 2022-07-21 13:44:11 +01:00
Mark Veidemanis c17e311f7e
Move get_profit to money 2022-07-21 13:44:10 +01:00
Mark Veidemanis 6de9c4d564
Fix reference to get_profit in commands 2022-07-21 13:44:09 +01:00
Mark Veidemanis ef5824892b
Simplify Ctrl+C signal handling 2022-07-21 13:44:08 +01:00
Mark Veidemanis d261298bf7
Write various transaction test cases 2022-07-21 13:44:07 +01:00
Mark Veidemanis 7599911279
Fix how min and max are used in transactions 2022-07-21 13:44:06 +01:00
Mark Veidemanis 3fd656e1df
Begin transactions tests 2022-07-21 13:44:05 +01:00
Mark Veidemanis 2e83516b19
Re-enable withdrawing upon fund release 2022-07-21 13:44:04 +01:00
Mark Veidemanis e8a6f55ed1
Move create_distribution_list to Markets library 2022-07-21 13:44:03 +01:00
Mark Veidemanis b6a5a2f96d
Move to_usd to Money library 2022-07-21 13:44:02 +01:00
Mark Veidemanis 859c1d20ef
Move rates and margin functions into Money library 2022-07-21 13:44:01 +01:00
Mark Veidemanis 74522342f7
Move lookup rates into new Money library 2022-07-21 13:44:00 +01:00
Mark Veidemanis c15492f161
Fix references to last_online_recent in Agora tests 2022-07-21 13:43:59 +01:00
Mark Veidemanis 896318982f
Move some functions to a util class from Agora 2022-07-21 13:43:59 +01:00
Mark Veidemanis 74d03e8180
Make ES optional and properly calculate open trade volume 2022-07-21 13:43:58 +01:00
Mark Veidemanis 3e769e8d33
Convert amount to float before adding in total calculation 2022-07-21 13:43:57 +01:00
Mark Veidemanis fc103e5bfa
Add check in Agora for validating ad response 2022-07-21 13:43:56 +01:00
Mark Veidemanis 9a3ddf609e
Add recurring call for getting total profit 2022-07-21 13:43:55 +01:00
Mark Veidemanis 3fdb728e04
Run balance checks intermittently 2022-07-21 13:43:54 +01:00
Mark Veidemanis aad966feff
Handle trying to stop the bot when threads are running 2022-07-21 13:43:53 +01:00
Mark Veidemanis 96168d8d6f
Differentiate between trades+profit and profit in ES 2022-07-21 13:43:52 +01:00
Mark Veidemanis bc0a60a601
Add a xtype parameter for future ES expansion 2022-07-21 13:43:51 +01:00
Mark Veidemanis 3111783f69
Log more things into ES 2022-07-21 13:43:50 +01:00
Mark Veidemanis f4b75e4b5b
Disable TLS warning for ES 2022-07-21 13:43:49 +01:00
Mark Veidemanis ccfb4d65bd
Add certs folder to gitignore 2022-07-21 13:43:48 +01:00
Mark Veidemanis a46f6ed3f3
Handle another kind of exception 2022-07-21 13:43:47 +01:00
Mark Veidemanis d9f55ce497
Add provider to trade information 2022-07-21 13:43:46 +01:00
Mark Veidemanis b88f49b6ae
Add commands to check only profit 2022-07-21 13:43:46 +01:00
Mark Veidemanis 9a50865480
Disable automatic withdrawals 2022-07-21 13:43:45 +01:00
Mark Veidemanis 1dbdb3acc7
Add commands to get various totals 2022-07-21 13:43:44 +01:00
Mark Veidemanis 2fa156c095
Add code formatting checks in runtest.sh 2022-07-21 13:43:43 +01:00
Mark Veidemanis 6e7df83427
Add script to run tests 2022-07-21 13:43:42 +01:00
Mark Veidemanis 5d5b818b9a
Write docstrings for Agora and Transactions classes 2022-07-21 13:43:41 +01:00
Mark Veidemanis 91f457c82d
Remove debugging code 2022-07-21 13:43:40 +01:00
Mark Veidemanis 8782aeaead
Fix Agora tests 2022-07-21 13:43:39 +01:00
Mark Veidemanis 5c07112ca7
Fix rounding bug in cheat 2022-07-21 13:43:38 +01:00
Mark Veidemanis 6aa765183e
Fix notification priorities 2022-07-21 13:43:37 +01:00
Mark Veidemanis 5dcd33433d
Fix transaction handling for non-Revolut trades 2022-07-21 13:43:36 +01:00
Mark Veidemanis 372e246659
Set priorities for trade and withdrawal notifications 2022-07-21 13:43:36 +01:00
Mark Veidemanis e91916b18b
Add extra debugging in transactions 2022-07-21 13:43:35 +01:00
Mark Veidemanis d000f75ca2
Fix TX update logic in Transactions 2022-07-21 13:43:34 +01:00
Mark Veidemanis e88a6d462d
Remove all cheat output 2022-07-21 13:43:33 +01:00
Mark Veidemanis 3c1cbf1d94
Remove more cheat debugging and useless output 2022-07-21 13:43:32 +01:00