Last active
April 24, 2022 20:24
-
-
Save BryantAvey/323500044521380ccbe2b2ce7adc8500 to your computer and use it in GitHub Desktop.
TD Ameritrade API with Neo4j: Cypher to create PRICE_HISTORY Relationships between Instrument and Price
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Create PRICE_HISTORY relationship between instrument and Price | |
MATCH (i:Instrument), (p:Price) WHERE i.symbol = p.ticker | |
MERGE (i)-[:PRICE_HISTORY {tradingDate:p.timestamp}]->(p) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment