kalshi-cpp 0.8.0
C++23 client for Kalshi's Predictions API
Loading...
Searching...
No Matches
pagination.hpp File Reference
#include "kalshi/error.hpp"
#include <cstddef>
#include <iterator>
#include <limits>
#include <optional>
#include <string>
#include <string_view>
#include <unordered_set>
#include <utility>
#include <vector>

Go to the source code of this file.

Namespaces

namespace  kalshi
 
namespace  kalshi::detail
 

Functions

std::string kalshi::detail::take_page_cursor (std::string &cursor)
 
std::string kalshi::detail::take_page_cursor (std::optional< std::string > &cursor)
 
template<class Fetch , class Response , class Items >
Result< std::vector< typename Items::value_type > > kalshi::collect_pages (Fetch &&fetch, Items Response::*items, std::size_t max_pages=(std::numeric_limits< std::size_t >::max)())
 Follows cursors through a list operation and collects every page's items.