Skip to content

Integrate Spotbit as a Specter Plugin#1

Draft
ahv15 wants to merge 9 commits intomasterfrom
spotbit-plugin
Draft

Integrate Spotbit as a Specter Plugin#1
ahv15 wants to merge 9 commits intomasterfrom
spotbit-plugin

Conversation

@ahv15
Copy link
Copy Markdown
Owner

@ahv15 ahv15 commented Jul 4, 2022

Integrate the necessary components from Spotbit to allow users to use exchange rates from a local cache instead. This PR involves the following:

  • Update the local cache on a regular basis.
  • Fetch and store historical price exchange data.
  • Configuration page for the user to choose currencies, exchanges, frequency of historical data and so on.
  • Status page for the user to view whether data has been completely collected or not and make updates based on that.

To test the current progress, try accessing the endpoints. For example (http://127.0.0.1:25441/svc/spotbit/now/usd/bitstamp and http://127.0.0.1:25441/svc/spotbit/hist/usd/bitstamp/0/1658843400000)

@ahv15 ahv15 marked this pull request as draft July 4, 2022 15:30
@k9ert
Copy link
Copy Markdown

k9ert commented Aug 31, 2022

I got:

                You have an inconsistent project file-layout in folder
                /home/kim/src/spotbit
                Either you:
                * Have a src-folder and you can have .py-files in your projectroot OR
                * you don't have a src-folder but ./extensionid/service.py (+ __init__.py)
                But not having a ./src-folder AND some .py-file in the project-root is not allowed.

Anything special to get the project up and running?

@@ -0,0 +1,2 @@
cryptoadvance.specter==1.8.1
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Plugin discovery didn't work for me with this version. Use the latest?

@k9ert
Copy link
Copy Markdown

k9ert commented Sep 8, 2022

Demo Video available here: https://www.youtube.com/watch?v=cNcQ1-ccedI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants