{"openapi":"3.1.0","info":{"title":"MarketRender API","version":"1","summary":"Crypto trend readings, flip levels, flips and the whole-market score, by fixed rules.","description":"Free, read-only JSON: whether the crypto market and each scored coin is bullish or bearish on 4-hour, daily, weekly and monthly candles, in US dollars and against Bitcoin, with every flip and what followed. No key; answers may be cached for 60 seconds. The readings describe trends by fixed rules; they are not investment advice.","termsOfService":"https://marketrender.com/legal/terms","contact":{"name":"MarketRender","email":"marketrender@gmail.com","url":"https://marketrender.com/api-docs"},"license":{"name":"Free for non-commercial use with a visible credit; see Using the data","url":"https://marketrender.com/api-docs#using-the-data"}},"externalDocs":{"description":"The API documentation","url":"https://marketrender.com/api-docs"},"servers":[{"url":"https://marketrender.com"}],"security":[],"paths":{"/api/v1/market":{"get":{"operationId":"market","summary":"Market overview","description":"The whole market, Bitcoin and the altcoins on every candle size, how many of the 100 largest coins have a bullish or a bearish flip line, the flip lines of the coins in the whole-market score, market-wide figures with 30 days of history, and the flips of the last 7 days.\n\nLeft out of the sample: bitcoin and altcoins (the same shape as market), marketVsBitcoin, the other three rows of participation, memberLines and breadth, the other readings (totalMcap, altMcap, total3Mcap, totalExStablesMcap, volume24h, btcDominance, ethDominance, stableDominance, stableSupply, altseason, btcFunding, btcOpenInterest, btcSpxCorr90, btcNdxCorr90) and each flip's imageUrl.\n\nmarket is the whole market (rule set market-v2.0); altcoins is an index of the scored coins' market value without Bitcoin. Their flip prices are index levels, not dollars.\n\nparticipation counts the 100 largest scored coins by the side of their flip line on each candle size's newest candle: bull and bear are the coins whose line is bullish or bearish, unsettled those whose line has not settled yet; the three add up to n.\n\nmemberLines: The flip lines of the coins in the whole-market score on each candle size's newest bar: how many are bullish, bearish or not settled yet.\n\nbreadth: Score bands of the 100 largest coins (bull +20 or more, neutral, bear −20 or less), kept for the record; the pages show participation by trend. Its bull, neutral, bear, early and warmingUp add up to n.\n\nmarketVsBitcoin: how often the whole market's daily state matched Bitcoin's. Under market-v2.0 this is high by construction: the market's state can turn bullish only while Bitcoin's line is bullish, and bearish only while it is bearish. The pages do not print it then.","externalDocs":{"url":"https://marketrender.com/api-docs#market"},"parameters":[],"responses":{"200":{"description":"The whole market, Bitcoin and the altcoins on every candle size, how many of the 100 largest coins have a bullish or a bearish flip line, the flip lines of the coins in the whole-market score, market-wide figures with 30 days of history, and the flips of the last 7 days.","headers":{"Access-Control-Allow-Origin":{"description":"Every answer may be read from any web page.","schema":{"type":"string","const":"*"}},"Cache-Control":{"description":"Answers may be cached for 60 seconds.","schema":{"type":"string","const":"public, max-age=60"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketOverview"},"examples":{"trimmed":{"summary":"A real answer, trimmed: lists keep one item and some fields are left out.","value":{"asOf":"2026-10-06T16:21:14.728Z","market":{"id":"_market","name":"Whole market","symbol":"MARKET","readings":{"1d":{"score":87,"label":"Strong bull","regime":1,"direction":1,"early":false,"barOpenTime":"2026-10-05T00:00:00.000Z"}},"lastWeeklyFlip":{"tf":"1w","to":1,"closedAt":"2026-09-28T00:00:00.000Z","price":506.02}},"marketParts":{"bitcoin":100,"altcoins":100,"breadth":62.63},"participation":[{"tf":"1d","n":100,"bull":79,"bear":21,"unsettled":0}],"memberLines":[{"tf":"1d","openTime":"2026-10-05T00:00:00.000Z","members":200,"settled":198,"bull":161,"bear":37,"unsettled":1,"source":"stored"}],"breadth":[{"tf":"1d","n":100,"bull":85,"neutral":5,"bear":3,"early":5,"warmingUp":2}],"readings":{"fearGreed":{"now":73,"asOf":"2026-10-06T00:00:00.000Z","then":73,"history":[]}},"recentFlips":[{"tf":"1d","to":1,"closedAt":"2026-10-06T00:00:00.000Z","price":0.07534,"coinId":"mubarak","name":"Mubarak","symbol":"MUBARAK","currentPrice":0.07639,"priceAt":"2026-10-06T18:56:17.941Z","priceKind":"live","sincePct":1.39}]}}}}}},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/api/v1/market/score":{"get":{"operationId":"marketScore","summary":"Crypto Trend Score (the whole-market trend score)","description":"The Crypto Trend Score, the whole crypto market's trend score from −100 to +100, on one candle size: every scored candle since 2018 with its three parts, the breadth behind it, and every flip of the whole market with what followed.\n\nLeft out of the sample: sparks (the newest candles of each size, for small charts), the other readings, and most of record, which has the same shape as the track record below.\n\nbars and breadth are oldest first and run from 2018. The daily answer is large, about 800 KB; the weekly and monthly ones are much smaller.\n\nstate is the whole market's side on that candle (1 bullish, −1 bearish). level is the close of an index of every scored coin by market value, not a price in dollars.\n\nrules=market-v1.2 and rules=market-v1.1 serve the rule sets the site showed before; both are still computed.\n\nmarket-v2.0 is made of three flip lines: the Bitcoin part is 100 while Bitcoin's flip line is bullish and −100 while it is bearish, the altcoin part is the same for the altcoin index, and the breadth part comes from the share of the scored coins whose own flip line is bullish. rebuiltOn is the date it went live; its history before that date was worked out again on that date, with the coins counted then.\n\nUnder market-v2.0, a breadth point's bullPct is the share of the coins with a settled flip line whose line is bullish, n is how many coins have a settled line and members how many were counted; abovePct and baseCount are null, and withheld is few_lines when fewer than ten flip lines have settled.\n\nUnder market-v1.2 and market-v1.1, bullPct is the share of the coins with a ±35 side whose trend score had turned bullish by the ±35 rule. market-v1.2 counts the above-base share only over the coins with a base reading and gives no score to a candle when fewer than ten coins have a ±35 side or a base reading (withheld says why); baseCount, members and withheld are null under market-v1.1.","externalDocs":{"url":"https://marketrender.com/api-docs#market-score"},"parameters":[{"name":"tf","in":"query","required":false,"description":"Candle size: 4-hour, daily, weekly or monthly. Case matters: 1M is a month, and 1m is refused.","schema":{"type":"string","enum":["4h","1d","1w","1M"],"default":"1d"}},{"name":"rules","in":"query","required":false,"description":"The whole-market rule set: market-v2.0, built from flip lines; market-v1.2, the one with corrected breadth; or market-v1.1, the first. All three are computed.","schema":{"type":"string","enum":["market-v2.0","market-v1.2","market-v1.1"],"default":"market-v2.0"}}],"responses":{"200":{"description":"The Crypto Trend Score, the whole crypto market's trend score from −100 to +100, on one candle size: every scored candle since 2018 with its three parts, the breadth behind it, and every flip of the whole market with what followed.","headers":{"Access-Control-Allow-Origin":{"description":"Every answer may be read from any web page.","schema":{"type":"string","const":"*"}},"Cache-Control":{"description":"Answers may be cached for 60 seconds.","schema":{"type":"string","const":"public, max-age=60"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketScoreData"},"examples":{"trimmed":{"summary":"A real answer, trimmed: lists keep one item and some fields are left out.","value":{"asOf":"2026-10-06T16:21:14.728Z","tf":"1d","readings":{"1d":{"score":87,"label":"Strong bull","regime":1,"direction":1,"early":false,"barOpenTime":"2026-10-05T00:00:00.000Z"}},"bars":[{"openTime":"2026-10-05T00:00:00.000Z","score":87,"state":1,"level":510.83,"early":false,"bitcoin":100,"altcoins":100,"breadth":62.63}],"breadth":[{"openTime":"2026-10-05T00:00:00.000Z","bullPct":81.31,"abovePct":null,"n":198,"baseCount":null,"members":200,"withheld":null}],"record":{"rules":"market-v2.0","tf":"1d","flips":[{"closedAt":"2026-08-22T00:00:00.000Z","to":1,"after7":-0.99,"after30":5.24}]},"rules":"market-v2.0","correctedOn":"2026-10-04T00:00:00.000Z","rebuiltOn":"2026-10-05T00:00:00.000Z"}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/api/v1/market/outside":{"get":{"operationId":"marketOutside","summary":"Outside crypto","description":"The trends of gold and of Bitcoin priced in gold, each with its latest flips and two years of weekly closes, and three US money readings (the dollar against other currencies, the 10-year Treasury yield, the Fed's net liquidity) with their changes.\n\nLeft out of the sample: the other candle sizes of gold (1d, 1M), the rest of the flips (the newest five are listed), the second trend series (Bitcoin priced in gold, the same shape), the other two money readings (dollar and liquidity), and all but one point of every line.\n\nA series the engine has not scored yet has available false and no trends. Trend series that are not shown are left out of series.\n\nA trend's direction is 1 while the flip line is bullish and −1 while it is bearish. sinceAt is the close of the flip candle that began the trend, changePct the change from that candle's close to the newest close, in percent; both are null without a recorded flip. A flip's after30 and after90 are the changes 30 and 90 days after it, in percent, null until they have happened. flipCount counts every flip on record. Flips are dated by their candle's last day.\n\nOnly percent changes and dates are given for trends. A line, where there is one, has one close a week for two years: gold in US dollars per PAXG, Bitcoin priced in gold in ounces of gold per bitcoin.\n\nmacro: unit says what value is (index: a level; percent: a rate in percent; billions: billions of US dollars). changeKind says what change4w and change52w are: percent of the earlier value, or points of a rate. Each change is null when no reading from that long before exists. line has one point a week for two years.","externalDocs":{"url":"https://marketrender.com/api-docs#market-outside"},"parameters":[],"responses":{"200":{"description":"The trends of gold and of Bitcoin priced in gold, each with its latest flips and two years of weekly closes, and three US money readings (the dollar against other currencies, the 10-year Treasury yield, the Fed's net liquidity) with their changes.","headers":{"Access-Control-Allow-Origin":{"description":"Every answer may be read from any web page.","schema":{"type":"string","const":"*"}},"Cache-Control":{"description":"Answers may be cached for 60 seconds.","schema":{"type":"string","const":"public, max-age=60"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutsideCrypto"},"examples":{"trimmed":{"summary":"A real answer, trimmed: lists keep one item and some fields are left out.","value":{"asOf":"2026-10-06T16:21:14.728Z","series":[{"key":"gold","name":"Gold","note":"Measured with PAXG, a token backed by one ounce of gold. It also trades at weekends, when gold markets are closed.","available":true,"trends":{"1w":{"tf":"1w","direction":1,"sinceAt":"2026-08-24T00:00:00.000Z","changePct":4.2,"flipCount":9,"flips":[{"closedAt":"2026-08-24T00:00:00.000Z","to":1,"after30":3.1,"after90":null}]}},"line":[{"day":"2026-10-05","value":3412.5}]}],"macro":[{"key":"yield10","name":"US 10-year Treasury yield","note":null,"unit":"percent","changeKind":"points","available":true,"latest":{"day":"2026-10-08","value":5.22},"change4w":-0.07,"change52w":0.31,"line":[{"day":"2026-10-08","value":5.22}]}]}}}}}},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/api/v1/market/sectors":{"get":{"operationId":"marketSectors","summary":"Sectors","description":"For each of eight sectors (CoinGecko categories as of today; a coin can be in more than one), the coins in it now and the newest share of its coins whose trend is bullish on each candle size. The history is on the sectors page.\n\nLeft out of the sample: the other seven sectors, the other candle sizes and all but one coin of each list.\n\nA share needs at least 10 coins with a settled trend; below that bullPct is null and withheld says why.\n\nSectors are breadth counts, not trends: a sector has no state and no flips.","externalDocs":{"url":"https://marketrender.com/api-docs#market-sectors"},"parameters":[],"responses":{"200":{"description":"For each of eight sectors (CoinGecko categories as of today; a coin can be in more than one), the coins in it now and the newest share of its coins whose trend is bullish on each candle size. The history is on the sectors page.","headers":{"Access-Control-Allow-Origin":{"description":"Every answer may be read from any web page.","schema":{"type":"string","const":"*"}},"Cache-Control":{"description":"Answers may be cached for 60 seconds.","schema":{"type":"string","const":"public, max-age=60"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SectorsData"},"examples":{"trimmed":{"summary":"A real answer, trimmed: lists keep one item and some fields are left out.","value":{"asOf":"2026-10-06T16:21:14.728Z","firstCounted":"2026-10-14T18:30:54.452Z","sectors":[{"key":"layer-1","name":"Layer 1 blockchains","categories":["Layer 1 (L1)"],"coinCount":77,"coins":[{"id":"ethereum","name":"Ethereum","symbol":"eth","rank":2}],"readings":{"1d":{"openTime":"2026-10-13T00:00:00.000Z","bullPct":65,"bull":48,"n":74,"members":77,"withheld":null}}}]}}}}}},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/api/v1/scanner":{"get":{"operationId":"scanner","summary":"Coin list with scores","description":"Every scored coin with its trend score on each candle size, its price and its weekly flip level, 50 rows a page.\n\nparticipation is the same count as on the market overview, for daily candles only (null while not stored): of the 100 largest scored coins, how many have a bullish flip line, how many a bearish one and how many have none settled yet. breadth is the older count by score band, kept for the record.\n\nreadings has one entry per candle size (4h, 1d, 1w, 1M); the sample keeps the daily one.\n\ntotal is the number of rows that match the filter and the search, before paging.\n\ntoFlipLevelPct is the price against the weekly flip level: positive above it.","externalDocs":{"url":"https://marketrender.com/api-docs#scanner"},"parameters":[{"name":"in","in":"query","required":false,"description":"The quote: prices and trends in US dollars or against Bitcoin.","schema":{"type":"string","enum":["usd","btc"],"default":"usd"}},{"name":"filter","in":"query","required":false,"description":"Which coins: all, bullish or bearish on weekly candles, or flipped on daily or weekly candles in the last 7 days.","schema":{"type":"string","enum":["all","bullish","bearish","flipped"],"default":"all"}},{"name":"q","in":"query","required":false,"description":"Keeps the coins whose name or symbol contains this text (not case-sensitive). Left out: no search.","schema":{"type":"string","maxLength":64}},{"name":"page","in":"query","required":false,"description":"Which page of 50 rows.","schema":{"type":"integer","minimum":1,"maximum":10000,"default":1}},{"name":"sort","in":"query","required":false,"description":"The order: market-cap rank, the trend score of one candle size, the date of the last weekly flip, or the distance to the weekly flip level.","schema":{"type":"string","enum":["rank","4h","1d","1w","1M","flip","level"],"default":"rank"}},{"name":"dir","in":"query","required":false,"description":"The order: ascending or descending. Left out: asc for rank, desc for the other columns.","schema":{"type":"string","enum":["asc","desc"]}}],"responses":{"200":{"description":"Every scored coin with its trend score on each candle size, its price and its weekly flip level, 50 rows a page.","headers":{"Access-Control-Allow-Origin":{"description":"Every answer may be read from any web page.","schema":{"type":"string","const":"*"}},"Cache-Control":{"description":"Answers may be cached for 60 seconds.","schema":{"type":"string","const":"public, max-age=60"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScannerPage"},"examples":{"trimmed":{"summary":"A real answer, trimmed: lists keep one item and some fields are left out.","value":{"asOf":"2026-10-06T16:21:14.728Z","query":{"quote":"USD","filter":"all","search":"","page":1,"pageSize":50,"sort":"rank","dir":"asc"},"total":261,"rows":[{"rank":1,"coinId":"bitcoin","name":"Bitcoin","symbol":"BTC","imageUrl":"https://coin-images.coingecko.com/coins/images/1/large/bitcoin.png?1696501400","price":85538,"priceAt":"2026-10-06T18:56:17.941Z","priceKind":"live","readings":{"1d":{"score":98,"label":"Strong bull","regime":1,"direction":1,"early":false,"barOpenTime":"2026-10-05T00:00:00.000Z"}},"lastWeeklyFlip":{"tf":"1w","to":1,"closedAt":"2026-09-07T00:00:00.000Z","price":80341.83},"toFlipLevelPct":28.03,"vsBtc30dPct":null,"inMarketScore":true}],"breadth":{"tf":"1d","n":100,"bull":85,"neutral":5,"bear":3,"early":5,"warmingUp":2},"participation":{"tf":"1d","n":100,"bull":79,"bear":21,"unsettled":0},"marketCount":200}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/api/v1/flips/latest":{"get":{"operationId":"flipsLatest","summary":"Latest flips","description":"Every coin's flips over a recent period, newest first, with how long each trend lasted and the price change since, 50 rows a page.\n\nLeft out of the sample: each row's imageUrl.\n\nuntilNextPct is the change from the flip price to the next flip's price, or to the current price while the trend is still on (ongoing). after7 and after30 stay null until 7 and 30 days have passed.\n\nIn the query object, tf is called candles and top is called size.","externalDocs":{"url":"https://marketrender.com/api-docs#flips-latest"},"parameters":[{"name":"in","in":"query","required":false,"description":"The quote: flips of the US-dollar trend or of the trend against Bitcoin.","schema":{"type":"string","enum":["usd","btc"],"default":"usd"}},{"name":"period","in":"query","required":false,"description":"How far back: 7, 30 or 90 days, or a year.","schema":{"type":"string","enum":["7d","30d","90d","1y"],"default":"7d"}},{"name":"to","in":"query","required":false,"description":"Flips to bullish, to bearish, or both.","schema":{"type":"string","enum":["both","bull","bear"],"default":"both"}},{"name":"tf","in":"query","required":false,"description":"Candle size: one size, all of them, or day-up (daily, weekly and monthly, leaving out the many short 4-hour flips).","schema":{"type":"string","enum":["day-up","4h","1d","1w","1M","all"],"default":"day-up"}},{"name":"top","in":"query","required":false,"description":"Only the 20, 100 or 200 largest coins by market value, or every scored coin.","schema":{"type":"string","enum":["all","20","100","200"],"default":"all"}},{"name":"coin","in":"query","required":false,"description":"Only this coin's flips. Left out: every coin.","schema":{"type":"string","pattern":"^(?:[a-z0-9][a-z0-9-]{0,99}|_[a-z0-9]{1,20})$","maxLength":100}},{"name":"q","in":"query","required":false,"description":"Keeps the coins whose name or symbol contains this text (not case-sensitive). Left out: no search.","schema":{"type":"string","maxLength":64}},{"name":"page","in":"query","required":false,"description":"Which page of 50 rows.","schema":{"type":"integer","minimum":1,"maximum":10000,"default":1}},{"name":"sort","in":"query","required":false,"description":"The order: when the flip candle closed, market-cap rank, how long the trend lasted, or the price change from the flip.","schema":{"type":"string","enum":["closed","rank","lasted","change"],"default":"closed"}},{"name":"dir","in":"query","required":false,"description":"The order: ascending or descending. Left out: asc for rank, desc for the other columns.","schema":{"type":"string","enum":["asc","desc"]}}],"responses":{"200":{"description":"Every coin's flips over a recent period, newest first, with how long each trend lasted and the price change since, 50 rows a page.","headers":{"Access-Control-Allow-Origin":{"description":"Every answer may be read from any web page.","schema":{"type":"string","const":"*"}},"Cache-Control":{"description":"Answers may be cached for 60 seconds.","schema":{"type":"string","const":"public, max-age=60"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlipLogPage"},"examples":{"trimmed":{"summary":"A real answer, trimmed: lists keep one item and some fields are left out.","value":{"asOf":"2026-10-06T16:21:14.728Z","query":{"quote":"USD","period":"7d","to":"both","candles":"day-up","size":"all","coin":null,"search":"","page":1,"pageSize":50,"sort":"closed","dir":"desc"},"since":"2026-09-29T18:57:29.937Z","total":29,"counts":{"total":29,"bull":17,"bear":12,"ongoing":29,"undone":0},"rows":[{"tf":"1d","to":1,"closedAt":"2026-10-06T00:00:00.000Z","price":0.07534,"coinId":"mubarak","name":"Mubarak","symbol":"MUBARAK","rank":355,"inMarketScore":false,"ongoing":true,"nextClosedAt":null,"lastedBars":0,"untilNextPct":1.39,"currentPrice":0.07639,"priceAt":"2026-10-06T18:56:17.941Z","priceKind":"live","after7":null,"after30":null}]}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/api/v1/flips":{"get":{"operationId":"trackRecord","summary":"Track record","description":"Every recorded flip of one coin on one candle size, with the price change 7, 30 and 90 days later, how long each trend lasted, and the same figures for ordinary days to compare with.\n\nLeft out of the sample: bear (the same shape as bull), source, btcMarket, sameDates, the coin's imageUrl and adjustments, and the 30- and 90-day rows of horizons and baseline.\n\nflips are newest first. after7, after30 and after90 are percent changes from the flip price; null until that many days have passed.\n\ninterval is a range for the median of the flips; ordinary is the range the median of as many ordinary days usually falls in, to compare with. baseline is the median change after any day.\n\nreversed3 is true when the next flip came within 3 candles.","externalDocs":{"url":"https://marketrender.com/api-docs#track-record"},"parameters":[{"name":"coin","in":"query","required":false,"description":"The coin. The whole market's record is in the market score answer instead.","schema":{"type":"string","pattern":"^(?:[a-z0-9][a-z0-9-]{0,99}|_[a-z0-9]{1,20})$","maxLength":100,"default":"bitcoin"}},{"name":"in","in":"query","required":false,"description":"The quote: the US-dollar trend or the trend against Bitcoin.","schema":{"type":"string","enum":["usd","btc"],"default":"usd"}},{"name":"tf","in":"query","required":false,"description":"Candle size: 4-hour, daily, weekly or monthly. Case matters: 1M is a month, and 1m is refused.","schema":{"type":"string","enum":["4h","1d","1w","1M"],"default":"1w"}}],"responses":{"200":{"description":"Every recorded flip of one coin on one candle size, with the price change 7, 30 and 90 days later, how long each trend lasted, and the same figures for ordinary days to compare with.","headers":{"Access-Control-Allow-Origin":{"description":"Every answer may be read from any web page.","schema":{"type":"string","const":"*"}},"Cache-Control":{"description":"Answers may be cached for 60 seconds.","schema":{"type":"string","const":"public, max-age=60"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrackRecord"},"examples":{"trimmed":{"summary":"A real answer, trimmed: lists keep one item and some fields are left out.","value":{"asOf":"2026-10-06T16:21:14.728Z","coin":{"id":"bitcoin","name":"Bitcoin","symbol":"BTC","rank":1,"exchange":"Binance"},"quote":"USD","tf":"1w","rules":"flip-line-v1.0","flips":[{"closedAt":"2026-09-07T00:00:00.000Z","to":1,"price":80341.83,"scoreAfter":37,"scoreBefore":-6,"pastLinePct":0.75,"scoreAgreedAfter":0,"after7":-4.36,"after30":null,"after90":null,"reversed3":false,"lastedBars":4,"ongoing":true,"untilNextPct":7.7}],"bull":{"count":5,"median7":5.51,"median30":7.68,"median90":22.5,"horizons":[{"days":7,"judged":5,"median":5.51,"interval":{"lower":-4.36,"upper":12.57,"coverage":0.9375},"ordinary":{"lower":-6.5,"upper":8.75}}],"reversed3":{"count":1,"of":5}},"baseline":{"since":"2018-02-05T00:00:00.000Z","horizons":[{"days":7,"median":0.48,"n":3159}]},"flipsPerYear":1.15,"outcomesHidden":null}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"404":{"$ref":"#/components/responses/NotFound"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/api/v1/coins":{"get":{"operationId":"coinList","summary":"Every coin, for search","description":"Every coin we score with its price, 24-hour change and trend on daily and weekly candles in US dollars, and the rest of CoinGecko's top 500 with the reason each one is not scored: what the site search looks through.\n\ncoins and unscored are each in market-size order (CoinGecko's rank), best first. About 260 coins are scored; unscored holds the rest of the newest top 500.\n\ntrend is the state by the flip rule on the newest closed daily (1d) and weekly (1w) candle: 1 bullish, -1 bearish, null while not settled. change24hPct is CoinGecko's, across exchanges.\n\nreason says why a coin has no trend here: stablecoin, wrapped, staked or bridged (it follows another asset), manual (a tokenized asset or fund, left out by hand), no-market (no market on the exchanges we read) or no-trend-yet (scored, but too new or behind to show).\n\nWith contract, coins keeps the coins with that contract and unscored is empty.","externalDocs":{"url":"https://marketrender.com/api-docs#coin-list"},"parameters":[{"name":"contract","in":"query","required":false,"description":"Keeps only the scored coins with a token contract at this address on any chain (the whole address; case is ignored). Left out: every coin.","schema":{"type":"string","maxLength":200}}],"responses":{"200":{"description":"Every coin we score with its price, 24-hour change and trend on daily and weekly candles in US dollars, and the rest of CoinGecko's top 500 with the reason each one is not scored: what the site search looks through.","headers":{"Access-Control-Allow-Origin":{"description":"Every answer may be read from any web page.","schema":{"type":"string","const":"*"}},"Cache-Control":{"description":"Answers may be cached for 60 seconds.","schema":{"type":"string","const":"public, max-age=60"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoinIndex"},"examples":{"trimmed":{"summary":"A real answer, trimmed: lists keep one item and some fields are left out.","value":{"asOf":"2026-10-06T16:21:14.728Z","coins":[{"id":"bitcoin","name":"Bitcoin","symbol":"BTC","imageUrl":"https://coin-images.coingecko.com/coins/images/1/large/bitcoin.png?1696501400","rank":1,"price":85538,"priceAt":"2026-10-06T18:56:17.941Z","priceKind":"live","change24hPct":-0.9,"trend":{"1d":1,"1w":1},"lastWeeklyFlip":{"tf":"1w","to":1,"closedAt":"2026-09-07T00:00:00.000Z","price":80341.83}}],"unscored":[{"id":"tether","name":"Tether","symbol":"USDT","imageUrl":"https://coin-images.coingecko.com/coins/images/325/large/Tether.png?1696501661","rank":3,"reason":"stablecoin"}]}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/api/v1/coins/{id}":{"get":{"operationId":"coin","summary":"One coin","description":"One coin's price, trend score and flip level on every candle size, in US dollars and against Bitcoin, with its last 12 weekly flips and long-term figures.\n\nLeft out of the sample: longView (moving averages, all-time high, drawdown, the close over its 200-day average, and which side the 50-week average is on against the 100-week one), the 90-day row of returns, and the other candle sizes of readings and flipLevels.\n\nvsBitcoin is null for Bitcoin itself; for another coin it holds the change of the coin's price in Bitcoin over 7, 30 and 90 days, the 90-day correlation and beta, and the streak, from daily closes. futures is filled for Bitcoin, Ether, Solana, XRP, BNB and Dogecoin (funding rate as a yearly percent, 7-day average; open contracts in dollars) and null for other coins.\n\ncme is filled for Bitcoin and Ether only: the CFTC's weekly report of futures positions at the CME, with the net position (long minus short, in contracts) of asset managers and of leveraged funds, the same four weeks earlier, and every stored weekly report in history (the sample shows one). The positions are as of the Tuesday in reportDate; the CFTC publishes them on the Friday after. contractSize converts contracts to coins. activity is filled for coins DefiLlama maps to a chain or an app (null otherwise): tvl is the value locked in dollars with its change over 30 and 365 days; fees and dexVolume are the sums of the last 30 daily values with the 30 days before them. Every part carries the date of its newest day. Both are facts with their source, not a view of the price.\n\nbtc has the same shape as usd. It is null for Bitcoin itself; for another coin, source says whether its Bitcoin price comes from its own market against Bitcoin (native) or from its dollar price divided by Bitcoin's (ratio).\n\nflipLevels gives, for each candle size, the price that would flip the trend and the price's distance from it in percent: positive above it.","externalDocs":{"url":"https://marketrender.com/api-docs#coin"},"parameters":[{"name":"id","in":"path","required":true,"description":"The coin. Left out: required.","schema":{"type":"string","pattern":"^(?:[a-z0-9][a-z0-9-]{0,99}|_[a-z0-9]{1,20})$","maxLength":100}},{"name":"in","in":"query","required":false,"description":"The quote of the weeklyFlips list. Both usd and btc views are always in the answer.","schema":{"type":"string","enum":["usd","btc"],"default":"usd"}}],"responses":{"200":{"description":"One coin's price, trend score and flip level on every candle size, in US dollars and against Bitcoin, with its last 12 weekly flips and long-term figures.","headers":{"Access-Control-Allow-Origin":{"description":"Every answer may be read from any web page.","schema":{"type":"string","const":"*"}},"Cache-Control":{"description":"Answers may be cached for 60 seconds.","schema":{"type":"string","const":"public, max-age=60"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoinPage"},"examples":{"trimmed":{"summary":"A real answer, trimmed: lists keep one item and some fields are left out.","value":{"asOf":"2026-10-06T16:21:14.728Z","coin":{"id":"bitcoin","name":"Bitcoin","symbol":"BTC","imageUrl":"https://coin-images.coingecko.com/coins/images/1/large/bitcoin.png?1696501400","rank":1,"exchange":"Binance","adjustments":[]},"usd":{"quote":"USD","source":null,"price":85538,"priceAt":"2026-10-06T18:56:17.941Z","priceKind":"live","readings":{"1d":{"score":98,"label":"Strong bull","regime":1,"direction":1,"early":false,"barOpenTime":"2026-10-05T00:00:00.000Z"}},"flipLevels":{"1w":{"tf":"1w","direction":1,"level":66811.57,"distancePct":28.03}},"lastWeeklyFlip":{"tf":"1w","to":1,"closedAt":"2026-09-07T00:00:00.000Z","price":80341.83}},"btc":null,"btcMarket":null,"returns":[{"days":30,"coinPct":7.43,"bitcoinPct":7.43,"vsBitcoinPct":null}],"weeklyFlips":[{"tf":"1w","to":1,"closedAt":"2026-09-07T00:00:00.000Z","price":80341.83,"scoreAfter":37,"scoreBefore":-6,"lastedWeeks":4,"ongoing":true,"untilNextPct":7.7}],"vsBitcoin":null,"futures":{"market":"BTCUSDT","funding":{"now":1.04,"asOf":"2026-10-06T08:00:00.000Z","then":3.5,"history":[]},"openInterest":{"now":8223000000,"asOf":"2026-10-06T08:00:00.000Z","then":null,"history":[]}},"cme":{"coinId":"bitcoin","unit":"BTC","contractSize":5,"latest":{"reportDate":"2026-10-06","assetManagersNet":6200,"leveragedFundsNet":-9800,"openInterest":31000,"assetManagersLong":9100,"assetManagersShort":2900,"leveragedFundsLong":4300,"leveragedFundsShort":14100},"fourWeeksEarlier":{"reportDate":"2026-09-08","assetManagersNet":5400,"leveragedFundsNet":-8700},"history":[{"reportDate":"2026-10-06","assetManagersNet":6200,"leveragedFundsNet":-9800}]},"activity":null}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"404":{"$ref":"#/components/responses/NotFound"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/api/v1/coins/{id}/chart":{"get":{"operationId":"chart","summary":"Price chart","description":"The newest candles of one coin with its flip level under each candle and the flips among them: what the chart on the coin page draws.\n\nEvery list is oldest first and covers the same candles: the newest 120 for 4-hour and daily, 104 for weekly and 60 for monthly.\n\nHere a flip is named by its candle's open time (openTime): the weekly flip above opened on 31 August and closed on Sunday 6 September.\n\nwave is a momentum line drawn under the chart; it is empty against Bitcoin and on monthly candles. Bitcoin has no chart against itself, so ?in=btc answers 404 for bitcoin.","externalDocs":{"url":"https://marketrender.com/api-docs#chart"},"parameters":[{"name":"id","in":"path","required":true,"description":"The coin. Left out: required.","schema":{"type":"string","pattern":"^(?:[a-z0-9][a-z0-9-]{0,99}|_[a-z0-9]{1,20})$","maxLength":100}},{"name":"in","in":"query","required":false,"description":"The quote: candles in US dollars or against Bitcoin.","schema":{"type":"string","enum":["usd","btc"],"default":"usd"}},{"name":"tf","in":"query","required":false,"description":"Candle size: 4-hour, daily, weekly or monthly. Case matters: 1M is a month, and 1m is refused.","schema":{"type":"string","enum":["4h","1d","1w","1M"],"default":"1w"}}],"responses":{"200":{"description":"The newest candles of one coin with its flip level under each candle and the flips among them: what the chart on the coin page draws.","headers":{"Access-Control-Allow-Origin":{"description":"Every answer may be read from any web page.","schema":{"type":"string","const":"*"}},"Cache-Control":{"description":"Answers may be cached for 60 seconds.","schema":{"type":"string","const":"public, max-age=60"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChartData"},"examples":{"trimmed":{"summary":"A real answer, trimmed: lists keep one item and some fields are left out.","value":{"tf":"1w","quote":"USD","candles":[{"openTime":"2026-09-28T00:00:00.000Z","open":84472.01,"high":87220,"low":82563,"close":86530}],"level":[{"openTime":"2026-09-28T00:00:00.000Z","value":66811.57,"direction":1}],"flips":[{"openTime":"2026-08-31T00:00:00.000Z","to":1,"price":80341.83}],"wave":[{"openTime":"2026-09-28T00:00:00.000Z","wt1":52.59,"wt2":46.47}]}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"404":{"$ref":"#/components/responses/NotFound"},"503":{"$ref":"#/components/responses/Unavailable"}}}}},"components":{"schemas":{"Error":{"type":"object","description":"The answer to a request that failed.","properties":{"error":{"type":"string","enum":["bad_request","not_found","unavailable"],"description":"What went wrong, as a code."},"message":{"type":"string","description":"What went wrong, in a sentence."}}},"Timeframe":{"type":"string","enum":["4h","1d","1w","1M"],"description":"Candle size: 4-hour, daily, weekly, monthly."},"Quote":{"type":"string","enum":["USD","BTC"],"description":"US dollars, or against Bitcoin."},"Direction":{"type":"integer","enum":[1,-1],"description":"1 bullish, -1 bearish."},"PriceKind":{"type":"string","enum":["live","close"],"description":"live: the last price from the coin's exchange, read about every minute; close: the close of the newest scored candle."},"Reading":{"type":"object","description":"The newest closed candle of one series on one candle size.","properties":{"score":{"type":["number","null"],"description":"Trend score, -100 to 100."},"label":{"type":["string","null"],"enum":["Strong bull","Bull","Neutral","Bear","Strong bear",null],"description":"The band of the score, in words. It describes the score only."},"regime":{"anyOf":[{"$ref":"#/components/schemas/Direction","description":"The trend score's own buffered side (1 after the score closes at +35 or above, -1 at -35 or below; two closes in a row on 4h and 1d, one on 1w and 1M), kept for the record. The pages show the flip line (direction) for coins; for the whole market it is the state the pages show and equals direction."},{"type":"null"}]},"direction":{"anyOf":[{"$ref":"#/components/schemas/Direction","description":"The state the site shows. For a coin or an index series (the altcoins): 1 when the candle closed above its flip line, -1 below it (an index series' line is worked out from closes only). For the whole market (_market), which has no flip level: the state of its score (Bull from +35, Bear from -35, after two closes in a row on 4-hour and daily candles); under market-v2.0 its score is made of three flip lines. Null while not settled."},{"type":"null"}]},"early":{"type":"boolean","description":"The score rests on too little history to compare with a mature one."},"barOpenTime":{"type":"string","format":"date-time","description":"Open time of the candle the reading is for (UTC)."}}},"Readings":{"type":"object","description":"One reading per candle size (4h, 1d, 1w, 1M); a size without data is left out.","propertyNames":{"$ref":"#/components/schemas/Timeframe"},"additionalProperties":{"$ref":"#/components/schemas/Reading"}},"FlipRef":{"type":"object","description":"One flip.","properties":{"tf":{"$ref":"#/components/schemas/Timeframe"},"to":{"$ref":"#/components/schemas/Direction"},"closedAt":{"type":"string","format":"date-time","description":"Close time of the flip candle (UTC). The site dates a flip by the candle's last day."},"price":{"type":"number","description":"Close of the flip candle, in the series' quote."}}},"SeriesRow":{"type":"object","properties":{"id":{"type":"string","description":"Series id: a CoinGecko coin id, or _market (whole market) and _total2 (altcoins)."},"name":{"type":"string","description":"Name."},"symbol":{"type":"string","description":"Symbol."},"readings":{"$ref":"#/components/schemas/Readings"},"lastWeeklyFlip":{"anyOf":[{"$ref":"#/components/schemas/FlipRef"},{"type":"null"}]}}},"BreadthRow":{"type":"object","description":"How the 100 largest scored coins stand on one candle size; the five counts add up to n.","properties":{"tf":{"$ref":"#/components/schemas/Timeframe"},"n":{"type":"integer","description":"Coins counted."},"bull":{"type":"integer","description":"Coins with a mature bull score."},"neutral":{"type":"integer","description":"Coins with a mature neutral score."},"bear":{"type":"integer","description":"Coins with a mature bear score."},"early":{"type":"integer","description":"Coins whose score is early."},"warmingUp":{"type":"integer","description":"Coins without a score yet."}}},"ParticipationRow":{"type":"object","description":"Participation by trend: how many of the 100 largest scored coins have a bullish flip line, how many a bearish one and how many none settled yet, on one candle size's newest candle.","properties":{"tf":{"$ref":"#/components/schemas/Timeframe"},"n":{"type":"integer","description":"Coins counted: the 100 largest scored coins with a row on the newest candle; n = bull + bear + unsettled."},"bull":{"type":"integer","description":"Coins whose flip line is bullish."},"bear":{"type":"integer","description":"Coins whose flip line is bearish."},"unsettled":{"type":"integer","description":"Coins whose flip line has not settled yet."}}},"MemberLinesRow":{"type":"object","description":"The flip lines of the coins in the whole-market score on each candle size's newest bar: how many are bullish, bearish or not settled yet.","properties":{"tf":{"$ref":"#/components/schemas/Timeframe"},"openTime":{"type":"string","format":"date-time","description":"Open time of the candle counted."},"members":{"type":"integer","description":"Coins in the whole-market score."},"settled":{"type":"integer","description":"Of those, coins whose flip line has settled (bullish or bearish)."},"bull":{"type":"integer","description":"Coins whose flip line is bullish."},"bear":{"type":"integer","description":"Coins whose flip line is bearish."},"unsettled":{"type":"integer","description":"Coins with a row on the candle whose flip line has not settled yet."},"source":{"type":"string","enum":["stored","counted"],"description":"stored: the engine's own count for the candle; counted: counted from the stored flip lines while no such count exists."}}},"MetricReading":{"type":"object","properties":{"now":{"type":["number","null"],"description":"The newest value."},"asOf":{"type":["string","null"],"format":"date-time","description":"The moment now describes."},"then":{"type":["number","null"],"description":"The value about 30 days earlier."},"history":{"type":"array","items":{"type":"object","properties":{"day":{"type":"string","description":"YYYY-MM-DD"},"value":{"type":"number","description":"Value."}}},"description":"Daily values over 30 days, oldest first; empty for most readings."}}},"MarketOverview":{"type":"object","properties":{"asOf":{"type":["string","null"],"format":"date-time","description":"When the engine last finished scoring."},"market":{"anyOf":[{"$ref":"#/components/schemas/SeriesRow"},{"type":"null"}]},"bitcoin":{"anyOf":[{"$ref":"#/components/schemas/SeriesRow"},{"type":"null"}]},"altcoins":{"anyOf":[{"$ref":"#/components/schemas/SeriesRow"},{"type":"null"}]},"marketParts":{"type":["object","null"],"description":"The three parts of the newest daily whole-market score (bitcoin, altcoins, breadth), each -100 to 100.","additionalProperties":true},"marketVsBitcoin":{"type":["object","null"],"description":"How often the whole market's daily state matched Bitcoin's: pct over days. Under market-v2.0 this is high by construction: the market's state can turn bullish only while Bitcoin's line is bullish, and bearish only while it is bearish. The pages do not print it then.","additionalProperties":true},"participation":{"type":"array","items":{"$ref":"#/components/schemas/ParticipationRow"},"description":"One row per candle size: the flip lines of the 100 largest scored coins."},"memberLines":{"type":"array","items":{"$ref":"#/components/schemas/MemberLinesRow"},"description":"The flip lines of the coins in the whole-market score on each candle size's newest bar: how many are bullish, bearish or not settled yet. One row per candle size."},"breadth":{"type":"array","items":{"$ref":"#/components/schemas/BreadthRow"},"description":"Score bands of the 100 largest coins (bull +20 or more, neutral, bear −20 or less), kept for the record; the pages show participation by trend. One row per candle size."},"readings":{"type":"object","description":"Market-wide figures: totalMcap, altMcap, total3Mcap (without Bitcoin and Ether), totalExStablesMcap (without stablecoins), volume24h, btcDominance, ethDominance, stableDominance, stableSupply, altseason, fearGreed, btcFunding, btcOpenInterest, btcSpxCorr90 (Bitcoin and the S&P 500, 90-day correlation), btcNdxCorr90 (Bitcoin and the Nasdaq Composite, 90-day correlation).","additionalProperties":{"$ref":"#/components/schemas/MetricReading"}},"recentFlips":{"type":"array","items":{"type":"object","description":"A flip (FlipRef fields) with the coin's id, name, symbol, imageUrl, currentPrice, priceAt, priceKind and sincePct.","additionalProperties":true},"description":"Flips in US dollars over the last 7 days, newest first."}}},"OutsidePoint":{"type":"object","properties":{"day":{"type":"string","description":"The UTC day (YYYY-MM-DD)."},"value":{"type":"number","description":"The value that day."}}},"OutsideTrend":{"type":"object","description":"A series' trend on one candle size. Percent changes and dates only.","properties":{"tf":{"$ref":"#/components/schemas/Timeframe"},"direction":{"anyOf":[{"$ref":"#/components/schemas/Direction","description":"The side of the flip line on the newest closed candle; null while not settled."},{"type":"null"}]},"sinceAt":{"type":["string","null"],"format":"date-time","description":"Close of the flip candle that began the trend."},"changePct":{"type":["number","null"],"description":"Change from that candle's close to the newest close, in percent."},"flipCount":{"type":"integer","description":"Every flip on record."},"flips":{"type":"array","items":{"type":"object","properties":{"closedAt":{"type":"string","format":"date-time","description":"Close of the flip candle (UTC). The site dates a flip by the candle's last day."},"to":{"$ref":"#/components/schemas/Direction"},"after30":{"type":["number","null"],"description":"Change 30 days after the flip, in percent; null until then."},"after90":{"type":["number","null"],"description":"Change 90 days after the flip, in percent; null until then."}}},"description":"The newest flips, newest first (at most five)."}}},"OutsideSeries":{"type":"object","properties":{"key":{"type":"string","description":"gold, btcgold, or another trend series the site shows."},"name":{"type":"string","description":"The series' name as the page prints it."},"note":{"type":["string","null"],"description":"The line the page prints under the name."},"available":{"type":"boolean","description":"False while the series has no trend yet."},"trends":{"type":"object","description":"One trend per candle size (1d, 1w, 1M); a size without data is left out.","propertyNames":{"$ref":"#/components/schemas/Timeframe"},"additionalProperties":{"$ref":"#/components/schemas/OutsideTrend"}},"line":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/OutsidePoint"},"description":"One weekly close for two years, oldest first. Gold in US dollars per PAXG; Bitcoin priced in gold in ounces of gold per bitcoin."},{"type":"null"}]}}},"OutsideMacro":{"type":"object","properties":{"key":{"type":"string","description":"dollar, yield10 or liquidity."},"name":{"type":"string","description":"The reading's name as the page prints it."},"note":{"type":["string","null"],"description":"The line the page prints under the name."},"unit":{"type":"string","enum":["index","percent","billions"],"description":"What value is: an index level, a rate in percent, or billions of US dollars."},"changeKind":{"type":"string","enum":["percent","points"],"description":"What the changes are: percent of the earlier value, or points of a rate."},"available":{"type":"boolean","description":"False while the reading has no values."},"latest":{"anyOf":[{"$ref":"#/components/schemas/OutsidePoint"},{"type":"null"}]},"change4w":{"type":["number","null"],"description":"Change over four weeks."},"change52w":{"type":["number","null"],"description":"Change over 52 weeks."},"line":{"type":"array","items":{"$ref":"#/components/schemas/OutsidePoint"},"description":"One point a week for two years, oldest first."}}},"OutsideCrypto":{"type":"object","properties":{"asOf":{"type":["string","null"],"format":"date-time","description":"When the engine last finished scoring."},"series":{"type":"array","items":{"$ref":"#/components/schemas/OutsideSeries"},"description":"Gold, Bitcoin priced in gold, and any other trend series the site shows."},"macro":{"type":"array","items":{"$ref":"#/components/schemas/OutsideMacro"},"description":"The dollar against other currencies, the 10-year Treasury yield, the Fed's net liquidity."}}},"SectorReading":{"type":"object","description":"A sector's newest count on one candle size.","properties":{"openTime":{"type":"string","format":"date-time","description":"Open of the newest counted candle (UTC)."},"bullPct":{"type":["number","null"],"description":"Share of the sector's coins with a settled trend that are bullish, in percent; null when withheld."},"bull":{"type":["integer","null"],"description":"Coins with a bullish trend."},"n":{"type":["integer","null"],"description":"Coins with a settled trend (bullish or bearish)."},"members":{"type":["integer","null"],"description":"Coins in the sector on that run."},"withheld":{"type":"string","enum":["few_lines","invalid_input"],"nullable":true,"description":"Why no share is given: few_lines when under 10 coins have a settled trend."}}},"SectorRow":{"type":"object","properties":{"key":{"type":"string","description":"layer-1, defi, ai, exchange, meme, depin, rwa or layer-2."},"name":{"type":"string","description":"The sector's name as the page prints it."},"categories":{"type":"array","items":{"type":"string","description":"A CoinGecko category."},"description":"The CoinGecko categories that put a coin in the sector."},"coinCount":{"type":"integer","description":"Coins in the sector now."},"coins":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"CoinGecko id."},"name":{"type":"string","description":"Name."},"symbol":{"type":"string","description":"Ticker."},"rank":{"type":["integer","null"],"description":"Market-size rank."}}},"description":"The coins in the sector now."},"readings":{"type":"object","description":"The newest count per candle size (4h, 1d, 1w, 1M); a size not counted yet is left out.","propertyNames":{"$ref":"#/components/schemas/Timeframe"},"additionalProperties":{"$ref":"#/components/schemas/SectorReading"}}}},"SectorsData":{"type":"object","properties":{"asOf":{"type":["string","null"],"format":"date-time","description":"When the engine last finished scoring."},"firstCounted":{"type":["string","null"],"format":"date-time","description":"When sectors were first counted; history before it uses today's members. Null if unknown."},"sectors":{"type":"array","items":{"$ref":"#/components/schemas/SectorRow"},"description":"The eight sectors."}}},"MarketScoreData":{"type":"object","properties":{"asOf":{"type":["string","null"],"format":"date-time","description":"When the engine last finished scoring."},"tf":{"$ref":"#/components/schemas/Timeframe"},"readings":{"$ref":"#/components/schemas/Readings"},"sparks":{"type":"object","description":"The newest candles of each size: openTime, direction and score.","additionalProperties":true},"bars":{"type":"array","items":{"type":"object","properties":{"openTime":{"type":"string","format":"date-time","description":"Candle open time."},"score":{"type":"number","description":"The Crypto Trend Score, the whole-market trend score, -100 to 100."},"state":{"anyOf":[{"$ref":"#/components/schemas/Direction"},{"type":"null"}]},"level":{"type":["number","null"],"description":"Close of the index of every scored coin by market value; not dollars."},"early":{"type":"boolean","description":"Too little history to compare."},"bitcoin":{"type":["number","null"],"description":"Bitcoin part, -100 to 100. Under market-v2.0: 100 while Bitcoin's flip line is bullish, -100 while it is bearish."},"altcoins":{"type":["number","null"],"description":"Altcoin part, -100 to 100. Under market-v2.0: the same for the altcoin index's flip line."},"breadth":{"type":["number","null"],"description":"Breadth part, -100 to 100. Under market-v2.0: from the share of the coins whose own flip line is bullish (50% is 0)."}}},"description":"Every scored candle, oldest first."},"breadth":{"type":"array","items":{"type":"object","properties":{"openTime":{"type":"string","format":"date-time","description":"Candle open time."},"bullPct":{"type":["number","null"],"description":"Percent bullish. Under market-v2.0: of the n coins with a settled flip line, those whose line is bullish. Under market-v1.2 and market-v1.1: of the n coins with a ±35 side, those whose trend score had turned bullish by the ±35 rule."},"abovePct":{"type":["number","null"],"description":"Percent above their base line: under market-v1.2 of the coins with a base reading (baseCount), under market-v1.1 of the n coins counted. Null under market-v2.0."},"n":{"type":["integer","null"],"description":"Coins counted for bullPct: under market-v2.0 those with a settled flip line, otherwise those with a ±35 side."},"baseCount":{"type":["integer","null"],"description":"Coins with a base reading (market-v1.2 only; null under market-v1.1 and market-v2.0)."},"members":{"type":["integer","null"],"description":"Coins counted, the market members of the run (market-v1.2 and market-v2.0; null under market-v1.1)."},"withheld":{"type":["string","null"],"enum":["few_states","few_bases","few_lines","invalid_input",null],"description":"Why the candle has no score under market-v1.2 or market-v2.0: fewer than 10 coins with a ±35 side (few_states), fewer than 10 with a base reading (few_bases), fewer than 10 with a settled flip line (few_lines, market-v2.0), or an input that failed a check (invalid_input). Null when it has one, and always under market-v1.1."}}},"description":"The breadth inputs, oldest first."},"record":{"anyOf":[{"$ref":"#/components/schemas/TrackRecord"},{"type":"null"}]},"rules":{"type":"string","enum":["market-v2.0","market-v1.2","market-v1.1"],"description":"The whole-market rule set read (the rules parameter)."},"correctedOn":{"type":["string","null"],"format":"date-time","description":"When market-v1.2 went live, the date its score was corrected; filled whatever rules are read, null while not stored."},"rebuiltOn":{"type":["string","null"],"format":"date-time","description":"When market-v2.0 went live, the date the score was rebuilt from flip lines; filled whatever rules are read, null while not stored."}}},"ScannerRow":{"type":"object","properties":{"rank":{"type":["integer","null"],"description":"Market-cap rank."},"coinId":{"type":"string","description":"CoinGecko id."},"name":{"type":"string","description":"Name."},"symbol":{"type":"string","description":"Symbol."},"imageUrl":{"type":["string","null"],"description":"Logo at CoinGecko."},"price":{"type":["number","null"],"description":"Price in the chosen quote."},"priceAt":{"type":["string","null"],"format":"date-time","description":"When the price is from."},"priceKind":{"$ref":"#/components/schemas/PriceKind"},"readings":{"$ref":"#/components/schemas/Readings"},"lastWeeklyFlip":{"anyOf":[{"$ref":"#/components/schemas/FlipRef"},{"type":"null"}]},"toFlipLevelPct":{"type":["number","null"],"description":"Price against the weekly flip level, percent: positive above it."},"vsBtc30dPct":{"type":["number","null"],"description":"Change against Bitcoin over 30 days, percent; null for Bitcoin."},"inMarketScore":{"type":["boolean","null"],"description":"Part of the whole-market score."}}},"ScannerPage":{"type":"object","properties":{"asOf":{"type":["string","null"],"format":"date-time","description":"When the engine last finished scoring."},"query":{"type":"object","description":"The request as read: quote, filter, search, page, pageSize, sort, dir.","additionalProperties":true},"total":{"type":"integer","description":"Rows matching the filter and search, before paging."},"rows":{"type":"array","items":{"$ref":"#/components/schemas/ScannerRow"},"description":"One page of rows."},"breadth":{"anyOf":[{"$ref":"#/components/schemas/BreadthRow"},{"type":"null"}]},"participation":{"anyOf":[{"$ref":"#/components/schemas/ParticipationRow"},{"type":"null"}]},"marketCount":{"type":["integer","null"],"description":"How many coins make up the whole-market score."}}},"FlipLogRow":{"type":"object","properties":{"tf":{"$ref":"#/components/schemas/Timeframe"},"to":{"$ref":"#/components/schemas/Direction"},"closedAt":{"type":"string","format":"date-time","description":"Close time of the flip candle."},"price":{"type":"number","description":"Close of the flip candle."},"coinId":{"type":"string","description":"CoinGecko id."},"name":{"type":"string","description":"Name."},"symbol":{"type":"string","description":"Symbol."},"imageUrl":{"type":["string","null"],"description":"Logo at CoinGecko."},"rank":{"type":["integer","null"],"description":"Market-cap rank."},"inMarketScore":{"type":["boolean","null"],"description":"Part of the whole-market score."},"ongoing":{"type":"boolean","description":"No later flip has closed yet."},"nextClosedAt":{"type":["string","null"],"format":"date-time","description":"When the next flip's candle closed."},"lastedBars":{"type":"integer","description":"Candles from this flip to the next, or to now."},"untilNextPct":{"type":["number","null"],"description":"Change to the next flip's price, or to the current price while ongoing, percent."},"currentPrice":{"type":["number","null"],"description":"The coin's current price in the quote."},"priceAt":{"type":["string","null"],"format":"date-time","description":"When the current price is from."},"priceKind":{"$ref":"#/components/schemas/PriceKind"},"after7":{"type":["number","null"],"description":"Change 7 days after the flip, percent."},"after30":{"type":["number","null"],"description":"Change 30 days after the flip, percent."}}},"FlipLogPage":{"type":"object","properties":{"asOf":{"type":["string","null"],"format":"date-time","description":"When the engine last finished scoring."},"query":{"type":"object","description":"The request as read: quote, period, to, candles (tf), size (top), coin, search, page, pageSize, sort, dir.","additionalProperties":true},"since":{"type":"string","format":"date-time","description":"Flips whose candle closed after this moment are listed."},"total":{"type":"integer","description":"Rows matching the filters, before paging."},"counts":{"type":"object","description":"total, bull, bear, ongoing and undone over every matching flip.","additionalProperties":true},"rows":{"type":"array","items":{"$ref":"#/components/schemas/FlipLogRow"},"description":"One page of flips."}}},"FlipOutcome":{"type":"object","properties":{"closedAt":{"type":"string","format":"date-time","description":"Close time of the flip candle."},"to":{"$ref":"#/components/schemas/Direction"},"price":{"type":"number","description":"Close of the flip candle."},"scoreAfter":{"type":["number","null"],"description":"Trend score of the flip candle."},"scoreBefore":{"type":["number","null"],"description":"Trend score of the candle before."},"pastLinePct":{"type":["number","null"],"description":"How far the flip candle closed past the flip level, percent."},"scoreAgreedAfter":{"type":["integer","null"],"description":"Candles until the score reached the flip's side."},"after7":{"type":["number","null"],"description":"Change 7 days later, percent."},"after30":{"type":["number","null"],"description":"Change 30 days later, percent."},"after90":{"type":["number","null"],"description":"Change 90 days later, percent."},"reversed3":{"type":["boolean","null"],"description":"The next flip came within 3 candles."},"lastedBars":{"type":"integer","description":"Candles the trend lasted."},"ongoing":{"type":"boolean","description":"The trend is still on."},"untilNextPct":{"type":["number","null"],"description":"Change to the next flip, or to the newest close while ongoing, percent."}}},"TrackRecord":{"type":"object","properties":{"asOf":{"type":["string","null"],"format":"date-time","description":"When the engine last finished scoring."},"coin":{"type":"object","description":"The coin: id, name, symbol, imageUrl, rank, exchange, adjustments.","additionalProperties":true},"quote":{"$ref":"#/components/schemas/Quote"},"tf":{"$ref":"#/components/schemas/Timeframe"},"rules":{"type":"string","description":"The rule set the flips come from."},"flips":{"type":"array","items":{"$ref":"#/components/schemas/FlipOutcome"},"description":"Every recorded flip, newest first."},"bull":{"type":"object","description":"Summary of the bullish flips: count, medians and per-horizon intervals.","additionalProperties":true},"bear":{"type":"object","description":"Summary of the bearish flips, as bull.","additionalProperties":true},"baseline":{"type":["object","null"],"description":"The median change after any day, per horizon.","additionalProperties":true},"flipsPerYear":{"type":["number","null"],"description":"Flips a year."},"source":{"type":["string","null"],"enum":["native","ratio",null],"description":"Where the Bitcoin quote is measured."},"btcMarket":{"type":["object","null"],"description":"The coin's own market against Bitcoin: exchange, pair.","additionalProperties":true},"outcomesHidden":{"type":["object","null"],"description":"Set, with a reason, when the outcome figures are withheld.","additionalProperties":true},"sameDates":{"type":["object","null"],"description":"All tracked coins over the same dates as the flips.","additionalProperties":true}}},"CoinQuoteView":{"type":"object","properties":{"quote":{"$ref":"#/components/schemas/Quote"},"source":{"type":["string","null"],"enum":["native","ratio",null],"description":"Where the Bitcoin price is measured."},"price":{"type":["number","null"],"description":"Price in this quote."},"priceAt":{"type":["string","null"],"format":"date-time","description":"When the price is from."},"priceKind":{"$ref":"#/components/schemas/PriceKind"},"readings":{"$ref":"#/components/schemas/Readings"},"flipLevels":{"type":"object","description":"Per candle size: tf, direction, level (the price that would flip the trend) and distancePct (positive above it).","propertyNames":{"$ref":"#/components/schemas/Timeframe"},"additionalProperties":{"type":"object","description":"A flip level.","additionalProperties":true}},"lastWeeklyFlip":{"anyOf":[{"$ref":"#/components/schemas/FlipRef"},{"type":"null"}]}}},"CoinPage":{"type":"object","properties":{"asOf":{"type":["string","null"],"format":"date-time","description":"When the engine last finished scoring."},"coin":{"type":"object","description":"The coin: id, name, symbol, imageUrl, rank, exchange, adjustments.","additionalProperties":true},"usd":{"$ref":"#/components/schemas/CoinQuoteView"},"btc":{"anyOf":[{"$ref":"#/components/schemas/CoinQuoteView"},{"type":"null"}]},"btcMarket":{"type":["object","null"],"description":"The coin's own market against Bitcoin: exchange, pair.","additionalProperties":true},"returns":{"type":"array","items":{"type":"object","description":"days, coinPct, bitcoinPct, vsBitcoinPct.","additionalProperties":true},"description":"Returns over 30 and 90 days."},"weeklyFlips":{"type":"array","items":{"type":"object","description":"A weekly flip (FlipRef fields) with scores, lastedWeeks, ongoing and untilNextPct.","additionalProperties":true},"description":"The last 12 weekly flips in the chosen quote, newest first."},"longView":{"type":["object","null"],"description":"Moving averages, weekly RSI, all-time high and drawdown; mayer (the close over its 200-day average, 1.12 is 12% above it); cross50w100w (1 when the 50-week average is above the 100-week one, -1 below) and crossSince (the last day of the weekly candle it crossed to that side).","additionalProperties":true},"vsBitcoin":{"type":["object","null"],"description":"Against Bitcoin, from daily closes up to date: change7dPct, change30dPct, change90dPct (the coin's price in Bitcoin), correlation90d (1 means always in step, 0 unrelated), beta90d (the typical move in percent on a day Bitcoin moves 1%) and streakDays (days in a row ahead of Bitcoin when positive, behind when negative). Null for Bitcoin and while not stored.","additionalProperties":true},"futures":{"type":["object","null"],"description":"The coin's futures on Binance, for Bitcoin, Ether, Solana, XRP, BNB and Dogecoin: market (e.g. ETHUSDT), funding (the 7-day average as a yearly percent) and openInterest (dollars), each as a MetricReading. Null for other coins.","additionalProperties":true},"cme":{"type":["object","null"],"description":"CME futures positions from the CFTC's weekly Commitments of Traders report, for Bitcoin and Ether only (null for other coins): unit (BTC or ETH), contractSize (coins in one contract), latest (reportDate, the Tuesday the positions are as of; openInterest; long, short and net contracts of asset managers and of leveraged funds), fourWeeksEarlier (reportDate and the two net positions, or null) and history (every stored weekly report, oldest first, with both net positions). Net is long minus short, in contracts.","additionalProperties":true},"activity":{"type":["object","null"],"description":"Activity behind the coin's chain or app from DefiLlama, for the coins it maps (null for other coins): kind (chain or protocol), name, tvl (date, value in dollars, change30dPct, change365dPct), fees and dexVolume (date of the newest day, last30Days and previous30Days in dollars, changePct). A part is null when nothing is stored for it.","additionalProperties":true}}},"SearchCoin":{"type":"object","properties":{"id":{"type":"string","description":"CoinGecko coin id."},"name":{"type":"string","description":"Name."},"symbol":{"type":"string","description":"Symbol."},"imageUrl":{"type":["string","null"],"description":"The coin's logo at CoinGecko."},"rank":{"type":["integer","null"],"description":"Market-size rank at CoinGecko."},"price":{"type":["number","null"],"description":"Price in US dollars."},"priceAt":{"type":["string","null"],"format":"date-time","description":"When the price is from."},"priceKind":{"$ref":"#/components/schemas/PriceKind"},"change24hPct":{"type":["number","null"],"description":"CoinGecko's change over 24 hours, in percent."},"trend":{"type":"object","description":"The state by the flip rule on the newest closed daily and weekly candle; null while not settled.","properties":{"1d":{"anyOf":[{"$ref":"#/components/schemas/Direction"},{"type":"null"}]},"1w":{"anyOf":[{"$ref":"#/components/schemas/Direction"},{"type":"null"}]}}},"lastWeeklyFlip":{"anyOf":[{"$ref":"#/components/schemas/FlipRef"},{"type":"null"}]}}},"UnscoredCoin":{"type":"object","properties":{"id":{"type":"string","description":"CoinGecko coin id."},"name":{"type":"string","description":"Name."},"symbol":{"type":"string","description":"Symbol."},"imageUrl":{"type":["string","null"],"description":"The coin's logo at CoinGecko."},"rank":{"type":["integer","null"],"description":"Market-size rank at CoinGecko."},"reason":{"type":"string","enum":["stablecoin","wrapped","staked","bridged","manual","no-market","no-trend-yet"],"description":"Why the coin has no trend here."}}},"CoinIndex":{"type":"object","properties":{"asOf":{"type":["string","null"],"format":"date-time","description":"When the engine last finished scoring."},"coins":{"type":"array","items":{"$ref":"#/components/schemas/SearchCoin"},"description":"The scored coins, best rank first."},"unscored":{"type":"array","items":{"$ref":"#/components/schemas/UnscoredCoin"},"description":"The rest of CoinGecko's top 500, best rank first; empty with contract."}}},"ChartData":{"type":"object","properties":{"tf":{"$ref":"#/components/schemas/Timeframe"},"quote":{"$ref":"#/components/schemas/Quote"},"candles":{"type":"array","items":{"type":"object","properties":{"openTime":{"type":"string","format":"date-time","description":"Open time."},"open":{"type":"number","description":"Open."},"high":{"type":"number","description":"High."},"low":{"type":"number","description":"Low."},"close":{"type":"number","description":"Close."}}},"description":"Candles, oldest first."},"level":{"type":"array","items":{"type":"object","properties":{"openTime":{"type":"string","format":"date-time","description":"Open time."},"value":{"type":["number","null"],"description":"Flip level."},"direction":{"anyOf":[{"$ref":"#/components/schemas/Direction"},{"type":"null"}]}}},"description":"Flip level under each candle."},"flips":{"type":"array","items":{"type":"object","properties":{"openTime":{"type":"string","format":"date-time","description":"Open time of the flip candle."},"to":{"$ref":"#/components/schemas/Direction"},"price":{"type":"number","description":"Close of the flip candle."}}},"description":"Flips among the candles."},"wave":{"type":"array","items":{"type":"object","description":"openTime, wt1, wt2.","additionalProperties":true},"description":"Momentum wave; empty against Bitcoin and on monthly candles."}}}},"responses":{"BadRequest":{"description":"bad_request: A parameter has a value it does not accept, or is given twice. The message says which and what it accepts.","headers":{"Access-Control-Allow-Origin":{"description":"Every answer may be read from any web page.","schema":{"type":"string","const":"*"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"NotFound":{"description":"not_found: There is no such coin, or no data for it in that quote or on that candle size.","headers":{"Access-Control-Allow-Origin":{"description":"Every answer may be read from any web page.","schema":{"type":"string","const":"*"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unavailable":{"description":"unavailable: The data cannot be read right now. Try again in a minute; this answer is never cached.","headers":{"Access-Control-Allow-Origin":{"description":"Every answer may be read from any web page.","schema":{"type":"string","const":"*"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}