summaryrefslogtreecommitdiff
path: root/quotes.h
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2021-05-31 06:11:22 -0700
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2021-05-31 06:11:22 -0700
commit18bde7391efb9c6bd6ea7846891ab5d16276a809 (patch)
tree237cc152edbdf934ed32e4c8c54c5ce97535e57f /quotes.h
downloadstonks-master.tar.gz
stonks-master.tar.xz
initial importHEADmaster
A bit messy and missing error handling in some places.
Diffstat (limited to 'quotes.h')
-rw-r--r--quotes.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/quotes.h b/quotes.h
new file mode 100644
index 0000000..489189a
--- /dev/null
+++ b/quotes.h
@@ -0,0 +1,15 @@
+#ifndef QUOTES_H
+#define QUOTES_H
+
+struct quote {
+ char *symbol;
+ char *currency;
+ double price, multiplier, change_percent;
+};
+
+void quote_free(struct quote *q);
+
+struct quote *quote_find(struct quote **quotes, int n_quotes,
+ const char *symbol, const char *currency);
+
+#endif