aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2021-02-26 02:55:08 +0000
committerterminaldweller <thabogre@gmail.com>2021-02-26 02:55:08 +0000
commitfd7b299442c95e6d3a870aefa51b04f38b2c70e2 (patch)
tree60fe45334c7748be3b4a4dc98e9a0dd6fb1fbbec /README.md
parentupdated readme with todo list (diff)
downloadhived-fd7b299442c95e6d3a870aefa51b04f38b2c70e2.tar.gz
hived-fd7b299442c95e6d3a870aefa51b04f38b2c70e2.zip
added a health endpoint. change endpoint name to alert. added a health endpoint.maybe a travis fix?
Diffstat (limited to 'README.md')
-rw-r--r--README.md14
1 files changed, 10 insertions, 4 deletions
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.<br/>
-hived is currently using redis as its DB because its tiny and fast.<br/>
-It sends notifications through telegram.<br/>
+`hived` is the second version of my personal cryptocurrency server:<br/>
+* hived is currently using redis as its DB because its tiny and fast.<br/>
+* It sends notifications through telegram.<br/>
+
Currently it has 4 endpoint:<br/>
### /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.<br/>
-### /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.<br/>
The expression's result must be boolean. As an example:<br/>
```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.<br/>
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.<br/>
+#### DELETE
+Deletes the key from the DB so you will no longer receive updates.<br/>
### /ex
Gets the list of currencies that are available to be traded.<br/>
@@ -51,3 +55,5 @@ You can find the swagger and postman docs under `/api`.<br/>
## TODO
* fix travis
* add unit tests
+* fix `hived -help` crashing
+* haproxy-ssl-termination