From 9b4875dbef8933b44549641616d32424e3d8d6ed Mon Sep 17 00:00:00 2001 From: E Demirtas Date: Sun, 27 Jun 2021 11:27:57 +0100 Subject: [PATCH] added missing enpoints for lastest trade for symbol v2, last quote for symbol v2 abd forex ticker snapshot (#13) Co-authored-by: Ersin Demirtas --- src/Rest/Forex/SnapshotTickerV2.php | 25 +++++++++++++++++++++++ src/Rest/Stocks/LastQuoteForSymbolV2.php | 26 ++++++++++++++++++++++++ src/Rest/Stocks/LastTradeForSymbolV2.php | 26 ++++++++++++++++++++++++ 3 files changed, 77 insertions(+) create mode 100644 src/Rest/Forex/SnapshotTickerV2.php create mode 100644 src/Rest/Stocks/LastQuoteForSymbolV2.php create mode 100644 src/Rest/Stocks/LastTradeForSymbolV2.php diff --git a/src/Rest/Forex/SnapshotTickerV2.php b/src/Rest/Forex/SnapshotTickerV2.php new file mode 100644 index 0000000..ff2c585 --- /dev/null +++ b/src/Rest/Forex/SnapshotTickerV2.php @@ -0,0 +1,25 @@ +_get('/v2/snapshot/locale/global/markets/forex/tickers/' . $tickerSymbol); + } +} diff --git a/src/Rest/Stocks/LastQuoteForSymbolV2.php b/src/Rest/Stocks/LastQuoteForSymbolV2.php new file mode 100644 index 0000000..d6ac719 --- /dev/null +++ b/src/Rest/Stocks/LastQuoteForSymbolV2.php @@ -0,0 +1,26 @@ +_get('/v2/last/nbbo/' . $tickerSymbol); + } +} diff --git a/src/Rest/Stocks/LastTradeForSymbolV2.php b/src/Rest/Stocks/LastTradeForSymbolV2.php new file mode 100644 index 0000000..dff064c --- /dev/null +++ b/src/Rest/Stocks/LastTradeForSymbolV2.php @@ -0,0 +1,26 @@ +_get('/v2/last/trade/' . $tickerSymbol); + } +}