Packages

An open and opinionated DeFi/CeFi/TradFi trading platform using productive & familiar open source libraries and tools for strategy research, execution and operation

Current section

Files

Jump to
prop priv repo migrations 20210408175224_create_history_funding_rates.exs
Raw

priv/repo/migrations/20210408175224_create_history_funding_rates.exs

defmodule Prop.Repo.Migrations.CreateHistoryFundingRates do
use Ecto.Migration
def change do
create table(:funding_rates) do
add :time, :utc_datetime, null: false
add :venue, :string, null: false
add :product, :string, null: false
add :rate, :decimal, null: false
timestamps()
end
create unique_index(:funding_rates, [:time, :venue, :product])
end
end