Giter Club home page Giter Club logo

crypto-search-system's Introduction

Crypto search platform

Consists of 2 components:

  1. Crypto indexer that fetches crypto data from FinnHub REST API and indexes it to ElasticSearch
  2. Crypto search service that accepts query and uses ElasticSearch to read all matching cryptocurrencies

Technology stack:

  1. Java 21
  2. Elasticsearch
  3. Kibana
  4. APM Java Agent
  5. gRPC
  6. Dagger (for dependency injection)
  7. JUnit, Mockito, AssertJ for testing

Start locally

export FINN_HUB_API_KEY=...
docker-compose up --build

View data in index:

curl http://localhost:9200/cryptos/_search?pretty&q=*:*&size=5000 | jq

Test locally

grpc-client-cli --proto ~/IdeaProjects/crypto-search-system/crypto-search-service/src/main/proto/crypto-search.proto localhost:8000

Example usage

Message json (type ? to see defaults): {"query": "bitmex"}
[{
  "symbol": "XRPUSDT",
  "description": "Bitmex XRPUSDT",
  "marketName": "BITMEX"
},
{
  "symbol": "BCHUSDT",
  "description": "Bitmex BCHUSDT",
  "marketName": "BITMEX"
},
{
  "symbol": "ARBUSD",
  "description": "Bitmex ARBUSD",
  "marketName": "BITMEX"
},
{
  "symbol": "ETHU23",
  "description": "Bitmex ETHU23",
  "marketName": "BITMEX"
},
{
  "symbol": "PEPEUSDT",
  "description": "Bitmex PEPEUSDT",
  "marketName": "BITMEX"
},
{
  "symbol": "1TAIDOGEUSDT",
  "description": "Bitmex 1TAIDOGEUSDT",
  "marketName": "BITMEX"
},
{
  "symbol": "ADAU23",
  "description": "Bitmex ADAU23",
  "marketName": "BITMEX"
},
{
  "symbol": "GMXUSDT",
  "description": "Bitmex GMXUSDT",
  "marketName": "BITMEX"
},
{
  "symbol": "BMEXUSDT",
  "description": "Bitmex BMEXUSDT",
  "marketName": "BITMEX"
},
{
  "symbol": "TRX_USDT",
  "description": "Bitmex TRX_USDT",
  "marketName": "BITMEX"
}]
Message json (type ? to see defaults): 

Kibana

http://localhost:5601/

crypto-search-system's People

Watchers

 avatar

Forkers

muhammady668g

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.