Created
July 12, 2018 03:47
-
-
Save toniqhz/3d504a09cf2050f6729dc53c48baae1a to your computer and use it in GitHub Desktop.
set and confirm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--------------------------------------- | |
set | |
curl -X "POST" "http://localhost:8000/setting/set-token-listing" \ | |
-H 'Content-Type: application/x-www-form-urlencoded'\ | |
--data-urlencode "data={ | |
\"OMG\": { | |
\"token\": { | |
\"id\": \"OMG\", | |
\"name\": \"OmisexGO\", | |
\"decimals\": 18, | |
\"address\": \"0xd26114cd6EE289AccF82350c8d8487fedB8A0C07\", | |
\"minimal_record_resolution\": \"1000000000000000\", | |
\"max_per_block_imbalance\": \"439794468212403470336\", | |
\"max_total_imbalance\": \"722362414038872621056\", | |
\"internal\": true, | |
\"active\": true | |
}, | |
\"exchanges\": { | |
\"binance\": { | |
\"deposit_address\": \"0x22222222222222222222222222222222222\", | |
\"fee\": { | |
\"withdraw\": 0.2, | |
\"deposit\": 0.3 | |
}, | |
\"min_deposit\": 4 | |
} | |
}, | |
\"pwis_equation\": { | |
\"ask\": { | |
\"a\": 800, | |
\"b\": 600, | |
\"c\": 0, | |
\"min_min_spread\": 0, | |
\"price_multiply_factor\": 0 | |
}, | |
\"bid\": { | |
\"a\": 750, | |
\"b\": 500, | |
\"c\": 0, | |
\"min_min_spread\": 0, | |
\"price_multiply_factor\": 0 | |
} | |
}, | |
\"target_qty\": { | |
\"set_target\": { | |
\"total_target\": 10648, | |
\"reserve_target\": 7134, | |
\"rebalance_threshold\": 0.33, | |
\"transfer_threshold\": 0.2 | |
} | |
}, | |
\"rebalance_quadratic\": { | |
\"rebalance_quadratic\": { | |
\"a\": 1, | |
\"b\": 2, | |
\"c\": 3 | |
} | |
} | |
} | |
}" | |
------------------------------------ | |
confirm | |
curl -X "POST" "http://localhost:8000/setting/confirm-token-listing" \ | |
-H 'Content-Type: application/x-www-form-urlencoded'\ | |
--data-urlencode "data={ | |
\"OMG\": { | |
\"token\": { | |
\"id\": \"OMG\", | |
\"name\": \"OmisexGO\", | |
\"decimals\": 18, | |
\"address\": \"0xd26114cd6EE289AccF82350c8d8487fedB8A0C07\", | |
\"minimal_record_resolution\": \"1000000000000000\", | |
\"max_per_block_imbalance\": \"439794468212403470336\", | |
\"max_total_imbalance\": \"722362414038872621056\", | |
\"internal\": true, | |
\"active\": true | |
}, | |
\"exchanges\": { | |
\"binance\": { | |
\"deposit_address\": \"0x22222222222222222222222222222222222\", | |
\"fee\": { | |
\"withdraw\": 0.2, | |
\"deposit\": 0.3 | |
}, | |
\"min_deposit\": 4 | |
} | |
}, | |
\"pwis_equation\": { | |
\"ask\": { | |
\"a\": 800, | |
\"b\": 600, | |
\"c\": 0, | |
\"min_min_spread\": 0, | |
\"price_multiply_factor\": 0 | |
}, | |
\"bid\": { | |
\"a\": 750, | |
\"b\": 500, | |
\"c\": 0, | |
\"min_min_spread\": 0, | |
\"price_multiply_factor\": 0 | |
} | |
}, | |
\"target_qty\": { | |
\"set_target\": { | |
\"total_target\": 10648, | |
\"reserve_target\": 7134, | |
\"rebalance_threshold\": 0.33, | |
\"transfer_threshold\": 0.2 | |
} | |
}, | |
\"rebalance_quadratic\": { | |
\"rebalance_quadratic\": { | |
\"a\": 1, | |
\"b\": 2, | |
\"c\": 3 | |
} | |
} | |
} | |
}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment