Skip to content

Inital Data

bestchanges edited this page Mar 16, 2018 · 3 revisions

Format

Format is Yaml.

exchange_common.yaml

name: Poloniex
handler: PoloniexExchange
---
name: Bittrex
handler: BittrexExchange

References

Will be dereferenced used mongo query for referece object:

currency: {'name': 'BTC'}

Objects

  • exchange
  • pool
  • miner_program
  • exchange_account
  • pool_account
  • currency
  • configuration_group

Where

data files contains in 'data' directory of the server. Each object is one of

  1. Load object_common.yaml (if exists)
  2. Load platform specific Shall be either 'object_test.yaml', 'object_development.yaml', 'object_production.yaml'
  3. Load installation specific object.yaml (is exists).

Import

  1. Lookup existing by primary key.
  2. If exists then update values, otherwise create new object.

Clone this wiki locally