An API that allows data scientists to effortlessly send trading signals to the Set protocol.
- Functions are in the
./functionsfolder - Each function is nested into
./functions/{callType}/{descriptiveName}/onRequest.f.js
Environmental keys are used for authentication and accessing Tokensets. Keys are deployed remotely during deployement.
- Run
firebase functions:config:set auth.key="THE API KEY" tokensets.key="THE KEY" - Run
firebase functions:config:getto see the keys.
- To use environmental variables, you must first run
firebase functions:config:get > .runtimeconfig.jsonfrom yourfunctionsfolder. - Then emulate Firebase Functions by running
firebase emulators:startfrom thefunctionsdirectory of this project.
- Run
firebase deployfrom the root directory of this project.