blob: 8a0dcafc051d84fa0b8bf2b0e513385f35369668 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#ifndef TDA_H
#define TDA_H
#include "assets.h"
#include "quotes.h"
extern char *tda_refresh_token;
struct tda_session {
char *client_id, *account_id, *access_token, *refresh_token;
};
struct tda_session *tda_init(const char *, const char *, const char *);
void tda_cleanup(struct tda_session *);
int tda_load_assets(struct tda_session *, struct asset **assets);
int tda_get_quote_symbols(struct asset **assets, int n, char **bufptr);
int tda_get_quotes(struct tda_session *, const char *, struct quote ***);
#endif
|