< Back
Get-MaxCoinsForPurchase
Post
NAME Get-MaxCoinsForPurchase
SYNOPSIS
Use to calculate your max coins you can purchase with your available funds.
SYNTAX
Get-MaxCoinsForPurchase [-SourceCurrency] <String> [-Rate] <Double> [[-ShowBuyCommand]] [<CommonParameters>]
DESCRIPTION
This calculation doesn't depend on the purchase currency.
PARAMETERS
-SourceCurrency <String>
Quantity To Purchase
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Rate <Double>
Rate at Which To Purchase
Required? true
Position? 2
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-ShowBuyCommand [<SwitchParameter>]
Show a commented Buy-Limit command
Required? false
Position? 3
Default value False
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-MaxCoinsForPurchase -SourceCurrency BTC -Rate 0.00000025 -ShowBuyCommand
9.2967
#Buy-Limit -Rate 0.00000025 -Quantity 9.2967 -Market
Buy-Limit -Rate 0.00000025 -Quantity 9.2967 -Market BTC-EMC2
Invoke-BittrexRequest : Bittrex API returned an error: MIN_TRADE_REQUIREMENT_NOT_MET
At C:\\Users\\Chris\\Documents\\WindowsPowerShell\\Modules\\BittrexAPI\\BittrexAPI.psm1:1592 char:26
+ ... orderbook = Invoke-BittrexRequest -APIURI "/market/buylimit$($marketP ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Invoke-BittrexRequest
RELATED LINKS
SYNOPSIS
Use to calculate your max coins you can purchase with your available funds.
SYNTAX
Get-MaxCoinsForPurchase [-SourceCurrency] <String> [-Rate] <Double> [[-ShowBuyCommand]] [<CommonParameters>]
DESCRIPTION
This calculation doesn't depend on the purchase currency.
PARAMETERS
-SourceCurrency <String>
Quantity To Purchase
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Rate <Double>
Rate at Which To Purchase
Required? true
Position? 2
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-ShowBuyCommand [<SwitchParameter>]
Show a commented Buy-Limit command
Required? false
Position? 3
Default value False
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-MaxCoinsForPurchase -SourceCurrency BTC -Rate 0.00000025 -ShowBuyCommand
9.2967
#Buy-Limit -Rate 0.00000025 -Quantity 9.2967 -Market
Buy-Limit -Rate 0.00000025 -Quantity 9.2967 -Market BTC-EMC2
Invoke-BittrexRequest : Bittrex API returned an error: MIN_TRADE_REQUIREMENT_NOT_MET
At C:\\Users\\Chris\\Documents\\WindowsPowerShell\\Modules\\BittrexAPI\\BittrexAPI.psm1:1592 char:26
+ ... orderbook = Invoke-BittrexRequest -APIURI "/market/buylimit$($marketP ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Invoke-BittrexRequest
RELATED LINKS