Skip to content

Latest commit

 

History

History
125 lines (102 loc) · 2.08 KB

README.md

File metadata and controls

125 lines (102 loc) · 2.08 KB

servergoQbites

Go GraphQL BitCoin

servergoQbites is graphql server for ai indicator project

🛠️ Installation

run your mongodb database on port 27017 install go then run

go run server.go

🏗️ Usage

get list of all crypto coin in the database

query{
  Allcrypto
}

get data of specific crypto

query{
    crypto(name: $name){
      name
      time
    	projection
    	gainlose{
        M
        W
        D
        
      }
    	
          data{
      hcl{
        opentime
        Open
        High
        Low
        Close
          Volume
        
        
      }
        formula{
          rsi
          rsiK
          rsiD
          aroonu
          aroond
          macd
          histogram
         
        }
        ai{
          bigmome{
            BUY2
            BUY1
            ambi
            
          }
          sell{
            amb0
            amb1
            amb2
            amb3
            amb99
            
          }
          smallmome{
            amo
            ci
            
          }
          buy{
            ambb
            ambb5
            ww6
            ww7
            
          }
          mome{
            amb14
            amb15
            amb13
            amb55
            
          }
          other{
            amo
            amo1
            BUYSELL
            BUYSELLevel
            
          }
          
        }
      }
    }
  }

get user data

query{
  User(nameuser: $nameuser) {
      nameuser
      balance {
        cryptoName
        totale
      }
    }
}

🏴‍☠️ License

MIT