mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-20 06:25:07 +00:00
Generate clients (#206)
This commit is contained in:
12
examples/stock/quote/node/getAStockQuote.js
Executable file
12
examples/stock/quote/node/getAStockQuote.js
Executable file
@@ -0,0 +1,12 @@
|
||||
import * as stock from "m3o/stock";
|
||||
|
||||
// Get the last quote for the stock
|
||||
async function GetAstockQuote() {
|
||||
let stockService = new stock.StockService(process.env.MICRO_API_TOKEN);
|
||||
let rsp = await stockService.quote({
|
||||
symbol: "AAPL",
|
||||
});
|
||||
console.log(rsp);
|
||||
}
|
||||
|
||||
await GetAstockQuote();
|
||||
Reference in New Issue
Block a user