Current section
Files
Jump to
Current section
Files
priv/specs/extracted/paymium.exs
# Paymium Exchange Specification
#
# Auto-generated by: mix ccxt.extract paymium
# CCXT version: 4.5.34
# Spec format version: 1
#
# Review before use:
# - signing: Detected from sign() method, verify with testnet
# - endpoints: Raw paths extracted, map to unified API as needed
# - exceptions: Extracted (exact, broad, HTTP status codes)
# - features/options: Extracted from describe()
# - classification: Set to :supported initially, promote after validation
#
%{
api_param_requirements: nil,
certified: false,
classification: :supported,
comment: nil,
countries: [
"FR",
"EU"
],
currencies: %{},
currency_aliases: %{
"BCHSV" => "BSV",
"XBT" => "BTC"
},
dex: false,
enable_rate_limit: true,
endpoint_extraction_stats: %{
"capturedMethods" => 12,
"coveragePercent" => 100,
"enabledMethods" => 16,
"excluded" => [
%{
"method" => "editOrder",
"reason" => "emulated (returns cached data, no HTTP call)"
},
%{
"method" => "fetchCurrencies",
"reason" => "emulated (returns cached data, no HTTP call)"
}
],
"excludedMethods" => 2,
"extractableMethods" => 14,
"failures" => [
%{
"error" => "Cannot convert undefined or null to object",
"method" => "fetchMarkets"
},
%{
"error" => "paymium transfer() only allows transfers to an email address",
"method" => "transfer"
}
]
},
endpoints: [
%{
api_section: "private",
auth: true,
cost: 1,
market_type: :spot,
method: :delete,
name: :cancel_order,
param_mappings: %{
"id" => "uuid"
},
params: [
:id,
:symbol
],
path: "/user/orders/{uuid}/cancel",
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 1,
market_type: :spot,
method: :post,
name: :create_deposit_address,
param_mappings: %{},
params: [
:code
],
path: "/user/addresses",
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 1,
default_params: %{
"type" => "LimitOrder"
},
market_type: :spot,
method: :post,
name: :create_limit_order,
param_mappings: %{
"side" => "direction",
"symbol" => "currency"
},
params: [
:symbol,
:side,
:amount,
:price
],
path: "/user/orders",
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 1,
default_params: %{
"type" => "MarketOrder"
},
market_type: :spot,
method: :post,
name: :create_market_order,
param_mappings: %{
"side" => "direction",
"symbol" => "currency"
},
params: [
:symbol,
:side,
:amount,
:price
],
path: "/user/orders",
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 1,
default_params: %{
"type" => "LimitOrder"
},
market_type: :spot,
method: :post,
name: :create_order,
param_mappings: %{
"side" => "direction",
"symbol" => "currency"
},
params: [
:symbol,
:type,
:side,
:amount,
:price
],
path: "/user/orders",
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 1,
market_type: :spot,
method: :get,
name: :fetch_balance,
param_mappings: %{},
params: [],
path: "/user",
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 1,
market_type: :spot,
method: :get,
name: :fetch_deposit_address,
param_mappings: %{
"code" => "address"
},
params: [
:code
],
path: "/user/addresses/{address}",
source: :intercepted
},
%{
api_section: "private",
auth: true,
cost: 1,
market_type: :spot,
method: :get,
name: :fetch_deposit_addresses,
param_mappings: %{},
params: [
:codes
],
path: "/user/addresses",
source: :intercepted
},
%{
api_section: "public",
auth: false,
cost: 1,
market_type: :spot,
method: :get,
name: :fetch_l2_order_book,
param_mappings: %{
"symbol" => "currency"
},
params: [
:symbol,
:limit
],
path: "/data/{currency}/depth",
source: :intercepted
},
%{
api_section: "public",
auth: false,
cost: 1,
market_type: :spot,
method: :get,
name: :fetch_order_book,
param_mappings: %{
"symbol" => "currency"
},
params: [
:symbol,
:limit
],
path: "/data/{currency}/depth",
source: :intercepted
},
%{
api_section: "public",
auth: false,
cost: 1,
market_type: :spot,
method: :get,
name: :fetch_ticker,
param_mappings: %{
"symbol" => "currency"
},
params: [
:symbol
],
path: "/data/{currency}/ticker",
source: :intercepted
},
%{
api_section: "public",
auth: false,
cost: 1,
market_type: :spot,
method: :get,
name: :fetch_trades,
param_mappings: %{
"symbol" => "currency"
},
params: [
:symbol,
:since,
:limit
],
path: "/data/{currency}/trades",
source: :intercepted
}
],
error_code_details: %{},
error_codes: %{},
exceptions: nil,
exchange_options: %{
"defaultNetworkCodeReplacements" => %{
"BRC20" => %{
"BRC20" => "BTC"
},
"CRO" => %{
"CRC20" => "CRONOS"
},
"ETH" => %{
"ERC20" => "ETH"
},
"TRX" => %{
"TRC20" => "TRX"
}
},
"networksById" => %{}
},
extended_metadata: %{
fees_url: "https://www.paymium.com/page/help/fees",
limits: %{
"amount" => %{},
"cost" => %{},
"leverage" => %{},
"price" => %{}
},
logo_url: "https://user-images.githubusercontent.com/51840849/87153930-f0f02200-c2c0-11ea-9c0a-40337375ae89.jpg",
referral_url: "https://www.paymium.com/page/sign-up?referral=eDAzPoRQFMvaAB8sf-qj"
},
extracted_metadata: %{
ccxt_version: "4.5.34"
},
features: %{
future: %{},
spot: %{
create_order: %{
hedged: false,
iceberg: false,
leverage: false,
margin_mode: false,
market_buy_by_cost: true,
market_buy_requires_price: false,
self_trade_prevention: false,
stop_loss_price: false,
take_profit_price: false,
time_in_force: %{
fok: false,
gtd: false,
ioc: false,
po: false
},
trailing: false,
trigger_direction: false,
trigger_price: false
},
sandbox: false
},
swap: %{}
},
fees: %{
trading: %{
maker: -0.001,
taker: 0.005
}
},
handle_content_type_application_zip: nil,
handle_errors_source: "handleErrors(httpCode, reason, url, method, headers, body, response, requestHeaders, requestBody) {\n if (response === undefined) {\n return undefined;\n }\n const errors$1 = this.safeValue(response, 'errors');\n if (errors$1 !== undefined) {\n throw new errors.ExchangeError(this.id + ' ' + this.json(response));\n }\n return undefined;\n }",
has: %{
add_margin: false,
borrow_cross_margin: false,
borrow_isolated_margin: false,
borrow_margin: false,
c_o_r_s: true,
cancel_all_orders: false,
cancel_all_orders_ws: false,
cancel_order: true,
cancel_order_with_client_order_id: false,
cancel_order_ws: false,
cancel_orders: false,
cancel_orders_with_client_order_id: false,
cancel_orders_ws: false,
close_all_positions: false,
close_position: false,
create_deposit_address: true,
create_limit_buy_order: false,
create_limit_buy_order_ws: false,
create_limit_order: true,
create_limit_order_ws: false,
create_limit_sell_order: false,
create_limit_sell_order_ws: false,
create_market_buy_order: false,
create_market_buy_order_with_cost: false,
create_market_buy_order_with_cost_ws: false,
create_market_buy_order_ws: false,
create_market_order: true,
create_market_order_with_cost: false,
create_market_order_with_cost_ws: false,
create_market_order_ws: true,
create_market_sell_order: false,
create_market_sell_order_with_cost: false,
create_market_sell_order_with_cost_ws: false,
create_market_sell_order_ws: false,
create_order: true,
create_order_with_take_profit_and_stop_loss: false,
create_order_with_take_profit_and_stop_loss_ws: false,
create_order_ws: false,
create_orders: false,
create_post_only_order: false,
create_post_only_order_ws: false,
create_reduce_only_order: false,
create_reduce_only_order_ws: false,
create_stop_limit_order: false,
create_stop_limit_order_ws: false,
create_stop_loss_order: false,
create_stop_loss_order_ws: false,
create_stop_market_order: false,
create_stop_market_order_ws: false,
create_stop_order: false,
create_stop_order_ws: false,
create_take_profit_order: false,
create_take_profit_order_ws: false,
create_trailing_amount_order: false,
create_trailing_amount_order_ws: false,
create_trailing_percent_order: false,
create_trailing_percent_order_ws: false,
create_trigger_order: false,
create_trigger_order_ws: false,
deposit: false,
edit_order: true,
edit_order_with_client_order_id: false,
edit_order_ws: false,
edit_orders: false,
fetch_accounts: false,
fetch_balance: true,
fetch_balance_ws: false,
fetch_bids_asks: false,
fetch_borrow_interest: false,
fetch_borrow_rate: false,
fetch_borrow_rate_histories: false,
fetch_borrow_rate_history: false,
fetch_borrow_rates: false,
fetch_borrow_rates_per_symbol: false,
fetch_canceled_and_closed_orders: false,
fetch_canceled_orders: false,
fetch_closed_order: false,
fetch_closed_orders: false,
fetch_closed_orders_ws: false,
fetch_convert_currencies: false,
fetch_convert_quote: false,
fetch_convert_trade: false,
fetch_convert_trade_history: false,
fetch_cross_borrow_rate: false,
fetch_cross_borrow_rates: false,
fetch_currencies: true,
fetch_currencies_ws: true,
fetch_deposit: false,
fetch_deposit_address: true,
fetch_deposit_addresses: true,
fetch_deposit_addresses_by_network: false,
fetch_deposit_withdraw_fee: false,
fetch_deposit_withdraw_fees: false,
fetch_deposits: false,
fetch_deposits_withdrawals: false,
fetch_deposits_ws: false,
fetch_funding_history: false,
fetch_funding_interval: false,
fetch_funding_intervals: false,
fetch_funding_rate: false,
fetch_funding_rate_history: false,
fetch_funding_rates: false,
fetch_greeks: false,
fetch_index_ohlcv: false,
fetch_isolated_borrow_rate: false,
fetch_isolated_borrow_rates: false,
fetch_isolated_positions: false,
fetch_l2_order_book: true,
fetch_l3_order_book: false,
fetch_last_prices: false,
fetch_ledger: false,
fetch_ledger_entry: false,
fetch_leverage: false,
fetch_leverage_tiers: false,
fetch_leverages: false,
fetch_liquidations: false,
fetch_long_short_ratio: false,
fetch_long_short_ratio_history: false,
fetch_margin_adjustment_history: false,
fetch_margin_mode: false,
fetch_margin_modes: false,
fetch_mark_ohlcv: false,
fetch_mark_prices: false,
fetch_market_leverage_tiers: false,
fetch_markets: true,
fetch_markets_ws: false,
fetch_my_liquidations: false,
fetch_my_settlement_history: false,
fetch_my_trades: false,
fetch_my_trades_ws: false,
fetch_ohlcv: false,
fetch_ohlcv_ws: false,
fetch_open_interest: false,
fetch_open_interest_history: false,
fetch_open_interests: false,
fetch_open_order: false,
fetch_open_orders: false,
fetch_open_orders_ws: false,
fetch_option: false,
fetch_option_chain: false,
fetch_order: false,
fetch_order_book: true,
fetch_order_book_ws: false,
fetch_order_books: false,
fetch_order_trades: false,
fetch_order_with_client_order_id: false,
fetch_order_ws: false,
fetch_orders: false,
fetch_orders_by_status: false,
fetch_orders_ws: false,
fetch_position: false,
fetch_position_history: false,
fetch_position_mode: false,
fetch_position_ws: false,
fetch_positions: false,
fetch_positions_for_symbol: false,
fetch_positions_for_symbol_ws: false,
fetch_positions_history: false,
fetch_positions_risk: false,
fetch_positions_ws: false,
fetch_premium_index_ohlcv: false,
fetch_settlement_history: false,
fetch_status: false,
fetch_ticker: true,
fetch_ticker_ws: false,
fetch_tickers: false,
fetch_tickers_ws: false,
fetch_time: false,
fetch_trades: true,
fetch_trades_ws: false,
fetch_trading_fee: false,
fetch_trading_fees: false,
fetch_trading_fees_ws: false,
fetch_trading_limits: false,
fetch_transaction_fee: false,
fetch_transaction_fees: false,
fetch_transactions: false,
fetch_transfer: false,
fetch_transfers: false,
fetch_underlying_assets: false,
fetch_volatility_history: false,
fetch_withdraw_addresses: false,
fetch_withdrawal: false,
fetch_withdrawal_whitelist: false,
fetch_withdrawals: false,
fetch_withdrawals_ws: false,
future: false,
margin: false,
option: false,
private_api: true,
public_api: true,
reduce_margin: false,
repay_cross_margin: false,
repay_isolated_margin: false,
sandbox: false,
set_leverage: false,
set_margin: false,
set_margin_mode: false,
set_position_mode: false,
sign_in: false,
spot: true,
swap: false,
transfer: true,
un_watch_my_trades: false,
un_watch_ohlcv: false,
un_watch_ohlcv_for_symbols: false,
un_watch_order_book: false,
un_watch_order_book_for_symbols: false,
un_watch_orders: false,
un_watch_positions: false,
un_watch_ticker: false,
un_watch_tickers: false,
un_watch_trades: false,
un_watch_trades_for_symbols: false,
watch_balance: false,
watch_bids_asks: false,
watch_liquidations: false,
watch_liquidations_for_symbols: false,
watch_my_liquidations: false,
watch_my_liquidations_for_symbols: false,
watch_my_trades: false,
watch_ohlcv: false,
watch_ohlcv_for_symbols: false,
watch_order_book: false,
watch_order_book_for_symbols: false,
watch_orders: false,
watch_orders_for_symbols: false,
watch_position: false,
watch_positions: false,
watch_status: false,
watch_ticker: false,
watch_tickers: false,
watch_trades: false,
watch_trades_for_symbols: false,
withdraw: false,
ws: false
},
http_config: nil,
id: "paymium",
markets: %{
"BTC/EUR" => %{
"base" => "BTC",
"baseId" => "btc",
"contract" => false,
"future" => false,
"id" => "eur",
"index" => false,
"limits" => %{
"amount" => %{},
"cost" => %{},
"leverage" => %{},
"price" => %{}
},
"marginModes" => %{},
"option" => false,
"precision" => %{},
"quote" => "EUR",
"quoteId" => "eur",
"spot" => true,
"swap" => false,
"symbol" => "BTC/EUR",
"type" => "spot"
}
},
name: "Paymium",
ohlcv_timestamp_resolution: :unknown,
options: %{},
order_mappings: nil,
param_mappings: %{
"code" => "address",
"id" => "uuid",
"side" => "direction",
"symbol" => "currency"
},
parse_methods: [
%{
"comment" => nil,
"examples" => [],
"line_end" => 178,
"line_start" => 161,
"mappings" => [],
"name" => "parseBalance",
"signature" => "parseBalance (response): Balances",
"source" => "parseBalance (response): Balances {\n const result: Dict = { 'info': response };\n const currencies = Object.keys (this.currencies);\n for (let i = 0; i < currencies.length; i++) {\n const code = currencies[i];\n const currency = this.currency (code);\n const currencyId = currency['id'];\n const free = 'balance_' + currencyId;\n if (free in response) {\n const account = this.account ();\n const used = 'locked_' + currencyId;\n account['free'] = this.safeString (response, free);\n account['used'] = this.safeString (response, used);\n result[code] = account;\n }\n }\n return this.safeBalance (result);\n }"
},
%{
"comment" => nil,
"examples" => [
"{\n \"address\": \"1HdjGr6WCTcnmW1tNNsHX7fh4Jr5C2PeKe\",\n \"valid_until\": 1620041926,\n \"currency\": \"BTC\",\n \"label\": \"Savings\"\n }"
],
"line_end" => 438,
"line_start" => 420,
"mappings" => [
%{
"comment" => nil,
"key" => "info",
"value" => "depositAddress"
},
%{
"comment" => nil,
"key" => "currency",
"value" => "this.safeCurrencyCode (currencyId, currency)"
},
%{
"comment" => nil,
"key" => "network",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "address",
"value" => "address"
},
%{
"comment" => nil,
"key" => "tag",
"value" => "undefined"
}
],
"name" => "parseDepositAddress",
"signature" => "parseDepositAddress (depositAddress, currency: Currency = undefined): DepositAddress",
"source" => "parseDepositAddress (depositAddress, currency: Currency = undefined): DepositAddress {\n //\n // {\n // \"address\": \"1HdjGr6WCTcnmW1tNNsHX7fh4Jr5C2PeKe\",\n // \"valid_until\": 1620041926,\n // \"currency\": \"BTC\",\n // \"label\": \"Savings\"\n // }\n //\n const address = this.safeString (depositAddress, 'address');\n const currencyId = this.safeString (depositAddress, 'currency');\n return {\n 'info': depositAddress,\n 'currency': this.safeCurrencyCode (currencyId, currency),\n 'network': undefined,\n 'address': address,\n 'tag': undefined,\n } as DepositAddress;\n }"
},
%{
"comment" => nil,
"examples" => [
"{\n \"high\":\"33740.82\",\n \"low\":\"32185.15\",\n \"volume\":\"4.7890433\",\n \"bid\":\"33313.53\",\n \"ask\":\"33497.97\",\n \"midpoint\":\"33405.75\",\n \"vwap\":\"32802.5263553\",\n \"at\":1643381654,\n \"price\":\"33143.91\",\n \"open\":\"33116.86\",\n \"variation\":\"0.0817\",\n \"currency\":\"EUR\",\n \"trade_id\":\"ce2f5152-3ac5-412d-9b24-9fa72338474c\",\n \"size\":\"0.00041087\"\n }"
],
"line_end" => 261,
"line_start" => 214,
"mappings" => [
%{
"comment" => nil,
"key" => "symbol",
"value" => "symbol"
},
%{
"comment" => nil,
"key" => "timestamp",
"value" => "timestamp"
},
%{
"comment" => nil,
"key" => "datetime",
"value" => "this.iso8601 (timestamp)"
},
%{
"comment" => nil,
"key" => "high",
"value" => "this.safeString (ticker, 'high')"
},
%{
"comment" => nil,
"key" => "low",
"value" => "this.safeString (ticker, 'low')"
},
%{
"comment" => nil,
"key" => "bid",
"value" => "this.safeString (ticker, 'bid')"
},
%{
"comment" => nil,
"key" => "bidVolume",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "ask",
"value" => "this.safeString (ticker, 'ask')"
},
%{
"comment" => nil,
"key" => "askVolume",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "vwap",
"value" => "vwap"
},
%{
"comment" => nil,
"key" => "open",
"value" => "this.safeString (ticker, 'open')"
},
%{
"comment" => nil,
"key" => "close",
"value" => "last"
},
%{
"comment" => nil,
"key" => "last",
"value" => "last"
},
%{
"comment" => nil,
"key" => "previousClose",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "change",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "percentage",
"value" => "this.safeString (ticker, 'variation')"
},
%{
"comment" => nil,
"key" => "average",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "baseVolume",
"value" => "baseVolume"
},
%{
"comment" => nil,
"key" => "quoteVolume",
"value" => "quoteVolume"
},
%{
"comment" => nil,
"key" => "info",
"value" => "ticker"
}
],
"name" => "parseTicker",
"signature" => "parseTicker (ticker: Dict, market: Market = undefined): Ticker",
"source" => "parseTicker (ticker: Dict, market: Market = undefined): Ticker {\n //\n // {\n // \"high\":\"33740.82\",\n // \"low\":\"32185.15\",\n // \"volume\":\"4.7890433\",\n // \"bid\":\"33313.53\",\n // \"ask\":\"33497.97\",\n // \"midpoint\":\"33405.75\",\n // \"vwap\":\"32802.5263553\",\n // \"at\":1643381654,\n // \"price\":\"33143.91\",\n // \"open\":\"33116.86\",\n // \"variation\":\"0.0817\",\n // \"currency\":\"EUR\",\n // \"trade_id\":\"ce2f5152-3ac5-412d-9b24-9fa72338474c\",\n // \"size\":\"0.00041087\"\n // }\n //\n const symbol = this.safeSymbol (undefined, market);\n const timestamp = this.safeTimestamp (ticker, 'at');\n const vwap = this.safeString (ticker, 'vwap');\n const baseVolume = this.safeString (ticker, 'volume');\n const quoteVolume = Precise.stringMul (baseVolume, vwap);\n const last = this.safeString (ticker, 'price');\n return this.safeTicker ({\n 'symbol': symbol,\n 'timestamp': timestamp,\n 'datetime': this.iso8601 (timestamp),\n 'high': this.safeString (ticker, 'high'),\n 'low': this.safeString (ticker, 'low'),\n 'bid': this.safeString (ticker, 'bid'),\n 'bidVolume': undefined,\n 'ask': this.safeString (ticker, 'ask'),\n 'askVolume': undefined,\n 'vwap': vwap,\n 'open': this.safeString (ticker, 'open'),\n 'close': last,\n 'last': last,\n 'previousClose': undefined,\n 'change': undefined,\n 'percentage': this.safeString (ticker, 'variation'),\n 'average': undefined,\n 'baseVolume': baseVolume,\n 'quoteVolume': quoteVolume,\n 'info': ticker,\n }, market);\n }"
},
%{
"comment" => nil,
"examples" => [],
"line_end" => 323,
"line_start" => 300,
"mappings" => [
%{
"comment" => nil,
"key" => "info",
"value" => "trade"
},
%{
"comment" => nil,
"key" => "id",
"value" => "id"
},
%{
"comment" => nil,
"key" => "order",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "timestamp",
"value" => "timestamp"
},
%{
"comment" => nil,
"key" => "datetime",
"value" => "this.iso8601 (timestamp)"
},
%{
"comment" => nil,
"key" => "symbol",
"value" => "market['symbol']"
},
%{
"comment" => nil,
"key" => "type",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "side",
"value" => "side"
},
%{
"comment" => nil,
"key" => "takerOrMaker",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "price",
"value" => "price"
},
%{
"comment" => nil,
"key" => "amount",
"value" => "amount"
},
%{
"comment" => nil,
"key" => "cost",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "fee",
"value" => "undefined"
}
],
"name" => "parseTrade",
"signature" => "parseTrade (trade: Dict, market: Market = undefined): Trade",
"source" => "parseTrade (trade: Dict, market: Market = undefined): Trade {\n const timestamp = this.safeTimestamp (trade, 'created_at_int');\n const id = this.safeString (trade, 'uuid');\n market = this.safeMarket (undefined, market);\n const side = this.safeString (trade, 'side');\n const price = this.safeString (trade, 'price');\n const amountField = 'traded_' + market['base'].toLowerCase ();\n const amount = this.safeString (trade, amountField);\n return this.safeTrade ({\n 'info': trade,\n 'id': id,\n 'order': undefined,\n 'timestamp': timestamp,\n 'datetime': this.iso8601 (timestamp),\n 'symbol': market['symbol'],\n 'type': undefined,\n 'side': side,\n 'takerOrMaker': undefined,\n 'price': price,\n 'amount': amount,\n 'cost': undefined,\n 'fee': undefined,\n }, market);\n }"
},
%{
"comment" => nil,
"examples" => [
"{\n \"uuid\": \"968f4580-e26c-4ad8-8bcd-874d23d55296\",\n \"type\": \"Transfer\",\n \"currency\": \"BTC\",\n \"currency_amount\": \"string\",\n \"created_at\": \"2013-10-24T10:34:37.000Z\",\n \"updated_at\": \"2013-10-24T10:34:37.000Z\",\n \"amount\": \"1.0\",\n \"state\": \"executed\",\n \"currency_fee\": \"0.0\",\n \"btc_fee\": \"0.0\",\n \"comment\": \"string\",\n \"traded_btc\": \"string\",\n \"traded_currency\": \"string\",\n \"direction\": \"buy\",\n \"price\": \"string\",\n \"account_operations\": [\n {\n \"uuid\": \"968f4580-e26c-4ad8-8bcd-874d23d55296\",\n \"amount\": \"1.0\",\n \"currency\": \"BTC\",\n \"created_at\": \"2013-10-24T10:34:37.000Z\",\n \"created_at_int\": 1389094259,\n \"name\": \"account_operation\",\n \"address\": \"1FPDBXNqSkZMsw1kSkkajcj8berxDQkUoc\",\n \"tx_hash\": \"string\",\n \"is_trading_account\": true\n }\n ]\n }"
],
"line_end" => 605,
"line_start" => 555,
"mappings" => [
%{
"comment" => nil,
"key" => "info",
"value" => "transfer"
},
%{
"comment" => nil,
"key" => "id",
"value" => "this.safeString (transfer, 'uuid')"
},
%{
"comment" => nil,
"key" => "timestamp",
"value" => "timetstamp"
},
%{
"comment" => nil,
"key" => "datetime",
"value" => "this.iso8601 (timetstamp)"
},
%{
"comment" => nil,
"key" => "currency",
"value" => "this.safeCurrencyCode (currencyId, currency)"
},
%{
"comment" => nil,
"key" => "amount",
"value" => "this.safeNumber (transfer, 'amount')"
},
%{
"comment" => nil,
"key" => "fromAccount",
"value" => "undefined"
},
%{
"comment" => nil,
"key" => "toAccount",
"value" => "this.safeString (firstOperation, 'address')"
},
%{
"comment" => nil,
"key" => "status",
"value" => "this.parseTransferStatus (status)"
}
],
"name" => "parseTransfer",
"signature" => "parseTransfer (transfer: Dict, currency: Currency = undefined): TransferEntry",
"source" => "parseTransfer (transfer: Dict, currency: Currency = undefined): TransferEntry {\n //\n // {\n // \"uuid\": \"968f4580-e26c-4ad8-8bcd-874d23d55296\",\n // \"type\": \"Transfer\",\n // \"currency\": \"BTC\",\n // \"currency_amount\": \"string\",\n // \"created_at\": \"2013-10-24T10:34:37.000Z\",\n // \"updated_at\": \"2013-10-24T10:34:37.000Z\",\n // \"amount\": \"1.0\",\n // \"state\": \"executed\",\n // \"currency_fee\": \"0.0\",\n // \"btc_fee\": \"0.0\",\n // \"comment\": \"string\",\n // \"traded_btc\": \"string\",\n // \"traded_currency\": \"string\",\n // \"direction\": \"buy\",\n // \"price\": \"string\",\n // \"account_operations\": [\n // {\n // \"uuid\": \"968f4580-e26c-4ad8-8bcd-874d23d55296\",\n // \"amount\": \"1.0\",\n // \"currency\": \"BTC\",\n // \"created_at\": \"2013-10-24T10:34:37.000Z\",\n // \"created_at_int\": 1389094259,\n // \"name\": \"account_operation\",\n // \"address\": \"1FPDBXNqSkZMsw1kSkkajcj8berxDQkUoc\",\n // \"tx_hash\": \"string\",\n // \"is_trading_account\": true\n // }\n // ]\n // }\n //\n const currencyId = this.safeString (transfer, 'currency');\n const updatedAt = this.safeString (transfer, 'updated_at');\n const timetstamp = this.parseDate (updatedAt);\n const accountOperations = this.safeValue (transfer, 'account_operations');\n const firstOperation = this.safeValue (accountOperations, 0, {});\n const status = this.safeString (transfer, 'state');\n return {\n 'info': transfer,\n 'id': this.safeString (transfer, 'uuid'),\n 'timestamp': timetstamp,\n 'datetime': this.iso8601 (timetstamp),\n 'currency': this.safeCurrencyCode (currencyId, currency),\n 'amount': this.safeNumber (transfer, 'amount'),\n 'fromAccount': undefined,\n 'toAccount': this.safeString (firstOperation, 'address'),\n 'status': this.parseTransferStatus (status),\n };\n }"
},
%{
"comment" => nil,
"examples" => [],
"line_end" => 613,
"line_start" => 607,
"mappings" => [],
"name" => "parseTransferStatus",
"signature" => "parseTransferStatus (status: Str): Str",
"source" => "parseTransferStatus (status: Str): Str {\n const statuses: Dict = {\n 'executed': 'ok',\n // what are the other statuses?\n };\n return this.safeString (statuses, status, status);\n }"
}
],
path_prefix: "/v1/",
pro: false,
quote_json_numbers: nil,
rate_limits: %{
interval_ms: 2000,
period: 1000,
requests: 1,
rolling_window_size: 60000
},
raw_endpoints: %{
private: [],
public: []
},
required_credentials: %{
api_key: true,
password: false,
secret: true,
uid: false
},
requires_eddsa: false,
response_error: nil,
signing: %{
api_key_header: "Api-Key",
confidence: :medium,
nonce_header: "Api-Nonce",
pattern: :hmac_sha256_headers,
signature_header: "Api-Signature"
},
spec_format_version: 1,
status: %{
"eta" => nil,
"status" => "ok",
"updated" => nil,
"url" => nil
},
symbol_format: nil,
symbol_formats: %{
precision_mode: 4,
sample_limits: %{
"amount" => %{},
"cost" => %{},
"price" => %{}
},
sample_precision: %{},
spot: %{
base: "BTC",
base_id: "btc",
case: :lower,
contract: false,
id: "eur",
limits: %{
"amount" => %{},
"cost" => %{},
"leverage" => %{},
"price" => %{}
},
precision: %{},
quote: "EUR",
quote_id: "eur",
separator: "",
symbol: "BTC/EUR"
}
},
symbol_patterns: %{
spot: %{
case: :lower,
component_order: nil,
date_format: nil,
pattern: :no_separator_lower,
separator: "",
suffix: nil
}
},
timeframes: %{},
url_strategy: %{
detected_from: "sign_method",
pattern: :version_slash,
prefix: "/v1/"
},
urls: %{
api: "https://paymium.com/api",
api_sections: %{
"rest" => "https://paymium.com/api"
},
doc: [
"https://github.com/Paymium/api-documentation",
"https://www.paymium.com/page/developers",
"https://paymium.github.io/api-documentation/"
],
other: nil,
sandbox: nil,
www: "https://www.paymium.com"
},
version: "v1",
ws: nil
}