DataStore.to_ndarray¶ Python レコードを numpy の構造化配列として返します。 パラメーター¶ count int | None 任意 1つあたり最大この件数のレコードの配列のイテレーターを返します。 戻り値¶ numpy.ndarray | Iterator[numpy.ndarray] 構造化配列。 API メソッド DataStore.to_ndarray( count: int | None = None, ) -> numpy.ndarray | Iterator[numpy.ndarray] 使用例 1 2 3 4 5 6 7 8 9 10 11 12 13import briskapi client = briskapi.Historical() data = client.timeseries.get_range( dataset="XTKS.BRISKDEMO", symbols=["7203"], schema="trades", start="2021-09-27T09:00", end="2021-09-27T09:00:05", ) records = data.to_ndarray() print(records.dtype.names[:6]) print(records["price"][:5]) レスポンス例デモで実行した結果 ('ts_recv', 'ts_event', 'publisher_id', 'instrument_id', 'action', 'side') [10155. 10155. 10155. 10160. 10150.]