мелочи к прошлому коммиту
parent
cee02fe665
commit
7424cdd5ca
|
@ -95,7 +95,6 @@ namespace KLHZ.Trader.Core.Exchange.Services
|
||||||
SubscriptionAction = SubscriptionAction.Subscribe
|
SubscriptionAction = SubscriptionAction.Subscribe
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
var tradesRequest = new SubscribeTradesRequest
|
var tradesRequest = new SubscribeTradesRequest
|
||||||
{
|
{
|
||||||
SubscriptionAction = SubscriptionAction.Subscribe
|
SubscriptionAction = SubscriptionAction.Subscribe
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
drop table if exists instrument_trades;
|
||||||
|
create table instrument_trades
|
||||||
|
(
|
||||||
|
trade_id bigserial,
|
||||||
|
bought_at timestamp default current_timestamp,
|
||||||
|
figi text not null,
|
||||||
|
ticker text not null,
|
||||||
|
price decimal not null,
|
||||||
|
count decimal not null,
|
||||||
|
direction int not null default 1,
|
||||||
|
primary key (trade_id)
|
||||||
|
);
|
Loading…
Reference in New Issue