Skip to content

Instantly share code, notes, and snippets.

@BryantAvey
Last active April 24, 2022 20:24
Show Gist options
  • Save BryantAvey/323500044521380ccbe2b2ce7adc8500 to your computer and use it in GitHub Desktop.
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
// 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