From fd7b299442c95e6d3a870aefa51b04f38b2c70e2 Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Fri, 26 Feb 2021 06:25:08 +0330 Subject: added a health endpoint. change endpoint name to alert. added a health endpoint.maybe a travis fix? --- README.md | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 77cc7f2..b301084 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,10 @@ [![Build Status](https://travis-ci.org/terminaldweller/hived.svg?branch=main)](https://travis-ci.org/terminaldweller/hived) # hived -`hived` is the second version of my personal cryptocurrency server.
-hived is currently using redis as its DB because its tiny and fast.
-It sends notifications through telegram.
+`hived` is the second version of my personal cryptocurrency server:
+* hived is currently using redis as its DB because its tiny and fast.
+* It sends notifications through telegram.
+ Currently it has 4 endpoint:
### /price @@ -12,7 +13,8 @@ Lets you ask for the price of the currency. You can determine the currency the v ### /pair Takes in a pair of currencies and a multiplier. Determines and returns the ratio.
-### /addalert +### /alert +#### POST Takes in a name and a math expression containing the names of the currencies. Checks the expression periodically. Sends a message over telegram when the expression holds true.
The expression's result must be boolean. As an example:
```Go @@ -21,6 +23,8 @@ ETH*60/(DOGE*300000) < 4. ``` You can have as many parameters as you like. The requests for the crypto prices are all turned into individual goroutines so it's fast.
The expression evaluation is powered by [govaluate](https://github.com/Knetic/govaluate). So for a set of rules and what you can and cannot do please check the documentation over there.
+#### DELETE +Deletes the key from the DB so you will no longer receive updates.
### /ex Gets the list of currencies that are available to be traded.
@@ -51,3 +55,5 @@ You can find the swagger and postman docs under `/api`.
## TODO * fix travis * add unit tests +* fix `hived -help` crashing +* haproxy-ssl-termination -- cgit v1.2.3