Skip to content

Commit 885f8b0

Browse files
Update money-flow-api.md to clarify seed parameter usage and caching issues in Coinpath API queries
1 parent 609f62d commit 885f8b0

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

docs/Examples/coinpath/money-flow-api.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,12 @@ If the initial count of transactions for the address under coinpath exceeds this
112112

113113
## Seed
114114

115-
A random number used to prevent caching of results. Only needed if blockchain data is expected to be modified during coinpath calculations.
115+
A random number used to prevent caching of results. Only the Coinpath API is subject to session management that caches results of intermediate stages. Caching issues may occur if two Coinpath queries with the same parameters are run in parallel. To avoid that, you can:
116+
117+
1. **Add the `seed` parameter** — Set it to a random number for every query. This forces a new session for each request and avoids the error.
118+
2. **Run queries sequentially** — Sync queries so that those with the same set of parameters run one after the other instead of in parallel.
119+
120+
Use a seed when blockchain data is expected to change during coinpath calculations, or when you run parallel queries with identical parameters.
116121

117122
---
118123

0 commit comments

Comments
 (0)