Git Product home page Git Product logo

currency_fetch's Introduction

web_cur

A dummy web app made as a test-task for a job interview.

Makes use of the following technologies: -WebSockets, -FastAPI, -multiprocessing, -Docker,

Uses separate proceses for handling the WebSocket connections and the FastAPI server. multiprocessing.Queue is used for communication between the processes.

The WebSocket process is responsible for handling the WebSocket connections and sending the messages to OKX. The FastAPI process is responsible for handling the users requests.

Endpoints

  • /api/exchange/courses
  • /api/exchange/?pair_name= pair_name is required and can be one of the following: BTC-USDT, ETH-USDT, XRP-USDT

How to run

Clone the repository.

Enter the project directory.

cd web_cur

Create a config.yaml file

nano config.yaml

Config.yaml

OKX_API_KEY: 
OKX_SECRET: 
OKX_BASE_PUBLIC_URL: wss://ws.okx.com:8443/ws/v5/public


CURRENCY_PAIRS: ['BTC-USDT', 'ETH-USDT', 'XRP-USDT']

Run the following command:

sudo docker-compose -f .prodcontainer/docker-compose.yaml build --no-cache

After the build is complete, run the following command:

sudo docker-compose -f .prodcontainer/docker-compose.yaml up

currency_fetch's People

Contributors

rerubis avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.