mirror of
https://github.com/we-promise/sure.git
synced 2026-05-25 13:34:58 +00:00
* feat(providers): add Kraken exchange sync Adds family-scoped Kraken API-key connections, read-only balance and trade import, account setup/linking flows, provider status wiring, and focused test coverage. Closes #1758 * test(providers): avoid Kraken sample secret false positive * fix(providers): address Kraken review findings * fix(providers): address Kraken review cleanup * test(imports): stabilize transaction import ordering
16 lines
321 B
Ruby
16 lines
321 B
Ruby
# frozen_string_literal: true
|
|
|
|
module KrakenItem::Provided
|
|
extend ActiveSupport::Concern
|
|
|
|
def kraken_provider
|
|
return nil unless credentials_configured?
|
|
|
|
Provider::Kraken.new(
|
|
api_key: api_key.to_s.strip,
|
|
api_secret: api_secret.to_s.strip,
|
|
nonce_generator: -> { next_nonce! }
|
|
)
|
|
end
|
|
end
|