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 20191027221057_create_workbench_balances.exs
Raw

priv/repo/migrations/20191027221057_create_workbench_balances.exs

defmodule Prop.Repo.Migrations.CreateWorkbenchBalances do
use Ecto.Migration
def change do
create table(:balances) do
add(:usd, :decimal, null: false)
add(:start_time, :utc_datetime, null: false)
add(:finish_time, :utc_datetime, null: false)
add(:btc_usd_venue, :string, null: false)
add(:btc_usd_symbol, :string, null: false)
add(:btc_usd_price, :decimal, null: false)
add(:usd_quote_venue, :string, null: false)
add(:usd_quote_asset, :string, null: false)
timestamps()
end
end
end