Код: Выделить всё
CREATE TABLE 'trades' (
symbol SYMBOL,
side SYMBOL,
price DOUBLE,
revised_price DOUBLE,
amount DOUBLE,
timestamp TIMESTAMP
) timestamp (timestamp) PARTITION BY DAY WAL;
Я пробовал это сделать:
Код: Выделить всё
using var sender = Sender.New("http::addr=localhost:9000;");
await sender.Table("trades")
.Symbol("symbol", "ETH-USD")
.Symbol("side", "sell")
.Column("price", 2615.54)
.Column("amount", 0.00044)
.Column("revised_price", null)
.AtAsync(new DateTime(2021, 11, 25, 0, 46, 26));
await sender.SendAsync();
Код: Выделить всё
Unhandled exception. QuestDB.Utils.IngressError: ServerFlushError : Bad request.
Server Response (
Code: `invalid`
Message: `failed to parse line protocol:errors encountered on line(s):
error in line 1: table: storage path, column: state; cast error from protocol type: STRING to column type: DOUBLE`
Line: `1`
ErrorId: `c8712c23edc1-1`
)
Подробнее здесь: https://stackoverflow.com/questions/792 ... ilp-client