425 Commits (1a0f22740b6ee2a603dab512b8a5c84f6e57b6a8)

Author SHA1 Message Date
Mark Veidemanis 4033496866
Remove leftover files 2 years ago
Mark Veidemanis 50c71703fd
Move IRC, commands and notify classes into a UX class 2 years ago
Mark Veidemanis 2423e4a066
Move sinks into their own class 2 years ago
Mark Veidemanis 2a8c56ead5
Remove references to Revolut in Transactions 2 years ago
Mark Veidemanis 971a6733a9
Remove debugging code and loop constructor 2 years ago
Mark Veidemanis 053293dfee
Fix Agora tests 2 years ago
Mark Veidemanis 2266300064
Remove calls to Revolut 2 years ago
Mark Veidemanis b53fbfc905
Fix TrueLayer 2 years ago
Mark Veidemanis 88e87e53d5
Re-enable Nordigen 2 years ago
Mark Veidemanis 8ab915fa65
Implement signin command for TrueLayer 2 years ago
Mark Veidemanis cbb81cec81
Create proper authcode flow for TrueLayer 2 years ago
Mark Veidemanis 6879d5040e
Fix transactions tests 2 years ago
Mark Veidemanis 3bf2e65cd7
Refactor initialisation and add docstrings to util module 2 years ago
Mark Veidemanis cdf99641ba
Implement getting TrueLayer access tokens 2 years ago
Mark Veidemanis a40423af8c
Begin implementing TrueLayer API 2 years ago
Mark Veidemanis ded27b9842
Begin implementing Nordigen API 2 years ago
Mark Veidemanis b9968612c8
Begin implementing Fidor API 2 years ago
Mark Veidemanis 5688c8adb5
Begin implementing Yapily API 2 years ago
Mark Veidemanis 4bcd2ddeff
Fix indentation while setting ES endpoint in Transactions 2 years ago
Mark Veidemanis fe643fc407
Simplify and refactor initialisation code 2 years ago
Mark Veidemanis f1cb463682
Fix errors and don't print ES logging 2 years ago
Mark Veidemanis 3ff4d512a4
Store cheat output in ES 2 years ago
Mark Veidemanis 9ef7f952f7
Create boilerplate money tests 2 years ago
Mark Veidemanis 6f9cf5cd01
Remove some debugging code from transactions tests 2 years ago
Mark Veidemanis c17e311f7e
Move get_profit to money 2 years ago
Mark Veidemanis 6de9c4d564
Fix reference to get_profit in commands 2 years ago
Mark Veidemanis ef5824892b
Simplify Ctrl+C signal handling 2 years ago
Mark Veidemanis d261298bf7
Write various transaction test cases 2 years ago
Mark Veidemanis 7599911279
Fix how min and max are used in transactions 2 years ago
Mark Veidemanis 3fd656e1df
Begin transactions tests 2 years ago
Mark Veidemanis 2e83516b19
Re-enable withdrawing upon fund release 2 years ago
Mark Veidemanis e8a6f55ed1
Move create_distribution_list to Markets library 2 years ago
Mark Veidemanis b6a5a2f96d
Move to_usd to Money library 2 years ago
Mark Veidemanis 859c1d20ef
Move rates and margin functions into Money library 2 years ago
Mark Veidemanis 74522342f7
Move lookup rates into new Money library 2 years ago
Mark Veidemanis c15492f161
Fix references to last_online_recent in Agora tests 2 years ago
Mark Veidemanis 896318982f
Move some functions to a util class from Agora 2 years ago
Mark Veidemanis 74d03e8180
Make ES optional and properly calculate open trade volume 2 years ago
Mark Veidemanis 3e769e8d33
Convert amount to float before adding in total calculation 2 years ago
Mark Veidemanis fc103e5bfa
Add check in Agora for validating ad response 2 years ago
Mark Veidemanis 9a3ddf609e
Add recurring call for getting total profit 2 years ago
Mark Veidemanis 3fdb728e04
Run balance checks intermittently 2 years ago
Mark Veidemanis aad966feff
Handle trying to stop the bot when threads are running 2 years ago
Mark Veidemanis 96168d8d6f
Differentiate between trades+profit and profit in ES 2 years ago
Mark Veidemanis bc0a60a601
Add a xtype parameter for future ES expansion 2 years ago
Mark Veidemanis 3111783f69
Log more things into ES 2 years ago
Mark Veidemanis f4b75e4b5b
Disable TLS warning for ES 2 years ago
Mark Veidemanis ccfb4d65bd
Add certs folder to gitignore 2 years ago
Mark Veidemanis a46f6ed3f3
Handle another kind of exception 2 years ago
Mark Veidemanis d9f55ce497
Add provider to trade information 2 years ago
Mark Veidemanis b88f49b6ae
Add commands to check only profit 2 years ago
Mark Veidemanis 9a50865480
Disable automatic withdrawals 2 years ago
Mark Veidemanis 1dbdb3acc7
Add commands to get various totals 2 years ago
Mark Veidemanis 2fa156c095
Add code formatting checks in runtest.sh 2 years ago
Mark Veidemanis 6e7df83427
Add script to run tests 2 years ago
Mark Veidemanis 5d5b818b9a
Write docstrings for Agora and Transactions classes 2 years ago
Mark Veidemanis 91f457c82d
Remove debugging code 2 years ago
Mark Veidemanis 8782aeaead
Fix Agora tests 2 years ago
Mark Veidemanis 5c07112ca7
Fix rounding bug in cheat 2 years ago
Mark Veidemanis 6aa765183e
Fix notification priorities 2 years ago
Mark Veidemanis 5dcd33433d
Fix transaction handling for non-Revolut trades 2 years ago
Mark Veidemanis 372e246659
Set priorities for trade and withdrawal notifications 2 years ago
Mark Veidemanis e91916b18b
Add extra debugging in transactions 2 years ago
Mark Veidemanis d000f75ca2
Fix TX update logic in Transactions 2 years ago
Mark Veidemanis e88a6d462d
Remove all cheat output 2 years ago
Mark Veidemanis 3c1cbf1d94
Remove more cheat debugging and useless output 2 years ago
Mark Veidemanis b3e71f84d1
Remove some debug output 2 years ago
Mark Veidemanis cd10deaa71
Account trades for withdrawal calculation and fix cheat for multiple providers 2 years ago
Mark Veidemanis aa4b623ae6
Fix pubads command after ads refactor 2 years ago
Mark Veidemanis 80916648e3
Fix the remainder of the tests 2 years ago
Mark Veidemanis 32a24b3e43
Create more Agora tests 2 years ago
Mark Veidemanis 182e2ae8ba
Remove debugging code 2 years ago
Mark Veidemanis 0b9cd93369
Implement accounting for open trade value as part of total remaining 2 years ago
Mark Veidemanis 899a6e60e3
Fix minor bugs with the cheat system 2 years ago
Mark Veidemanis 5c10d5f044
Increase decimal places in rate 2 years ago
Mark Veidemanis 06e8662c21
Use GBP details when currency is GBP, without checking country 2 years ago
Mark Veidemanis 9d04db7205
Finish implementation and tests for the cheat system 2 years ago
Mark Veidemanis 4414132674
Add some Agora tests 2 years ago
Mark Veidemanis db859e803f
Improve class passing and refactor 2 years ago
Mark Veidemanis f6a67abd4f
Fix dist function 2 years ago
Mark Veidemanis eaa4528634
Implement OTP and fix getting public ads 2 years ago
Mark Veidemanis a9adc14577
Fix AgoraDesk PaymentMethodDetail specification 2 years ago
Mark Veidemanis baaf32a2e0
Fix redist command 2 years ago
Mark Veidemanis 3e1990388f
Remove old command and add redist command 2 years ago
Mark Veidemanis 81e3232456
Implement editing ads and distributing providers 2 years ago
Mark Veidemanis c3ff7d6e76
Fix autoprice bugs and re-enable withdrawing on release 2 years ago
Mark Veidemanis cdc80b6896
Implement remaining command 2 years ago
Mark Veidemanis 50a00a7798
Fix bug in IRC with zero length messages 2 years ago
Mark Veidemanis bac6f26311
Make ad listing getters understand providers 2 years ago
Mark Veidemanis 61b064635d
Implement changing the online_provider when creating an ad 2 years ago
Mark Veidemanis d2d1c4573f
Disable withdrawal on release and don't lowball people 2 years ago
Mark Veidemanis 2db063ab89
Add boilerplate code for topup notifications 2 years ago
Mark Veidemanis 365fc71f64
Add the notify module 2 years ago
Mark Veidemanis b91431b3ba
Improve cheat system with asset turns 2 years ago
Mark Veidemanis 4a9e611651
Implement updating ads with exponential backoff 2 years ago
Mark Veidemanis f7ad74c510
Improve Agora error handling 2 years ago
Mark Veidemanis 72afa1b25b
Handle Agora library exceptions properly 2 years ago
Mark Veidemanis 965bba8d15
Don't make unnecessary calls to update ad equations 2 years ago
Mark Veidemanis b60ae03699
Add extra checks around APIs 2 years ago
Mark Veidemanis f906478d45
Fix another dash bug 2 years ago
Mark Veidemanis 9352956f76
Implement converting all Revolut accounts to one currency 2 years ago
Mark Veidemanis 34f5aa97ed
Add more error handling to AgoraDesk library 2 years ago
Mark Veidemanis a4ae7da715
Nag on IRC if there's not enough in the XMR wallet to withdraw 2 years ago
Mark Veidemanis 7b5290a1e0
Implement withdrawing to wallets 2 years ago
Mark Veidemanis 49e02ce549
Move totals code to transactions 2 years ago
Mark Veidemanis f54f433265
Implement detecting Revolut callback updates 2 years ago
Mark Veidemanis d6d69f95ab
Don't print the access/refresh tokens 2 years ago
Mark Veidemanis 77033c3f09
Ignore card and negative transactions 2 years ago
Mark Veidemanis c28879c0e4
Change help text to clarify asset 2 years ago
Mark Veidemanis 8092837b37
Separate out the autoprice system for XMR and BTC 2 years ago
Mark Veidemanis 483f893ffb
Add more checks on getting messages 2 years ago
Mark Veidemanis 0cd8c0b358
Properly handle ad substitutions 2 years ago
Mark Veidemanis e9ecd5fb30
Fix posting BTC ads 2 years ago
Mark Veidemanis d1cfa74593
Fix BTC aspects of commands 2 years ago
Mark Veidemanis 3632eea5a6
Make everything work with BTC 2 years ago
Mark Veidemanis bb879508ed
Update release URL getter to understand BTC 2 years ago
Mark Veidemanis b2b669d57d
Update dashboard hook to understand BTC 2 years ago
Mark Veidemanis bb1734142d
Update dashboard getter to understand BTC 2 years ago
Mark Veidemanis fcd34a11c2
Add extra check in dashboard 2 years ago
Mark Veidemanis 3f88ab3727
Format the output from releasing funds nicer 2 years ago
Mark Veidemanis de232b1847
Implement getting XMR/BTC rates and total balance 2 years ago
Mark Veidemanis 26bbe93dd2
Run autoprice in thread 2 years ago
Mark Veidemanis 0f3dba2b06
Reimplement autoprice function better 2 years ago
Mark Veidemanis f3df9283db
Add minimum check to Agora autoprice 2 years ago
Mark Veidemanis 37aad77b5d
Make cheating configurable 2 years ago
Mark Veidemanis 023168851a
Schedule running cheat 2 years ago
Mark Veidemanis 057448c831
Fix cheating logic 2 years ago
Mark Veidemanis 14b0054339
Add extra checks for getting messages 2 years ago
Mark Veidemanis 244e1f7b7b
Fix trades command 2 years ago
Mark Veidemanis 5786ef3482
Improve market cheating algorithm 2 years ago
Mark Veidemanis 764876801d
Implement cheating the price market 2 years ago
Mark Veidemanis 7bb1931e5e
Inline the AgoraDesk library 2 years ago
Mark Veidemanis b0c401f36f
Add more error handling to Agora API calls 2 years ago
Mark Veidemanis f6da15decd
Customise messages and add extra error checking 2 years ago
Mark Veidemanis 707f23f2e3
Uncomment release funds code 2 years ago
Mark Veidemanis faa71dc2ed
Add more debugging 3 years ago
Mark Veidemanis 4053dce048
Fix alt reference implementation 3 years ago
Mark Veidemanis bc68bcd74f
Use the right variable to check amount 3 years ago
Mark Veidemanis 5ea1c26a84
Don't check non-exact values if we looked up without reference 3 years ago
Mark Veidemanis 19724eac77
Implement looking up trade by partial reference message or amount/currency 3 years ago
Mark Veidemanis 1227a16b72
Implement helper function to send messages on IRC 3 years ago
Mark Veidemanis 86271891a7
Fix and simplify dashboard hooks 3 years ago
Mark Veidemanis 05045c2a8e
Simplify dashboard 3 years ago
Mark Veidemanis b7dd850c61
Fix commands 3 years ago
Mark Veidemanis 520c0aa253
Implement help for commands 3 years ago
Mark Veidemanis 5649909385
Implement smarter ad management 3 years ago
Mark Veidemanis 21fce0e685
Reimplement messaging and implement bruteforce 3 years ago
Mark Veidemanis 1ee39989af
Post a nice message when releasing funds 3 years ago
Mark Veidemanis d060120c9b
Implement nuke command to remove all ads 3 years ago
Mark Veidemanis 80f0d4a5fd
Implement recursively getting ads 3 years ago
Mark Veidemanis 88d3cfba30
Add debug code in Transactions 3 years ago
Mark Veidemanis 44d997ea20
Add release funds command 3 years ago
Mark Veidemanis 3bcebb9d61
Add hook to release funds 3 years ago
Mark Veidemanis bdd7921bc0
Implement releasing funds 3 years ago
Mark Veidemanis d1252a1d42
Fix Transactions error messages 3 years ago
Mark Veidemanis 712a144467
Fix race conditions in cleanup 3 years ago
Mark Veidemanis 6418c5ecca
Add some comments to Transactions 3 years ago
Mark Veidemanis 4ff6875638
Allow using TX or reference for payment reference 3 years ago
Mark Veidemanis 23372bd491
Fix log message 3 years ago
Mark Veidemanis c7f4230a91
Fix getting new messages 3 years ago
Mark Veidemanis be46f79ef7
Archive old reference IDs 3 years ago
Mark Veidemanis b1fa6182ef
Fix some commands 3 years ago
Mark Veidemanis b160ac10e3
Use reference instead of transaction ID 3 years ago
Mark Veidemanis bf4381caa6
Implement looking up references 3 years ago
Mark Veidemanis 64bf5a77ee
Handle dashbord smarter and poll messages 3 years ago
Mark Veidemanis d5c272d3f9
Add some docstrings 3 years ago
Mark Veidemanis 82b70991a4
Implement the min/max acceptable margin checks 3 years ago
Mark Veidemanis 6743bd5106
Add commands to manage references 3 years ago
Mark Veidemanis 70682d1a9c
Add function to get acceptable margins 3 years ago
Mark Veidemanis cd6e19a38a
Fix incoming transaction matching 3 years ago
Mark Veidemanis f0b31ac17d
Implement more transaction handling 3 years ago
Mark Veidemanis 906048a797
Add message command 3 years ago
Mark Veidemanis 1699dc5593
Pass through Transactions to Agora 3 years ago
Mark Veidemanis 7fd784b83b
Hook in Transactions to incoming trades 3 years ago
Mark Veidemanis 535f890554
Add error handling in commands 3 years ago
Mark Veidemanis 3340b6d4da
Additional error handling 3 years ago
Mark Veidemanis f28e42c42f
Add release URLs and squish bug 3 years ago
Mark Veidemanis 0223b2ea7a
Add release_url command 3 years ago
Mark Veidemanis 266a294e73
Remove fields from transactions 3 years ago
Mark Veidemanis f296c33d1c
Amend shebang 3 years ago
Mark Veidemanis 15096be553
Implement class-based IRC commands 3 years ago
Mark Veidemanis e2099b1c82
Better error handling in total command 3 years ago
Mark Veidemanis 9991813209
Post message to IRC if there are no trades/messages 3 years ago
Mark Veidemanis 2f274390a8
Implement getting total USD value of Revolut account 3 years ago
Mark Veidemanis 45abcfc7dc
Post new trades and messages to the channel 3 years ago
Mark Veidemanis 3de4f16622
Format return from creating ad 3 years ago
Mark Veidemanis aa8041e190
Add prefix for automatic trade notifications 3 years ago
Mark Veidemanis 5c75dfeeee
Minor tweaks to Redis config and comments 3 years ago
Mark Veidemanis 2cdc43e1cd
Add docstrings in Revolut 3 years ago
Mark Veidemanis 987e8545f5
Add more docstrings to Agora code 3 years ago
Mark Veidemanis 61d48b9bfe
Add more information in transactions docstrings 3 years ago
Mark Veidemanis 7c8f77df40
Add more detail in IRC docstrings 3 years ago
Mark Veidemanis 661582a97d
Add return types in transactions docstrings 3 years ago
Mark Veidemanis 5350a2e44c
Document IRC code 3 years ago
Mark Veidemanis 6339e88385
Document IRC and cleanup 3 years ago
Mark Veidemanis b880e9763f
Strip out API parts and pass through objects smarter 3 years ago
Mark Veidemanis 83090ff6a5
Move function from IRC into transactions 3 years ago
Mark Veidemanis 5d21953199
Add docstrings to transactions functions 3 years ago
Mark Veidemanis 66b138b324
Pass through objects smarter 3 years ago
Mark Veidemanis 8139845755
Poll and post trades in the channel 3 years ago
Mark Veidemanis 20b0aef97d
Format the return from AgoraDesk better 3 years ago
Mark Veidemanis ef9e958467
Be smarter about printing out information to IRC 3 years ago
Mark Veidemanis 823c495143
Pass agora through to IRC bot 3 years ago
Mark Veidemanis 3c80ead036
Handle there not being a webhook set up 3 years ago
Mark Veidemanis d0a5782449
Correct price formula 3 years ago
Mark Veidemanis 3c7a6685b4
Exit if initial token request fails for Revolut 3 years ago
Mark Veidemanis 0c9fadbdf6
Import the right JSON exception 3 years ago
Mark Veidemanis 37b97495da
Use AgoraDesk library instead of requests 3 years ago
Mark Veidemanis 18aecc216a
Check before setting up Revolut callback URL 3 years ago
Mark Veidemanis 480e1298cd
Correct IRC certificate file 3 years ago
Mark Veidemanis 48b1871cf8
Rename Agora trades function 3 years ago
Mark Veidemanis 7b59a28c4d
Add some API endpoints 3 years ago
Mark Veidemanis 9ba5721872
Implement Revolut refresh token retrieval 3 years ago
Mark Veidemanis ff91b0ac81
Begin implementing Agora ad calls 3 years ago
Mark Veidemanis ad1fb040c4
Simplify settings handling 3 years ago
Mark Veidemanis bb7bc6498c
Add IRC module 3 years ago
Mark Veidemanis 50a777cecb
Implement more Agora functions 3 years ago
Mark Veidemanis 2601d4a2e4
Implement configuration parser 3 years ago
Mark Veidemanis 0aa1b3d58d
Add Redis functions 3 years ago
Mark Veidemanis b6fe0b433d
Handle invalid JSON in Revolut 3 years ago
Mark Veidemanis 04c20b6b69
Implement looking up transactions 3 years ago
Mark Veidemanis a584154c2f
Implement redis and store transaction data 3 years ago
Mark Veidemanis 57e5616531
Move code into classes 3 years ago
Mark Veidemanis ffd035dfbf
Switch from Flask to Klein 3 years ago
Mark Veidemanis 78a3419013
Write Flask app 3 years ago