Use the standard formula for an effective spring constant of a prismatic member:
k = E*A/L
where E is Young's modulus, A is cross sectional area, L is length.
You can derive this from stress, strain, and Young's modulus definitions.
A will equal Pi*d^2/4, if it is approximated as a cylinder.