-
Notifications
You must be signed in to change notification settings - Fork 17
kucoin backend #494
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
kucoin backend #494
Changes from all commits
Commits
Show all changes
82 commits
Select commit
Hold shift + click to select a range
5fdec80
Add cryptofeeds data feed module,
jaredgoldman c96d438
Start adding history client
jaredgoldman ad9d645
WIP - setup basic history and streaming client
jaredgoldman c751c36
Update trade message format
jaredgoldman 8e91e21
WIP - ensure `asyncio` pumps the event loop each send
goodboy 7074ca7
Implement Kucoin auth and last trades call
jaredgoldman cda045f
Abstract header gen to seperate function
jaredgoldman 1a655b7
Ensure we're passing the correct api version to the header builder,
jaredgoldman 109e7d7
Add back static API version in headers
jaredgoldman ade2c32
Succesfully connect to kucoin ws
jaredgoldman ac34ca7
Add sub method to flow
jaredgoldman a3c7bec
Implement working message streaming
jaredgoldman b14b323
Remove breakpoint in web_bs,
jaredgoldman 199a708
Spawn background ping task
jaredgoldman 1c4c19b
Clean up broker code,
jaredgoldman 50e1070
More cleanup, add comments re sub func
jaredgoldman 9bf6f55
Label private methods accordingly, remove cryptofeeds module
jaredgoldman 6ad1e3d
Correct typo in license
jaredgoldman 5ff0cc7
Cast/validate streamed messages
jaredgoldman 52070c0
Remove typo
jaredgoldman ac31bca
Make broker creds/auth optional
jaredgoldman 7bdebd4
Add exponential retry case for history client
jaredgoldman 32107d0
Strengthen retry case and add comments
jaredgoldman dcbb7fa
Remove float conversion for config key id
jaredgoldman e2e5191
Remove breaking useless condition for determining if res is list of o…
jaredgoldman ae170f2
Add more informative logs on startup
jaredgoldman 81890a3
Leave datetimes alone!
jaredgoldman 788e158
Stop still converting datetime to float
jaredgoldman dfd030a
Remove float conversion of key_id again
jaredgoldman 52aadb3
Add L1 data feed and correct history issue
jaredgoldman 68a0609
Format and ensure we're only grabbing the most closest bid and ask
jaredgoldman 68d0327
Remove breakpoints, simplify backoff logic
jaredgoldman 54cf648
Ensure sub logging dict attritbutes will be there
jaredgoldman b71f6b6
Strip uneccesary data from ticks in l1 data feed
jaredgoldman 48c3b33
Format imports with parenthesis
jaredgoldman c68fcf7
Remove extra line from docstrings
jaredgoldman ca937df
Add api doc links in structs
jaredgoldman 208a8e5
Remove unecessary config vars
jaredgoldman 13df3e7
Refactor sign gen into one line
jaredgoldman 5a0d29c
Add ws token api doc link
jaredgoldman ea21656
Don't cache pairs in _get_pairs call
jaredgoldman 9db84e8
Remove norm_pairs method and do all normalization in initial _get_pai…
jaredgoldman 93e7d54
Add api doc links to _get_bars def
jaredgoldman 3bed3a6
Implement duplicate filtering at message level
jaredgoldman d1b0608
Remove breakpoint
jaredgoldman 6e55f67
Format condition for filtering and add link to docs explaining need f…
jaredgoldman bedbbc3
Only diff trade time
jaredgoldman d2f3a79
Use pendulum for header timestamp,
jaredgoldman ace04af
Use anext() in kucoin stream_quotes
jaredgoldman ff0f8df
Improve client._get_ws_token docstring
jaredgoldman 2c82b2a
Remove breakpoint in binance
jaredgoldman 52a015d
Remove typo in binance
jaredgoldman b00abd0
Add a fail case ws token request
jaredgoldman 92f372d
Use proper value for init message
jaredgoldman 63e34cf
Typecast config, add type hint to pair in init message creation and t…
jaredgoldman 89bb124
Remove old comments normalize arguents and improve pair fetching log
jaredgoldman ebfd490
Cache instead of get pairs in symbol search
jaredgoldman 11bd2e2
Use datetime | none instead of Optional[datetime] in get_bars
jaredgoldman 9f5dfe8
Remove anext() comment
jaredgoldman 1b1e35d
Add comment explaining waiting for first trade quote
jaredgoldman f67ffeb
Remove extra Noen check on msg.get
jaredgoldman 672c01f
Use trade_data_ts for trade message receival
jaredgoldman 4f576b6
Fix typo with ts vars
jaredgoldman a111819
Few fixes after review to get running again B)
goodboy 59249a8
Merge pull request #498 from pikers/small_kucoin_fixes
jaredgoldman 8403d8a
Simplify numpy mapping logic
jaredgoldman 9706803
Refactor streaming logic to be less nested and readable
jaredgoldman dae56ba
Refactor streaming logic to be less nested and readable
jaredgoldman 0e4095c
Don't yield ws from the ping task
jaredgoldman b01771b
Add comments to kucoin->piker bar conversion
jaredgoldman a109a8b
Add linting fixes
jaredgoldman 37ce04c
Linting fixes
jaredgoldman 9fcfb8d
More linting fixes
jaredgoldman fcdddad
Use singlequotes
jaredgoldman d07a73c
Add type annotation for open_ping_task'
jaredgoldman 6f91c29
Type bars data dict
jaredgoldman d772fe4
Comment out unused args
jaredgoldman efad49e
Raise ValueError if no config is found when sending authenticated hea…
jaredgoldman a69c8a8
Uncomment loglevel
jaredgoldman a06a4f6
Remove unused timeframe var from open_history_client
jaredgoldman ae3f669
Fix type hinting for stream_messages return type
jaredgoldman 3836f7d
Run autopep8, add default case for message stream match case
jaredgoldman File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.