Merge pull request #75 into master
5b17bd3hledger-flow: coinbase: update mockups to latest impl (Aaron Fiore)d115e29client: fetch.yaml.in: update Coinbase comment (Aaron Fiore)07023eahledger-flow: coinbase: refactor for ccxt raw ledger (Aaron Fiore)2d3ab78php: coinbase: use ccxt end-user public-facing API (Aaron Fiore)
This commit was merged in pull request #75.
This commit is contained in:
@@ -149,14 +149,26 @@ version: @DOCKER_FINANCE_VERSION@
|
||||
# Use this format to fetch only trades with the following symbols/pairs (all BTC pairs and only GUSD/USD pair)
|
||||
#subaccount: "exchange/{BTC,gusdusd}"
|
||||
|
||||
# When creating a Coinbase V2 API key, select only the "wallet:accounts:read" *AND* "wallet:transactions:read" options
|
||||
# Supported Coinbase API formats:
|
||||
#
|
||||
# - CDP (Coinbase Developer Platform)
|
||||
# * When creating a CDP key, only select readonly
|
||||
#
|
||||
# - Coinbase Legacy Keys
|
||||
# * When creating a legacy key, only select:
|
||||
# - wallet:accounts:read
|
||||
# - wallet:transactions:read
|
||||
coinbase:
|
||||
key: "XXXXXXXXXXXXXXXX"
|
||||
passphrase:
|
||||
secret: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
|
||||
|
||||
# Use this format to fetch all supported symbols/pairs
|
||||
subaccount: "platform"
|
||||
# Use this format to fetch only the accounts with the following symbols
|
||||
|
||||
# Use this format to fetch only accounts with the following codes
|
||||
# NOTE: codes will likely be the ticker symbol. See the following for details:
|
||||
# - https://docs.cdp.coinbase.com/sign-in-with-coinbase/docs/api-currencies
|
||||
#subaccount: "platform/{BTC,LTC,ETH,USDC,USD}"
|
||||
|
||||
coinbase-pro:
|
||||
|
||||
@@ -61,74 +61,37 @@ namespace docker_finance\exchanges\internal\exchanges\coinbase
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Common implementation
|
||||
* @brief Coinbase Accounts
|
||||
* @details All available accounts for end-user (e.g., wallets, vaults, etc.)
|
||||
* @since docker-finance 1.0.0
|
||||
*/
|
||||
abstract class Coinbase extends Impl
|
||||
abstract class Accounts extends Impl
|
||||
{
|
||||
public function __construct(utils\Env $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
}
|
||||
|
||||
//! @brief Implements underlying API request
|
||||
public function request(string $path): mixed
|
||||
/**
|
||||
* @brief Get Coinbase Accounts with underlying API
|
||||
* @return array<mixed> ccxt fetchAccounts object
|
||||
*/
|
||||
private function get(): array
|
||||
{
|
||||
$response = [];
|
||||
$timer = 10;
|
||||
$success = false;
|
||||
while (!$success) {
|
||||
try {
|
||||
utils\CLI::print_debug($path);
|
||||
|
||||
$response = $this->get_api()->request($path, 'private', 'GET');
|
||||
utils\CLI::print_debug($response);
|
||||
|
||||
$success = true;
|
||||
} catch (\ccxt\NetworkError $ex) {
|
||||
utils\CLI::print_warning(
|
||||
$ex->getMessage() . " ! Trying again in $timer seconds..."
|
||||
);
|
||||
sleep($timer);
|
||||
}
|
||||
}
|
||||
// Note: given the small size of returned structure,
|
||||
// there's currently no forseeable need to paginate.
|
||||
$response = $this->get_api()->fetchAccounts(); // @phpstan-ignore-line
|
||||
utils\CLI::print_debug($response);
|
||||
return $response;
|
||||
}
|
||||
|
||||
/** @return array<string> */
|
||||
protected function get_paginated_path(string $path): array
|
||||
{
|
||||
$stack = [];
|
||||
|
||||
// Push first response. Will provide us with pagination if exists
|
||||
utils\CLI::print_debug($path);
|
||||
$response = $this->request($path);
|
||||
array_push($stack, $response);
|
||||
|
||||
// Process paginated
|
||||
$paginated = false;
|
||||
if (!empty($response['pagination']['next_uri'])) {
|
||||
$paginated = true;
|
||||
}
|
||||
while ($paginated) {
|
||||
// next_uri now returns whole URI, cut out /v2/
|
||||
$next = substr($response['pagination']['next_uri'], 4);
|
||||
|
||||
$response = $this->request($next);
|
||||
array_push($stack, $response);
|
||||
|
||||
if (empty($response['pagination']['next_uri'])) {
|
||||
$paginated = false;
|
||||
}
|
||||
}
|
||||
|
||||
return $stack;
|
||||
}
|
||||
|
||||
// @phpstan-ignore-next-line // TODO: resolve
|
||||
/**
|
||||
* @brief Get Coinbase Accounts
|
||||
* @return array<mixed> ccxt fetchAccounts object
|
||||
*/
|
||||
protected function get_accounts(): array
|
||||
{
|
||||
return $this->get_paginated_path('accounts?&limit=100&order=asc');
|
||||
return Accounts::get();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -137,7 +100,7 @@ namespace docker_finance\exchanges\internal\exchanges\coinbase
|
||||
* @details Transfers / Rewards / non-Trades
|
||||
* @since docker-finance 1.0.0
|
||||
*/
|
||||
final class Transactions extends Coinbase
|
||||
abstract class Transactions extends Accounts
|
||||
{
|
||||
public function __construct(utils\Env $env)
|
||||
{
|
||||
@@ -145,55 +108,107 @@ namespace docker_finance\exchanges\internal\exchanges\coinbase
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Wrapper for underlying API
|
||||
* @phpstan-ignore-next-line // TODO: resolve
|
||||
* @brief Get Coinbase transactions with underlying API
|
||||
* @param array<mixed> $account ccxt fetchAccounts object of Coinbase account (e.g., wallet, vault, etc.)
|
||||
* @param int $since Milliseconds since epoch to begin fetch from
|
||||
* @return array<mixed> Unpaginated (but with cursor) ledger (transactions) of given account since timestamp
|
||||
*/
|
||||
private function get_transactions(string $account_id): array
|
||||
private function get(array $account, int $since): array
|
||||
{
|
||||
$path = 'accounts/' . $account_id . '/transactions?&limit=100&order=asc';
|
||||
utils\CLI::print_debug($path);
|
||||
$params = [];
|
||||
|
||||
return $this->get_paginated_path($path);
|
||||
// WARNING: must be added in order to discern between wallet and vault
|
||||
$params['account_id'] = $account['id'];
|
||||
|
||||
// Pagination
|
||||
if (array_key_exists('starting_after', $account)) {
|
||||
$params['starting_after'] = $account['starting_after'];
|
||||
}
|
||||
|
||||
// @phpstan-ignore-next-line
|
||||
$response = $this->get_api()->fetchLedger(
|
||||
$account['code'],
|
||||
$since,
|
||||
100,
|
||||
$params
|
||||
);
|
||||
|
||||
utils\CLI::print_debug($response);
|
||||
return $response;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get/parse transactions
|
||||
* @return Single account metadata with attached transactions, prepared for writing
|
||||
* @phpstan-ignore-next-line // TODO: resolve
|
||||
* @brief Get Coinbase transactions and prepare for reading
|
||||
* @param array<mixed> $account ccxt fetchAccounts object of Coinbase account (e.g., wallet, vault, etc.)
|
||||
* @return array<mixed> Complete ledger (transactions) of given account for given (environment) year
|
||||
*/
|
||||
private function prepare_transactions(array $account): array
|
||||
protected function get_transactions(array $account): array
|
||||
{
|
||||
$id = $account['id'];
|
||||
$name = $account['name'];
|
||||
$name = $account['info']['name'];
|
||||
|
||||
utils\CLI::print_custom(" \e[32m│\e[0m\n");
|
||||
utils\CLI::print_custom(" \e[32m├─\e[34m\e[1;3m $name\e[0m\n");
|
||||
utils\CLI::print_custom(" \e[32m│ └─\e[37;2m $id\e[0m\n");
|
||||
utils\CLI::print_custom(" \e[32m├─\e[34m\e[1;3m {$name}\e[0m\n");
|
||||
utils\CLI::print_custom(" \e[32m│ └─\e[37;2m {$id}\e[0m\n");
|
||||
|
||||
// Account ID
|
||||
// account_id => tx
|
||||
$stack[] = $id;
|
||||
|
||||
// Transactions of account ID
|
||||
$txs = $this->get_transactions($id);
|
||||
// Since given timestamp (milliseconds since epoch)
|
||||
$given_year = $this->get_env()->get_env('API_FETCH_YEAR');
|
||||
$year = new \DateTime($this->get_env()->get_env('API_FETCH_YEAR') . '-01-01');
|
||||
$timestamp = $year->format('U') * 1000;
|
||||
|
||||
for ($j = 0; $j < count($txs); ++$j) {
|
||||
// Only given year's tx's. Format: 1970-01-01T12:34:56Z
|
||||
for ($i = 0; $i < count($txs[$j]['data']); ++$i) {
|
||||
$created_at = $txs[$j]['data'][$i]['created_at'];
|
||||
$year = explode('-', $created_at)[0];
|
||||
if ($year == $this->get_env()->get_env('API_FETCH_YEAR')) {
|
||||
$stack[$id][] = $txs[$j]['data'][$i];
|
||||
while (true) {
|
||||
// Transactions of account ID
|
||||
$txs = Transactions::get($account, $timestamp);
|
||||
|
||||
if (!count($txs)) {
|
||||
break;
|
||||
}
|
||||
|
||||
// Keep only given year's tx's
|
||||
for ($i = 0; $i < count($txs); ++$i) {
|
||||
$info = $txs[$i]['info'];
|
||||
|
||||
// Format: 1970-01-01T12:34:56Z
|
||||
$created_at = $info['created_at'];
|
||||
$at_year = explode('-', $created_at)[0];
|
||||
if ($at_year != $given_year) {
|
||||
break 2;
|
||||
}
|
||||
|
||||
$stack[$id][] = $txs[$i];
|
||||
}
|
||||
|
||||
// Paginate (if needed)
|
||||
$last = $txs[array_key_last($txs)];
|
||||
if (array_key_exists('next_starting_after', $last)) {
|
||||
$account['starting_after'] = $last['next_starting_after'];
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
sort($stack);
|
||||
return $stack;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Coinbase fetch object
|
||||
* @details Implements complete fetch operation
|
||||
* @since docker-finance 1.0.0
|
||||
*/
|
||||
final class Coinbase extends Transactions
|
||||
{
|
||||
//! @brief No-op
|
||||
//! @todo Base refactor for exclusive ccxt
|
||||
public function request(string $path): mixed
|
||||
{
|
||||
return [];
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Implements read handler
|
||||
* @return array<array<int, string>> N accounts with metadata and attached transaction data, prepared for writing
|
||||
*/
|
||||
public function read(): array
|
||||
{
|
||||
// Fetch accounts (not txs of accounts)
|
||||
@@ -204,30 +219,25 @@ namespace docker_finance\exchanges\internal\exchanges\coinbase
|
||||
$this->get_env()->get_env('API_SUBACCOUNT')
|
||||
);
|
||||
|
||||
// account_id => transactions
|
||||
$stack = [];
|
||||
|
||||
foreach ($accounts as $account) {
|
||||
for ($i = 0; $i < count($account['data']); ++$i) {
|
||||
$data = $account['data'][$i];
|
||||
|
||||
// Get only applicable symbols/accounts
|
||||
if (!empty($symbols)) {
|
||||
$code = $data['currency']['code'];
|
||||
foreach ($symbols as $symbol) {
|
||||
if ($symbol == $code) {
|
||||
$txs = $this->prepare_transactions($data);
|
||||
if (!empty($txs)) {
|
||||
array_push($stack, $txs);
|
||||
}
|
||||
// Get only applicable symbols/accounts
|
||||
if (!empty($symbols)) {
|
||||
$code = $account['code'];
|
||||
foreach ($symbols as $symbol) {
|
||||
if ($symbol == $code) {
|
||||
$txs = $this->get_transactions($account);
|
||||
if (!empty($txs)) {
|
||||
array_push($stack, $txs);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// Get all
|
||||
$txs = $this->prepare_transactions($data);
|
||||
if (!empty($txs)) {
|
||||
array_push($stack, $txs);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// Get all
|
||||
$txs = $this->get_transactions($account);
|
||||
if (!empty($txs)) {
|
||||
array_push($stack, $txs);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -235,23 +245,30 @@ namespace docker_finance\exchanges\internal\exchanges\coinbase
|
||||
return $stack;
|
||||
}
|
||||
|
||||
//! @brief Implements write handler
|
||||
public function write(mixed $txs, string $id): void
|
||||
{
|
||||
$file = $this->get_env()->get_env('API_OUT_DIR') . $id . '_transactions.csv';
|
||||
$this->raw_to_csv($txs, $file);
|
||||
}
|
||||
|
||||
//! @brief Implements fetch handler
|
||||
public function fetch(): void
|
||||
{
|
||||
utils\CLI::print_normal(" ─ Account");
|
||||
|
||||
foreach ($this->read() as $account => $transactions) {
|
||||
|
||||
// All reads must have 'account_id' attached
|
||||
$id = $transactions[0];
|
||||
if (array_key_exists($id, $transactions)) {
|
||||
$txs = $transactions[$id];
|
||||
$this->write($txs, $id);
|
||||
if (empty($id)) {
|
||||
utils\CLI::throw_fatal("Missing account ID");
|
||||
}
|
||||
|
||||
// Not all reads will have txs (no account activity since timestamp)
|
||||
if (array_key_exists(1, $transactions)) {
|
||||
$txs = $transactions[1];
|
||||
if (!empty($txs)) {
|
||||
$this->write($txs, $id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -274,16 +291,16 @@ namespace docker_finance\exchanges\internal\exchanges
|
||||
*/
|
||||
final class Coinbase extends \docker_finance\exchanges\API
|
||||
{
|
||||
private coinbase\Transactions $transactions;
|
||||
private coinbase\Coinbase $api;
|
||||
|
||||
public function __construct(\docker_finance\utils\Env $env)
|
||||
{
|
||||
$this->transactions = new coinbase\Transactions($env);
|
||||
$this->api = new coinbase\Coinbase($env);
|
||||
}
|
||||
|
||||
public function fetch(): void
|
||||
{
|
||||
$this->transactions->fetch();
|
||||
$this->api->fetch();
|
||||
}
|
||||
}
|
||||
} // namespace docker_finance\exchanges\internal\exchanges
|
||||
|
||||
@@ -88,67 +88,68 @@ function __parse()
|
||||
# Allow numerical symbols
|
||||
gsub(/1INCH/, "ONEINCH")
|
||||
|
||||
# Print for rules consumption
|
||||
# Print [info] object for rules consumption
|
||||
printf $1 OFS # account_id (prepended column)
|
||||
printf $2 OFS # id (coinbase_id)
|
||||
printf $3 OFS # type
|
||||
printf $4 OFS # status
|
||||
printf $5 OFS # amount_amount
|
||||
printf $6 OFS # amount_currency
|
||||
printf $7 OFS # native_amount_amount
|
||||
printf $8 OFS # native_amount_currency
|
||||
printf $9 OFS # created_at
|
||||
printf $10 OFS # resource
|
||||
printf $11 OFS # resource_path
|
||||
printf $12 OFS # description
|
||||
printf $13 OFS # network_status
|
||||
printf $14 OFS # network_network_name
|
||||
printf $15 OFS # network_hash (txid)
|
||||
printf("%.8f", $16); printf OFS # network_transaction_fee_amount
|
||||
printf $17 OFS # network_transaction_fee_currency
|
||||
printf $18 OFS # to_resource
|
||||
printf $19 OFS # to_address
|
||||
printf $20 OFS # to_email
|
||||
printf $21 OFS # from_resource
|
||||
printf $22 OFS # from_resource_path
|
||||
printf $23 OFS # from_id
|
||||
printf $24 OFS # from_name
|
||||
printf $25 OFS # cancelable
|
||||
printf $26 OFS # idem
|
||||
printf("%.8f", $27); printf OFS # buy_total_amount
|
||||
printf $28 OFS # buy_total_currency
|
||||
printf("%.8f", $29); printf OFS # buy_subtotal_amount
|
||||
printf $30 OFS # buy_subtotal_currency
|
||||
printf("%.8f", $31); printf OFS # buy_fee_amount
|
||||
printf $32 OFS # buy_fee_currency
|
||||
printf $33 OFS # buy_id
|
||||
printf $34 OFS # buy_payment_method_name
|
||||
printf("%.8f", $35); printf OFS # sell_total_amount
|
||||
printf $36 OFS # sell_total_currency
|
||||
printf("%.8f", $37); printf OFS # sell_subtotal_amount
|
||||
printf $38 OFS # sell_subtotal_currency
|
||||
printf("%.8f", $39); printf OFS # sell_fee_amount
|
||||
printf $40 OFS # sell_fee_currency
|
||||
printf $41 OFS # sell_id
|
||||
printf $42 OFS # sell_payment_method_name
|
||||
printf("%.8f", $43); printf OFS # trade_fee_amount
|
||||
printf $44 OFS # trade_fee_currency
|
||||
printf $45 OFS # trade_id
|
||||
printf $46 OFS # trade_payment_method_name
|
||||
printf("%.8f", $47); printf OFS # advanced_trade_fill_fill_price
|
||||
printf $48 OFS # advanced_trade_fill_product_id
|
||||
printf $49 OFS # advanced_trade_fill_order_id
|
||||
printf("%.8f", $50); printf OFS # advanced_trade_fill_commission
|
||||
printf $51 OFS # advanced_trade_fill_order_side
|
||||
printf $2 OFS # info_id (coinbase_id)
|
||||
printf $3 OFS # info_type
|
||||
printf $4 OFS # info_status
|
||||
printf $5 OFS # info_amount_amount
|
||||
printf $6 OFS # info_amount_currency
|
||||
printf $7 OFS # info_native_amount_amount
|
||||
printf $8 OFS # info_native_amount_currency
|
||||
printf $9 OFS # info_created_at
|
||||
printf $10 OFS # info_resource
|
||||
printf $11 OFS # info_resource_path
|
||||
printf $12 OFS # info_description
|
||||
printf $13 OFS # info_network_status
|
||||
printf $14 OFS # info_network_network_name
|
||||
printf $15 OFS # info_network_hash (txid)
|
||||
printf("%.8f", $16); printf OFS # info_network_transaction_fee_amount
|
||||
printf $17 OFS # info_network_transaction_fee_currency
|
||||
printf $18 OFS # info_to_resource
|
||||
printf $19 OFS # info_to_address
|
||||
printf $20 OFS # info_to_email
|
||||
printf $21 OFS # info_from_resource
|
||||
printf $22 OFS # info_from_resource_path
|
||||
printf $23 OFS # info_from_id
|
||||
printf $24 OFS # info_from_name
|
||||
printf $25 OFS # info_cancelable
|
||||
printf $26 OFS # info_idem
|
||||
printf("%.8f", $27); printf OFS # info_buy_total_amount
|
||||
printf $28 OFS # info_buy_total_currency
|
||||
printf("%.8f", $29); printf OFS # info_buy_subtotal_amount
|
||||
printf $30 OFS # info_buy_subtotal_currency
|
||||
printf("%.8f", $31); printf OFS # info_buy_fee_amount
|
||||
printf $32 OFS # info_buy_fee_currency
|
||||
printf $33 OFS # info_buy_id
|
||||
printf $34 OFS # info_buy_payment_method_name
|
||||
printf("%.8f", $35); printf OFS # info_sell_total_amount
|
||||
printf $36 OFS # info_sell_total_currency
|
||||
printf("%.8f", $37); printf OFS # info_sell_subtotal_amount
|
||||
printf $38 OFS # info_sell_subtotal_currency
|
||||
printf("%.8f", $39); printf OFS # info_sell_fee_amount
|
||||
printf $40 OFS # info_sell_fee_currency
|
||||
printf $41 OFS # info_sell_id
|
||||
printf $42 OFS # info_sell_payment_method_name
|
||||
printf("%.8f", $43); printf OFS # info_trade_fee_amount
|
||||
printf $44 OFS # info_trade_fee_currency
|
||||
printf $45 OFS # info_trade_id
|
||||
printf $46 OFS # info_trade_payment_method_name
|
||||
printf("%.8f", $47); printf OFS # info_advanced_trade_fill_fill_price
|
||||
printf $48 OFS # info_advanced_trade_fill_product_id
|
||||
printf $49 OFS # info_advanced_trade_fill_order_id
|
||||
printf("%.8f", $50); printf OFS # info_advanced_trade_fill_commission
|
||||
printf $51 OFS # info_advanced_trade_fill_order_side
|
||||
|
||||
#
|
||||
# Add new columns to calculate fees against native currency price
|
||||
#
|
||||
# WARNING:
|
||||
#
|
||||
# - `amount_amount` and/or `native_amount_amount` may be given as 0
|
||||
# because Coinbase does not display the full value of either column
|
||||
# for token values (satoshi, gwei, etc.) valued less than a $0.00.
|
||||
# - `info_amount_amount` and/or `info_native_amount_amount` may be
|
||||
# given as 0 because Coinbase does not display the full value of
|
||||
# either column for token values (satoshi, gwei, etc.) valued less
|
||||
# than a $0.00.
|
||||
#
|
||||
# Quite literally, the only value information that Coinbase will
|
||||
# provide for these transactions is 0 or equivalent; so, an accurate
|
||||
@@ -246,73 +247,73 @@ function parse()
|
||||
local -r _account_id="${global_in_filename:0:-17}"
|
||||
|
||||
#
|
||||
# Reconstruct into "universal" header
|
||||
# Reconstruct [info] object (raw ledger) with "universal" header
|
||||
#
|
||||
|
||||
# Required schema, per documentation, that appears to exist amongst all entries
|
||||
declare -g universal_header="id,type,status,amount_amount,amount_currency,native_amount_amount,native_amount_currency,created_at,resource,resource_path"
|
||||
# Required Coinbase schema, per documentation, that appears to exist amongst all entries
|
||||
declare -g universal_header="info_id,info_type,info_status,info_amount_amount,info_amount_currency,info_native_amount_amount,info_native_amount_currency,info_created_at,info_resource,info_resource_path"
|
||||
|
||||
# Selected header will always have minimum requirements
|
||||
declare -g selected_header+="$universal_header"
|
||||
|
||||
# `description`
|
||||
add_to_headers "description"
|
||||
add_to_headers "info_description"
|
||||
|
||||
# `network`
|
||||
add_to_headers "network_status"
|
||||
add_to_headers "network_network_name"
|
||||
add_to_headers "network_hash"
|
||||
add_to_headers "network_transaction_fee_amount"
|
||||
add_to_headers "network_transaction_fee_currency"
|
||||
add_to_headers "info_network_status"
|
||||
add_to_headers "info_network_network_name"
|
||||
add_to_headers "info_network_hash"
|
||||
add_to_headers "info_network_transaction_fee_amount"
|
||||
add_to_headers "info_network_transaction_fee_currency"
|
||||
|
||||
# `to`
|
||||
add_to_headers "to_resource"
|
||||
add_to_headers "to_address"
|
||||
add_to_headers "to_email"
|
||||
add_to_headers "info_to_resource"
|
||||
add_to_headers "info_to_address"
|
||||
add_to_headers "info_to_email"
|
||||
|
||||
# `from`
|
||||
add_to_headers "from_resource"
|
||||
add_to_headers "from_resource_path"
|
||||
add_to_headers "from_id"
|
||||
add_to_headers "from_name"
|
||||
add_to_headers "info_from_resource"
|
||||
add_to_headers "info_from_resource_path"
|
||||
add_to_headers "info_from_id"
|
||||
add_to_headers "info_from_name"
|
||||
|
||||
# Remaining SEND related
|
||||
add_to_headers "cancelable"
|
||||
add_to_headers "idem"
|
||||
add_to_headers "info_cancelable"
|
||||
add_to_headers "info_idem"
|
||||
|
||||
# `buy`
|
||||
add_to_headers "buy_total_amount"
|
||||
add_to_headers "buy_total_currency"
|
||||
add_to_headers "buy_subtotal_amount"
|
||||
add_to_headers "buy_subtotal_currency"
|
||||
add_to_headers "buy_fee_amount"
|
||||
add_to_headers "buy_fee_currency"
|
||||
add_to_headers "buy_id"
|
||||
add_to_headers "buy_payment_method_name"
|
||||
add_to_headers "info_buy_total_amount"
|
||||
add_to_headers "info_buy_total_currency"
|
||||
add_to_headers "info_buy_subtotal_amount"
|
||||
add_to_headers "info_buy_subtotal_currency"
|
||||
add_to_headers "info_buy_fee_amount"
|
||||
add_to_headers "info_buy_fee_currency"
|
||||
add_to_headers "info_buy_id"
|
||||
add_to_headers "info_buy_payment_method_name"
|
||||
|
||||
# `sell`
|
||||
add_to_headers "sell_total_amount"
|
||||
add_to_headers "sell_total_currency"
|
||||
add_to_headers "sell_subtotal_amount"
|
||||
add_to_headers "sell_subtotal_currency"
|
||||
add_to_headers "sell_fee_amount"
|
||||
add_to_headers "sell_fee_currency"
|
||||
add_to_headers "sell_id"
|
||||
add_to_headers "sell_payment_method_name"
|
||||
add_to_headers "info_sell_total_amount"
|
||||
add_to_headers "info_sell_total_currency"
|
||||
add_to_headers "info_sell_subtotal_amount"
|
||||
add_to_headers "info_sell_subtotal_currency"
|
||||
add_to_headers "info_sell_fee_amount"
|
||||
add_to_headers "info_sell_fee_currency"
|
||||
add_to_headers "info_sell_id"
|
||||
add_to_headers "info_sell_payment_method_name"
|
||||
|
||||
# `trade`
|
||||
add_to_headers "trade_fee_amount"
|
||||
add_to_headers "trade_fee_currency"
|
||||
add_to_headers "trade_id"
|
||||
add_to_headers "trade_payment_method_name"
|
||||
add_to_headers "info_trade_fee_amount"
|
||||
add_to_headers "info_trade_fee_currency"
|
||||
add_to_headers "info_trade_id"
|
||||
add_to_headers "info_trade_payment_method_name"
|
||||
|
||||
# `advanced_trade_fill`
|
||||
# Note: Coinbase appears to always present this in an ordered set
|
||||
add_to_headers "advanced_trade_fill_fill_price"
|
||||
add_to_headers "advanced_trade_fill_product_id"
|
||||
add_to_headers "advanced_trade_fill_order_id"
|
||||
add_to_headers "advanced_trade_fill_commission"
|
||||
add_to_headers "advanced_trade_fill_order_side"
|
||||
add_to_headers "info_advanced_trade_fill_fill_price"
|
||||
add_to_headers "info_advanced_trade_fill_product_id"
|
||||
add_to_headers "info_advanced_trade_fill_order_id"
|
||||
add_to_headers "info_advanced_trade_fill_commission"
|
||||
add_to_headers "info_advanced_trade_fill_order_side"
|
||||
|
||||
#
|
||||
# Finalize the "universal" format and parse
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
id,type,status,amount_amount,amount_currency,native_amount_amount,native_amount_currency,created_at,resource,resource_path
|
||||
info_id,info_type,info_status,info_amount_amount,info_amount_currency,info_native_amount_amount,info_native_amount_currency,info_created_at,info_resource,info_resource_path
|
||||
XXXXXXXX-XXXX-XXXX-XXXX-XBTCVAULT001,transfer,completed,0.05432109,BTC,1288.78,USD,2023-02-02T02:02:03Z,transaction,/v2/accounts/XXXXXXXX-XXXX-XXXX-XXXX-XXXXBTCVAULT/transactions/XXXXXXXX-XXXX-XXXX-XXXX-XBTCVAULT001
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
id,type,status,amount_amount,amount_currency,native_amount_amount,native_amount_currency,created_at,resource,resource_path,network_status,network_network_name,network_hash,sell_total_amount,sell_total_currency,sell_subtotal_amount,sell_subtotal_currency,sell_id,sell_payment_method_name,buy_total_amount,buy_total_currency,buy_subtotal_amount,buy_subtotal_currency,buy_id,buy_payment_method_name,to_resource,to_address,idem
|
||||
info_id,info_type,info_status,info_amount_amount,info_amount_currency,info_native_amount_amount,info_native_amount_currency,info_created_at,info_resource,info_resource_path,info_network_status,info_network_network_name,info_network_hash,info_sell_total_amount,info_sell_total_currency,info_sell_subtotal_amount,info_sell_subtotal_currency,info_sell_id,info_sell_payment_method_name,info_buy_total_amount,info_buy_total_currency,info_buy_subtotal_amount,info_buy_subtotal_currency,info_buy_id,info_buy_payment_method_name,info_to_resource,info_to_address,info_idem
|
||||
XXXXXXXX-XXXX-XXXX-XXXX-XXXXXUSDC001,send,completed,1000.000000,USDC,1000.00,USD,2023-01-02T01:02:01Z,transaction,/v2/accounts/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXUSDC/transactions/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXUSDC001,confirmed,ethereum,XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXUSDCTXID1,,,,,,,,,,,,,,,
|
||||
XXXXXXXX-XXXX-XXXX-XXXX-XXXXXUSDC002,sell,completed,-500.000000,USDC,-500.00,USD,2023-01-02T01:02:02Z,transaction,/v2/accounts/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXUSDC/transactions/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXUSDC002,,,,500.00,USD,500.00,USD,XXXXXXXX-XXXX-XXXX-XXXX-XXXXXUSDCID1,"Coinbase USD Wallet",,,,,,,,,
|
||||
XXXXXXXX-XXXX-XXXX-XXXX-XXXXXUSDC003,buy,completed,123.000000,USDC,123.00,USD,2023-01-03T01:03:03Z,transaction,/v2/accounts/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXUSDC/transactions/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXUSDC003,,,,,,,,,,123.00,USD,123.00,USD,XXXXXXXX-XXXX-XXXX-XXXX-XXXXXUSDCID2,"DISCOVER BANK ******1234",,,
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
id,type,status,amount_amount,amount_currency,native_amount_amount,native_amount_currency,created_at,resource,resource_path,to_resource,to_address,network_status,network_network_name,network_hash,network_transaction_fee_amount,network_transaction_fee_currency,idem,advanced_trade_fill_fill_price,advanced_trade_fill_product_id,advanced_trade_fill_order_id,advanced_trade_fill_commission,advanced_trade_fill_order_side
|
||||
info_id,info_type,info_status,info_amount_amount,info_amount_currency,info_native_amount_amount,info_native_amount_currency,info_created_at,info_resource,info_resource_path,info_to_resource,info_to_address,info_network_status,info_network_network_name,info_network_hash,info_network_transaction_fee_amount,info_network_transaction_fee_currency,info_idem,info_advanced_trade_fill_fill_price,info_advanced_trade_fill_product_id,info_advanced_trade_fill_order_id,info_advanced_trade_fill_commission,info_advanced_trade_fill_order_side
|
||||
XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXBTC001,advanced_trade_fill,completed,1.23456789,BTC,29290.32,USD,2023-02-02T02:02:02Z,transaction,/v2/accounts/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXBTC/transactions/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXBTC001,,,,,,,,,23725.16,BTC-USD,XXXXXXXX-XXXX-XXXX-XXXX-XBTCUSDTRADE,123.4567890123456,buy
|
||||
XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXBTC002,transfer,completed,-0.05432109,BTC,-1288.78,USD,2023-02-02T02:02:03Z,transaction,/v2/accounts/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXBTC/transactions/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXBTC002,,,,,,,,,,,,,
|
||||
XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXBTC003,vault_withdrawal,completed,0.01000000,BTC,234.64,USD,2023-03-03T03:03:03Z,transaction,/v2/accounts/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXBTC/transactions/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXBTC003,,,,,,,,,,,,,
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
id,type,status,amount_amount,amount_currency,native_amount_amount,native_amount_currency,created_at,resource,resource_path,sell_total_amount,sell_total_currency,sell_subtotal_amount,sell_subtotal_currency,sell_id,sell_payment_method_name,sell_fee_amount,sell_fee_currency,buy_total_amount,buy_total_currency,buy_subtotal_amount,buy_subtotal_currency,buy_fee_amount,buy_fee_currency,buy_id,buy_payment_method_name,advanced_trade_fill_fill_price,advanced_trade_fill_product_id,advanced_trade_fill_order_id,advanced_trade_fill_commission,advanced_trade_fill_order_side
|
||||
info_id,info_type,info_status,info_amount_amount,info_amount_currency,info_native_amount_amount,info_native_amount_currency,info_created_at,info_resource,info_resource_path,info_sell_total_amount,info_sell_total_currency,info_sell_subtotal_amount,info_sell_subtotal_currency,info_sell_id,info_sell_payment_method_name,info_sell_fee_amount,info_sell_fee_currency,info_buy_total_amount,info_buy_total_currency,info_buy_subtotal_amount,info_buy_subtotal_currency,info_buy_fee_amount,info_buy_fee_currency,info_buy_id,info_buy_payment_method_name,info_advanced_trade_fill_fill_price,info_advanced_trade_fill_product_id,info_advanced_trade_fill_order_id,info_advanced_trade_fill_commission,info_advanced_trade_fill_order_side
|
||||
XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXUSD1,pro_withdrawal,completed,1234.56,USD,1234.56,USD,2021-01-01T01:01:01Z,transaction,/v2/accounts/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXUSD/transactions/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXUSD1,,,,,,,,,,,,,,,,,,,,,
|
||||
XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXUSD2,pro_deposit,completed,-1111.00,USD,-1111.00,USD,2021-01-01T01:01:02Z,transaction,/v2/accounts/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXUSD/transactions/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXUSD2,,,,,,,,,,,,,,,,,,,,,
|
||||
XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXUSD3,fiat_deposit,completed,34567.89,USD,34567.89,USD,2022-01-01T01:01:03Z,transaction,/v2/accounts/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXUSD/transactions/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXUSD3,,,,,,,,,,,,,,,,,,,,,
|
||||
|
||||
|
@@ -1,2 +1,2 @@
|
||||
id,type,status,amount_amount,amount_currency,native_amount_amount,native_amount_currency,created_at,resource,resource_path
|
||||
info_id,info_type,info_status,info_amount_amount,info_amount_currency,info_native_amount_amount,info_native_amount_currency,info_created_at,info_resource,info_resource_path
|
||||
XXXXXXXX-XXXX-XXXX-XXXX-XBTCVAULT001,transfer,completed,0.05432109,BTC,1288.78,USD,2023-02-02T02:02:03Z,transaction,/v2/accounts/XXXXXXXX-XXXX-XXXX-XXXX-XXXXBTCVAULT/transactions/XXXXXXXX-XXXX-XXXX-XXXX-XBTCVAULT001
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
id,type,status,amount_amount,amount_currency,native_amount_amount,native_amount_currency,created_at,resource,resource_path,network_status,network_network_name,network_hash,sell_total_amount,sell_total_currency,sell_subtotal_amount,sell_subtotal_currency,sell_id,sell_payment_method_name,buy_total_amount,buy_total_currency,buy_subtotal_amount,buy_subtotal_currency,buy_id,buy_payment_method_name,to_resource,to_address,idem
|
||||
info_id,info_type,info_status,info_amount_amount,info_amount_currency,info_native_amount_amount,info_native_amount_currency,info_created_at,info_resource,info_resource_path,info_network_status,info_network_network_name,info_network_hash,info_sell_total_amount,info_sell_total_currency,info_sell_subtotal_amount,info_sell_subtotal_currency,info_sell_id,info_sell_payment_method_name,info_buy_total_amount,info_buy_total_currency,info_buy_subtotal_amount,info_buy_subtotal_currency,info_buy_id,info_buy_payment_method_name,info_to_resource,info_to_address,info_idem
|
||||
XXXXXXXX-XXXX-XXXX-XXXX-XXXXXUSDC001,send,completed,1000.000000,USDC,1000.00,USD,2023-01-02T01:02:01Z,transaction,/v2/accounts/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXUSDC/transactions/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXUSDC001,confirmed,ethereum,XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXUSDCTXID1,,,,,,,,,,,,,,,
|
||||
XXXXXXXX-XXXX-XXXX-XXXX-XXXXXUSDC002,sell,completed,-500.000000,USDC,-500.00,USD,2023-01-02T01:02:02Z,transaction,/v2/accounts/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXUSDC/transactions/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXUSDC002,,,,500.00,USD,500.00,USD,XXXXXXXX-XXXX-XXXX-XXXX-XXXXXUSDCID1,"Coinbase USD Wallet",,,,,,,,,
|
||||
XXXXXXXX-XXXX-XXXX-XXXX-XXXXXUSDC003,buy,completed,123.000000,USDC,123.00,USD,2023-01-03T01:03:03Z,transaction,/v2/accounts/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXUSDC/transactions/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXUSDC003,,,,,,,,,,123.00,USD,123.00,USD,XXXXXXXX-XXXX-XXXX-XXXX-XXXXXUSDCID2,"DISCOVER BANK ******1234",,,
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
id,type,status,amount_amount,amount_currency,native_amount_amount,native_amount_currency,created_at,resource,resource_path,to_resource,to_address,network_status,network_network_name,network_hash,network_transaction_fee_amount,network_transaction_fee_currency,idem,advanced_trade_fill_fill_price,advanced_trade_fill_product_id,advanced_trade_fill_order_id,advanced_trade_fill_commission,advanced_trade_fill_order_side
|
||||
info_id,info_type,info_status,info_amount_amount,info_amount_currency,info_native_amount_amount,info_native_amount_currency,info_created_at,info_resource,info_resource_path,info_to_resource,info_to_address,info_network_status,info_network_network_name,info_network_hash,info_network_transaction_fee_amount,info_network_transaction_fee_currency,info_idem,info_advanced_trade_fill_fill_price,info_advanced_trade_fill_product_id,info_advanced_trade_fill_order_id,info_advanced_trade_fill_commission,info_advanced_trade_fill_order_side
|
||||
XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXBTC001,advanced_trade_fill,completed,1.23456789,BTC,29290.32,USD,2023-02-02T02:02:02Z,transaction,/v2/accounts/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXBTC/transactions/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXBTC001,,,,,,,,,23725.16,BTC-USD,XXXXXXXX-XXXX-XXXX-XXXX-XBTCUSDTRADE,123.4567890123456,buy
|
||||
XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXBTC002,transfer,completed,-0.05432109,BTC,-1288.78,USD,2023-02-02T02:02:03Z,transaction,/v2/accounts/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXBTC/transactions/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXBTC002,,,,,,,,,,,,,
|
||||
XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXBTC003,vault_withdrawal,completed,0.01000000,BTC,234.64,USD,2023-03-03T03:03:03Z,transaction,/v2/accounts/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXBTC/transactions/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXBTC003,,,,,,,,,,,,,
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
id,type,status,amount_amount,amount_currency,native_amount_amount,native_amount_currency,created_at,resource,resource_path,sell_total_amount,sell_total_currency,sell_subtotal_amount,sell_subtotal_currency,sell_id,sell_payment_method_name,sell_fee_amount,sell_fee_currency,buy_total_amount,buy_total_currency,buy_subtotal_amount,buy_subtotal_currency,buy_fee_amount,buy_fee_currency,buy_id,buy_payment_method_name,advanced_trade_fill_fill_price,advanced_trade_fill_product_id,advanced_trade_fill_order_id,advanced_trade_fill_commission,advanced_trade_fill_order_side
|
||||
info_id,info_type,info_status,info_amount_amount,info_amount_currency,info_native_amount_amount,info_native_amount_currency,info_created_at,info_resource,info_resource_path,info_sell_total_amount,info_sell_total_currency,info_sell_subtotal_amount,info_sell_subtotal_currency,info_sell_id,info_sell_payment_method_name,info_sell_fee_amount,info_sell_fee_currency,info_buy_total_amount,info_buy_total_currency,info_buy_subtotal_amount,info_buy_subtotal_currency,info_buy_fee_amount,info_buy_fee_currency,info_buy_id,info_buy_payment_method_name,info_advanced_trade_fill_fill_price,info_advanced_trade_fill_product_id,info_advanced_trade_fill_order_id,info_advanced_trade_fill_commission,info_advanced_trade_fill_order_side
|
||||
XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXUSD1,pro_withdrawal,completed,1234.56,USD,1234.56,USD,2021-01-01T01:01:01Z,transaction,/v2/accounts/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXUSD/transactions/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXUSD1,,,,,,,,,,,,,,,,,,,,,
|
||||
XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXUSD2,pro_deposit,completed,-1111.00,USD,-1111.00,USD,2021-01-01T01:01:02Z,transaction,/v2/accounts/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXUSD/transactions/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXUSD2,,,,,,,,,,,,,,,,,,,,,
|
||||
XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXUSD3,fiat_deposit,completed,34567.89,USD,34567.89,USD,2022-01-01T01:01:03Z,transaction,/v2/accounts/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXUSD/transactions/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXUSD3,,,,,,,,,,,,,,,,,,,,,
|
||||
|
||||
|
@@ -1,2 +1,2 @@
|
||||
id,type,status,amount_amount,amount_currency,native_amount_amount,native_amount_currency,created_at,resource,resource_path
|
||||
info_id,info_type,info_status,info_amount_amount,info_amount_currency,info_native_amount_amount,info_native_amount_currency,info_created_at,info_resource,info_resource_path
|
||||
XXXXXXXX-XXXX-XXXX-XXXX-XBTCVAULT001,transfer,completed,0.05432109,BTC,1288.78,USD,2023-02-02T02:02:03Z,transaction,/v2/accounts/XXXXXXXX-XXXX-XXXX-XXXX-XXXXBTCVAULT/transactions/XXXXXXXX-XXXX-XXXX-XXXX-XBTCVAULT001
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
id,type,status,amount_amount,amount_currency,native_amount_amount,native_amount_currency,created_at,resource,resource_path,network_status,network_network_name,network_hash,sell_total_amount,sell_total_currency,sell_subtotal_amount,sell_subtotal_currency,sell_id,sell_payment_method_name,buy_total_amount,buy_total_currency,buy_subtotal_amount,buy_subtotal_currency,buy_id,buy_payment_method_name,to_resource,to_address,idem
|
||||
info_id,info_type,info_status,info_amount_amount,info_amount_currency,info_native_amount_amount,info_native_amount_currency,info_created_at,info_resource,info_resource_path,info_network_status,info_network_network_name,info_network_hash,info_sell_total_amount,info_sell_total_currency,info_sell_subtotal_amount,info_sell_subtotal_currency,info_sell_id,info_sell_payment_method_name,info_buy_total_amount,info_buy_total_currency,info_buy_subtotal_amount,info_buy_subtotal_currency,info_buy_id,info_buy_payment_method_name,info_to_resource,info_to_address,info_idem
|
||||
XXXXXXXX-XXXX-XXXX-XXXX-XXXXXUSDC001,send,completed,1000.000000,USDC,1000.00,USD,2023-01-02T01:02:01Z,transaction,/v2/accounts/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXUSDC/transactions/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXUSDC001,confirmed,ethereum,XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXUSDCTXID1,,,,,,,,,,,,,,,
|
||||
XXXXXXXX-XXXX-XXXX-XXXX-XXXXXUSDC002,sell,completed,-500.000000,USDC,-500.00,USD,2023-01-02T01:02:02Z,transaction,/v2/accounts/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXUSDC/transactions/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXUSDC002,,,,500.00,USD,500.00,USD,XXXXXXXX-XXXX-XXXX-XXXX-XXXXXUSDCID1,"Coinbase USD Wallet",,,,,,,,,
|
||||
XXXXXXXX-XXXX-XXXX-XXXX-XXXXXUSDC003,buy,completed,123.000000,USDC,123.00,USD,2023-01-03T01:03:03Z,transaction,/v2/accounts/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXUSDC/transactions/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXUSDC003,,,,,,,,,,123.00,USD,123.00,USD,XXXXXXXX-XXXX-XXXX-XXXX-XXXXXUSDCID2,"DISCOVER BANK ******1234",,,
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
id,type,status,amount_amount,amount_currency,native_amount_amount,native_amount_currency,created_at,resource,resource_path,to_resource,to_address,network_status,network_network_name,network_hash,network_transaction_fee_amount,network_transaction_fee_currency,idem,advanced_trade_fill_fill_price,advanced_trade_fill_product_id,advanced_trade_fill_order_id,advanced_trade_fill_commission,advanced_trade_fill_order_side
|
||||
info_id,info_type,info_status,info_amount_amount,info_amount_currency,info_native_amount_amount,info_native_amount_currency,info_created_at,info_resource,info_resource_path,info_to_resource,info_to_address,info_network_status,info_network_network_name,info_network_hash,info_network_transaction_fee_amount,info_network_transaction_fee_currency,info_idem,info_advanced_trade_fill_fill_price,info_advanced_trade_fill_product_id,info_advanced_trade_fill_order_id,info_advanced_trade_fill_commission,info_advanced_trade_fill_order_side
|
||||
XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXBTC001,advanced_trade_fill,completed,1.23456789,BTC,29290.32,USD,2023-02-02T02:02:02Z,transaction,/v2/accounts/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXBTC/transactions/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXBTC001,,,,,,,,,23725.16,BTC-USD,XXXXXXXX-XXXX-XXXX-XXXX-XBTCUSDTRADE,123.4567890123456,buy
|
||||
XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXBTC002,transfer,completed,-0.05432109,BTC,-1288.78,USD,2023-02-02T02:02:03Z,transaction,/v2/accounts/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXBTC/transactions/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXBTC002,,,,,,,,,,,,,
|
||||
XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXBTC003,vault_withdrawal,completed,0.01000000,BTC,234.64,USD,2023-03-03T03:03:03Z,transaction,/v2/accounts/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXBTC/transactions/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXBTC003,,,,,,,,,,,,,
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
id,type,status,amount_amount,amount_currency,native_amount_amount,native_amount_currency,created_at,resource,resource_path,sell_total_amount,sell_total_currency,sell_subtotal_amount,sell_subtotal_currency,sell_id,sell_payment_method_name,sell_fee_amount,sell_fee_currency,buy_total_amount,buy_total_currency,buy_subtotal_amount,buy_subtotal_currency,buy_fee_amount,buy_fee_currency,buy_id,buy_payment_method_name,advanced_trade_fill_fill_price,advanced_trade_fill_product_id,advanced_trade_fill_order_id,advanced_trade_fill_commission,advanced_trade_fill_order_side
|
||||
info_id,info_type,info_status,info_amount_amount,info_amount_currency,info_native_amount_amount,info_native_amount_currency,info_created_at,info_resource,info_resource_path,info_sell_total_amount,info_sell_total_currency,info_sell_subtotal_amount,info_sell_subtotal_currency,info_sell_id,info_sell_payment_method_name,info_sell_fee_amount,info_sell_fee_currency,info_buy_total_amount,info_buy_total_currency,info_buy_subtotal_amount,info_buy_subtotal_currency,info_buy_fee_amount,info_buy_fee_currency,info_buy_id,info_buy_payment_method_name,info_advanced_trade_fill_fill_price,info_advanced_trade_fill_product_id,info_advanced_trade_fill_order_id,info_advanced_trade_fill_commission,info_advanced_trade_fill_order_side
|
||||
XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXUSD1,pro_withdrawal,completed,1234.56,USD,1234.56,USD,2021-01-01T01:01:01Z,transaction,/v2/accounts/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXUSD/transactions/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXUSD1,,,,,,,,,,,,,,,,,,,,,
|
||||
XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXUSD2,pro_deposit,completed,-1111.00,USD,-1111.00,USD,2021-01-01T01:01:02Z,transaction,/v2/accounts/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXUSD/transactions/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXUSD2,,,,,,,,,,,,,,,,,,,,,
|
||||
XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXUSD3,fiat_deposit,completed,34567.89,USD,34567.89,USD,2022-01-01T01:01:03Z,transaction,/v2/accounts/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXUSD/transactions/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXUSD3,,,,,,,,,,,,,,,,,,,,,
|
||||
|
||||
|
Reference in New Issue
Block a user