We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d9872b commit e725a0bCopy full SHA for e725a0b
alpaca_trade_api/rest.py
@@ -876,6 +876,12 @@ def get_latest_crypto_xbbo(self,
876
api_version='v1beta1')
877
return self.response_wrapper(resp['xbbo'], QuoteV2)
878
879
+ def get_crypto_snapshot(self, symbol: str, exchange: str) -> SnapshotV2:
880
+ resp = self.data_get('/crypto/{}/snapshot'.format(symbol),
881
+ data={'exchange': exchange},
882
+ api_version='v1beta1')
883
+ return self.response_wrapper(resp, SnapshotV2)
884
+
885
def get_clock(self) -> Clock:
886
resp = self.get('/clock')
887
return self.response_wrapper(resp, Clock)
0 commit comments